Developer forum

Forum » PIM » Publishing PIM feed raises error

Publishing PIM feed raises error

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a (Rapido) feed that raises the following exception when requested from the URL in the backend. Looks like it's unhappy about the VariantCombinations property. Where do I change this to make it happy? Or is this a bug? Running on 9.9.7 if that helps...

Imar

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Message>An error has occurred.</Message>
<ExceptionMessage>Some property names do not match the viewmodel ('Dynamicweb.Ecommerce.ProductCatalog.ProductViewModel'): Invalid input=[Images, VariantCombinations], Valid property names=[Id, VariantId, LanguageId, Name, Title, ShortDescription, LongDescription, Number, Created, Updated, Keywords, Weight, StockLevel, Width, Height, Depth, EAN, ExpectedDelivery, Discontinued, DiscontinuedAction, PointPrice, DefaultUnitId, Rating, ReplacementProduct, Price, PriceInformative, PriceBeforeDiscount, Discount, ProductFields, ProductCategories, Groups, PrimaryOrDefaultGroup, VariantInfo, DefaultImage, GroupPaths, ImagePatternImages, Manufacturer, AssetCategories].</ExceptionMessage>
<ExceptionType>System.ArgumentException</ExceptionType>
<StackTrace> at Dynamicweb.Ecommerce.ProductCatalog.ViewSettingsBase`1.CheckInvalidNames() at Dynamicweb.Ecommerce.ProductCatalog.ViewSettingsBase`1.AddProperties(ICollection`1 propertyNames) at Dynamicweb.Ecommerce.ProductCatalog.ViewSettingsBase`1.set_FilledProperties(String[] value) at Dynamicweb.Ecommerce.Feeds.FeedProvider.CreateProductViewModelSettings(ProductCatalogSettings settings, FeedContextConfiguration feedContextConfiguration) at Dynamicweb.Ecommerce.Feeds.FeedProvider.CreateProductListSettings(ProductCatalogSettings settings, FeedContextConfiguration feedContextConfiguration) at Dynamicweb.Ecommerce.TemplateProvider.GetOutput(Feed feed, FeedContextConfiguration feedContextConfiguration) at Dynamicweb.Ecommerce.WebAPI.Controllers.FeedController.GetFeedOutput(Int32 id, FeedContextConfiguration feedContextConfiguration) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()</StackTrace>
</Error>

Replies

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Imar

Could you please post this problem to support@dynamicweb.dk

Think we need to see the problem on the solution to debug the problem

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Mikkel Belchuke
Mikkel Belchuke
Reply

Any news on this issue? We might have the same one. 

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Imar and Mikkel

Could one of you please write to support@dynamicweb.dk and post an URL to the feed problem ?

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi Kristian,

I just sent an email to support with a link.

Imar

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply
This post has been marked as an answer

Hi Imar and Mikkel

The problem looks like that old names are stored for properties that is no longer valid.
It should fix the problem to remove all product properties in the feed, save, and then add them again.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

Votes for this answer: 2
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks Kristian. That works on the feeds I tested it on! 

Is this considered a bug? A better error message would be helpful.

Imar

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Better than this?

Some property names do not match the viewmodel ('Dynamicweb.Ecommerce.ProductCatalog.ProductViewModel'): Invalid input=[Images, VariantCombinations]

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Yes, better than that as it tells you what might be broken, but not how to fix it. This could have just as easy be an internal issue with the ViewModel or so, and it gave no hint at removing and readding the properties.

Imar

 

You must be logged in to post in the forum