Thursday, February 22, 2018

Sitecore Experience Commerce - AddPriceSnapshot: Cannot read property 'find' of undefined

When testing out the postman services on my local Experience Commerce instance, I would get the following error when attempting to add a snapshot to a price card:
TypeError | Cannot read property 'find' of undefined
Postman console showing: Cannot read property 'find' of undefined
It turns out that the Postman example had the date in american format of mm/dd/yyyy where as my timezone is New Zealand, the expected format was dd/mm/yyyy. Changing the order of day and month allowed the AddPriceSnapshot API call to succeed.

No comments:

Post a Comment