Discussions
NSC | Resolve Error: INVALID_VALUE Invalid value for the resource or sub-resource field 'expense'
This error is caused by a missing tag within the expense sublist.
Generally, the elements of a JSON file containing sublists should be as follows:
{"sublistId":{"items":[{"fieldId1": "value","fieldId2": 123}]}}
Sublists contain an item tag, that has an array that holds multiple objects. And each object in the item array contains one line. Therefore, it is important to always include the “items” element tag in your payload.
Here is an example of a vendor bill with two expense lines:
{
"entity":315,
"expense":{
"items":[{
"account":31,
"amount":100
},{
"account":42,
"amount":100
}]
}
}
Got any feedback? Let us know in the comments!
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see
