Issue with the IPriceService.GetDefaultPrice. Price is not returned if the case of the product code is different.



Seems the small issue was found out during the default price fetching.


var catalogKey = new CatalogKey(AppContext.Current.ApplicationId, catalogEntryCode);

var defaultPrice = priceService.GetDefaultPrice(marketId, DateTime.UtcNow, catalogKey, market.DefaultCurrency);


If the catalogEntryCode is in the lowercase, but the price was saved with the uppercase catalogEntryCode, then the price is not returned.


However the priceService.GetCatalogEntryPrices(catalogKey); works  fine. And the necessary price is in the list.


Is there any possibility to fix this?

Aug 25, 2016 12:17


That's pretty strange - the code should be case insensitive. I'll look into this when time allows and will file a bug if necessary.



Aug 25, 2016 13:44

Seems IPriceService.GetPrices works the same - the code is case sensitive.

Aug 25, 2016 13:57

Just FYI I found the issue and created a bug for that. For now you can use GetCatalogEntryPrices and filter on the result



Aug 25, 2016 14:34

Thank you!

Could you please give the bug number to check when it is solved ? 

Aug 25, 2016 14:37

Unfortunately not yet. We need to triage the bug and refine it before making it public. But I'm quite possitive that it'll be resolved in the 9.23 release.


Aug 25, 2016 14:54

Thank you for support.

Aug 25, 2016 14:57
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.