I'm running into an issue where creating a Purchase Order via a NetSuite import works only for the first time and it creates only one of the line items but any subsequent Update to add more line items to that same PO fails with:
{"code":"USER_ERROR","message":"Please enter value(s) for: Vendor"}
even though the Vendor field is correctly mapped, present and resolved in the payload, and already saved correctly on the existing record (confirmed in the NetSuite UI).
I can't understand why, I tried almost everything mentioned online and nothing works.
Sample Payload:
{
"page_of_records": [
{
"record": {
"attributes": {
"type": "Purchase_Order__c",
"url": "/services/data/v61.0/sobjects/Purchase_Order__c/a0rbV00001WrumrQAB"
},
"Id": "a0rbV00001WrumrQAB",
"Name": "PO-000001695",
"Assigned_Vendor__r": {
"attributes": {
"type": "Account",
"url": "/services/data/v61.0/sobjects/Account/001bV0000100OrFQAU"
},
"NetsuiteVendorID__c": "1297",
"serviceTerritory__c": "0HhbV0000001z33SAA",
"Id": "001bV0000100OrFQAU"
},
"Order_Date__c": null,
"CreatedDate": "2026-07-14T16:08:56.000+0000",
"PO_Type__c": "Labor",
"Status__c": "Accepted",
"Purchase_Order_Line_Items__r": [
{
"attributes": {
"type": "Purchase_Order_Line_Item__c",
"url": "/services/data/v61.0/sobjects/Purchase_Order_Line_Item__c/a0qbV00000nkFC5QAM"
},
"Id": "a0qbV00000nkFC5QAM",
"Product__r": {
"attributes": {
"type": "Product2",
"url": "/services/data/v61.0/sobjects/Product2/01tbV00000fFA4zQAG"
},
"NetsuiteItemID__c": "7360"
},
"Quantity__c": 4,
"UnitCost__c": 41.667,
"Item_Description__c": "Base install labor (Walkable) Labor Waste Factor -Good Shingles (# Squares of Waste)"
},
{
"attributes": {
"type": "Purchase_Order_Line_Item__c",
"url": "/services/data/v61.0/sobjects/Purchase_Order_Line_Item__c/a0qbV00000nkFC6QAM"
},
"Id": "a0qbV00000nkFC6QAM",
"Product__r": {
"attributes": {
"type": "Product2",
"url": "/services/data/v61.0/sobjects/Product2/01tbV00000fFA4zQAG"
},
"NetsuiteItemID__c": "7360"
},
"Quantity__c": 15,
"UnitCost__c": 45,
"Item_Description__c": "Base install labor (Walkable) Labor Pitch 3/12 (# Squares)"
},
{
"attributes": {
"type": "Purchase_Order_Line_Item__c",
"url": "/services/data/v61.0/sobjects/Purchase_Order_Line_Item__c/a0qbV00000nkFC7QAM"
},
"Id": "a0qbV00000nkFC7QAM",
"Product__r": {
"attributes": {
"type": "Product2",
"url": "/services/data/v61.0/sobjects/Product2/01tbV00000fFA5UQAW"
},
"NetsuiteItemID__c": "7301"
},
"Quantity__c": 15,
"UnitCost__c": 45,
"Item_Description__c": "Regular 1-layer tear-off (Walkable) Labor Pitch 3/12 (# Squares)"
},
{
"attributes": {
"type": "Purchase_Order_Line_Item__c",
"url": "/services/data/v61.0/sobjects/Purchase_Order_Line_Item__c/a0qbV00000nkFC8QAM"
},
"Id": "a0qbV00000nkFC8QAM",
"Product__r": {
"attributes": {
"type": "Product2",
"url": "/services/data/v61.0/sobjects/Product2/01tbV00000fFA4aQAG"
},
"NetsuiteItemID__c": "7403"
},
"Quantity__c": 30,
"UnitCost__c": 2,
"Item_Description__c": "Ridge vent install (non-walk) Labor Ridges - Good/Better (# Linear Feet)"
}
]
}
}
]
}


