Hello everyone, I trying to transform Transfer Ord...
# suitetalkapi
y
Hello everyone, I trying to transform Transfer Order to Item Receipt using Suitetalk API. But got this error. "o:errorDetails": [ { "detail": "Error while accessing a resource. The total inventory detail quantity must be 1.", "o:errorPath": "item.items[?(@.orderLine==3)]", "o:errorCode": "USER_ERROR" } Anyone, have solution for this .Also attached the request body below. { "createdFrom": "8817***", "memo": "testing TO,IR", "item": { "items": [ { "orderLine": 3, "itemreceive": true, "quantity": 1.0, "location":6, "inventoryDetail": { "inventoryAssignment": { "items": [ { "receiptInventoryNumber": "230199", "quantity": 1.0 } ] } } } ] } }
n
Did you resolve this? Can you do that IF successfully in the UI? perhaps that inventory number is not available in that location
y
Not yet, but if I am also mention location still it throw the error "The total inventory detail quantity must be 1."
n
But does it work through the UI?
y
Yes.
Any other solution for this condition?
n
maybe you need some square brackets in there : "inventoryDetail": { "inventoryAssignmentList": [
Copy code
{
  "receiptInventoryNumber": "230199",
  "quantity": 1
}
] }
y
Thank you. Issue is resolved.
v
To transform to item receipt don't we need to create item fulfillment first? in our case if we are creating the itemfulfilment for TO it is must do define line value as 2 other wise it is failing, not sure how to handle for TO with multiple line @Yogita Kyatam @Netsuite Tragic