The issue only seems to be happening when there are operations after the insert.
For example this payload goes through as it should:
{
"lines":[
{
"lineNbr":{
"value":"1"
},
"physicalQuantity":{
"value":2466.0
},
"operation":"Update"
},
{
"lineNbr":{
"value":"2"
},
"physicalQuantity":{
"value":2466.0
},
"operation":"Update"
},
{
"physicalQuantity":{
"value":2.0
},
"operation":"Insert",
"inventoryId":{
"value":"Teststock"
},
"locationId":{
"value":"2"
}
}
]
}
Whereas this causes issues:
{
"lines": [
{
"lineNbr": {
"value": "1"
},
"physicalQuantity": {
"value": 2466.0
},
"operation": "Update"
},
{
"physicalQuantity": {
"value": 2.0
},
"operation": "Insert",
"inventoryId": {
"value": "Teststock"
},
"locationId": {
"value": "2"
}
},
{
"lineNbr": {
"value": "2"
},
"physicalQuantity": {
"value": 2466.0
},
"operation": "Update"
},
]
}
The same issue occurs if there are several inserts in the same payload.
For the moment, the workaround is to only include one "insert" line per payload, and always as the last operation.
We'll open a case with the development team so they can investigate it.
Thank you.
... View more