On saving customer profile and performing the update, I am getting wired error (as shown in below table).
|
Type : System.ServiceModel.FaultException`1[[Microsoft.Commerce.Contracts.Faults.ItemDoesNotExistFault, Microsoft.Commerce.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Stack Trace : at Microsoft.Commerce.Providers.Components.ProfileOperationSequenceComponent.GetMatches |
Apart from this error, nothing is written in event log. Running SQL trace also didn’t help as I haven’t seen entries coming there. Using reflector, when I go through the assembly, I found on interesting thing (check below image).
Commerce server while retrieving values, checks if their are any values in the key property, if not found it will throw item not found exception. Later I figured out that in my code, I am passing wrong user ID to commerce server, thus triggering this error.
If you like this post, please click on our sponsor advertisement.
