AnsweredAssumed Answered

error "can't parse argument" in message shape

Question asked by gouthamr388096 on Jan 5, 2018
Latest reply on Jan 5, 2018 by Adam Arrowsmith

I am a little confused that message shape is throwing the following error. 

Test execution of AX to CRM Customer Account completed with errors. Embedded message: can't parse argument number: "Accounts":{ "Account":[ { "ERPCustID":"C000001"; Caused by: For input string: " "Accounts":{ "Account":[ { "ERPCustID":"C000001""

 

All I am doing is pasting the following JSON in message shape. I do not understand why I am getting "Can't parse argument number" error. I thought I could paste any text , XML or JSON file in message shape and it will send it along.

 

JSON:

{
"Accounts":{
"Account":[
{
"ERPCustID":"C000001",
"AccountNumber" : "000001G",
"Email":"test@test.com",
"AccountName":"COACH & HORSE HELLO",
"Street":"16 YORK S",
"City":"Lindsay",
"State":"ON",
"ZipCode":"K9V 3A2",
"MainPhone":"6135584932",
"CellPhone":"6135584932",
"PrimaryContactName":"John Doe",
"CustomerTier":"John Doe",
"PriceGroup":"a1z34",
"SalesDistrict":"z1a34",
"InvoiceTo":"C000001",
"CustomerStatus":"0",
"AccountStatusClosed":"0",
"ERPStatus":"0",
"CreditHold":"0",
"AccountPrepaid":"N30",
"CustClassificationId":"T2",
"PigTraceNumber":"123",
"BalanceOnAccount":12345.56,
"Currency":"CAD",
"PrintMgmtForEmailingInvoice":true,
"AuthorizedGroup":{
"PriceListName":"B001 Barrels",
"PriceListDescription":"Price list 1 Desc",
"PriceListCurrency":"USD",
"RouteCustomerType":"PTZ"
},
"TrapItems":{
"TrapItem":[
{
"Item":"1234",
"ItemName":"item name",
"ItemNameFrench":"item name in french",
"LastTransactionDate":"2017-08-04T14:34:00-04:00",
"Unit":"ea",
"Price":123.45
}
]
}
}
]
}
}

 

Thanks

Goutham

Outcomes