Developer forum

Forum » Development » System.ArgumentException: No ProductField or ProductFieldValue based on the given system name exist.

System.ArgumentException: No ProductField or ProductFieldValue based on the given system name exist.

Dmitrij Jazel
Reply

Hello guys,

Just got an issue here with a filter, for some reason, very unexpected.

Am trying to use 2 other custom fields as filter parameters. ("gender" and "special eddition") but not AvailableDate.

AvailableDate is just a custom field for a date to receive, and it is used in product details page, not in product listing.

Error message:

System.ArgumentException: No ProductField or ProductFieldValue based on the given system name exist. Parameter: 'productFieldSystemName', Value: 'AvailableDate'.
   at Dynamicweb.eCommerce.Products.Product.SetProductFieldValue(String productFieldSystemName, Object value)
   at Dynamicweb.eCommerce.Naviconnect.ItemInfoHandler.FillProductValues(Product product)
   at Dynamicweb.eCommerce.Naviconnect.NotificationSubscribers.ProductListBeforeSort.SetProductInfo(BeforeSortArgs args)
   at Dynamicweb.eCommerce.Naviconnect.NotificationSubscribers.ProductListBeforeSort.OnNotify(String notification, NotificationArgs args)
   at Dynamicweb.Extensibility.NotificationManager.Notify(String notification, Object[] args)
   at Dynamicweb.eCommerce.Frontend.Frontend.ListProducts(ProductCollection products, String groupsIdent, Boolean hasBeenSorted)
   at Dynamicweb.eCommerce.Frontend.Frontend.EcomRender()
   at Dynamicweb.eCommerce.Frontend.Frontend.GetContent()
   at Dynamicweb.Frontend.Content.GetModule(DataRow& ParagraphRow)

No idea why would it ever pop-up, anyone has any suggestions?

This happens only if I invoke filter (add &filter=val) in url.

 

/Dmitrij


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
This post has been marked as an answer

Hi Dmitrij,

Just to make sure, but these fields are existing product fields and not fields you create dynamically? And you have rebuilt your index after these fields were added? If not, try adding them and rebuilding the index.

- Jeppe

Votes for this answer: 1
 
Dmitrij Jazel
Reply

Hej Jeppe :)

Well I had the same suspicions first when I saw this.

Aperrantly it was a code in our custom code. If I correctly remember it was in live price provider, we where setting this product field value to this product. And that's where it failed. Along with 2 other fields we manage in the same way. But as soon as I removed that custom field from custom code, and changed it into session object all went away.

 

You must be logged in to post in the forum