Try our conversational search powered by Generative AI!

SaveAsPurchaseOrder throw exception - Error: value is a System.Int64 but should be a System.Int32 Parameter name: value [version 10.8]

Vote:
 

I try to create purchase order after loading the cart using cart id in one of our API.

it throw the below exception 

ECApplication - EPiServer Commerce Manager Failed to create Purchase Order. Error: value is a System.Int64 but should be a System.Int32 Parameter name: value.

Also tried the same cart in the commerce manger I get the same exception. 

If tried to create the purchaseorder on the same session I am not getting any issue.

 

#180004
Edited, Jun 28, 2017 10:39
Vote:
 

By 10.8 I suppose you meant CMS.Core

I would suggest you to upgrade to latest version of Commerce (10.7.3) - the message was improved so it's easier to find which value of which metafield caused the problem

#180016
Jun 28, 2017 13:42
Vote:
 

After upfating to latest version the issue is resolved.

#180053
Jun 29, 2017 10:45
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.