"SerializationError" when trying to write orders.

3 REPLIES 3
Valued Partner Triboss
96 Posts
Valued Partner
Valued Partner

96Posts

47Kudos

0Solutions

Accepted Solution Solved

Re: "SerializationError" when trying to write orders.

Using this endpoint "/GeneralLedger/Category" reference here:

https://developer.myob.com/api/accountright/v2/generalledger/category/

 

You can't get the UID from within the MYOB application itself.  You need to use the API.

Experienced Cover User Erynn
11 Posts
Experienced Cover User
Australia
Experienced Cover User

11Posts

3Kudos

0Solutions

Re: "SerializationError" when trying to write orders.

Thanks @Triboss, Where can I go to find that out. From the AccountRight interface the "Category ID"?

 Categories.PNG

Valued Partner Triboss
96 Posts
Valued Partner
Valued Partner

96Posts

47Kudos

0Solutions

Re: "SerializationError" when trying to write orders.

Looks like you are passing in the Category Display ID text.  You need to pass through the Category UID.

Highlighted
Experienced Cover User Erynn
11 Posts
Experienced Cover User
Australia
Experienced Cover User

11Posts

3Kudos

0Solutions

Solved: Go to Solution

"SerializationError" when trying to write orders.

Trying to write orders from my website and getting this error in the Add on connector log file:

 

2019-07-25 16:52:41.7752 LogLevel=Info;CorrelationId=b26fbd0c-6732-4635-9029-79734905203b;DevKey=;CFileId=8409c60a-be74-4e01-aaf9-56e3501d591c;CodeArea=GateExit;ProductCode=0;ProductVersion=2019.2;HttpMethod=POST;Resource=/Sale/Order/Item;Query=;ResponseCode=400;StatusCode=BadRequest;HttpHeaders=x-myob-webapiexception=V1.0;x-myobapi-requestid=b26fbd0c-6732-4635-9029-79734905203b;x-myobapi-elapsed=743;ElapsedMilliseconds=743;ResponseData={
"Errors": [
{
"Name": "SerializationError",
"Message": null,
"AdditionalDetails": "Error converting value \"Product Sales\" to type 'System.Guid'. Path 'Category.UID', line 1, position 245.",
"ErrorCode": 50,
"Severity": "Error",
"LearnMore": null
}
],
"Information": "Warning, error messages have not been finalised in this release and may change"
}

 

We use AccountRight2019.2 with Categories turned on and required (new feature).  We were using Enterprisev19.15 and had this working ok under that.   The new version has us stumped as to how to specify the category correctly.

 

The category ID in myob is "Product Sales"

 

Any help appreciated.

Erynn

 

Didn't find your answer here?
Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post