Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
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
0
