I am creating Vendor Bill Payments through SOAP bu...
# general
k
I am creating Vendor Bill Payments through SOAP but am getting:
You do not have permissions to set a value for element tranid due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.
The tranID maps to the Check # in netsuite and I have checked that my integration role has permission to edit this field and that its not locked - any other ideas?
k
Are you checking the "To be Printed" box (tobeprinted = T)? If so, then you can't set the check number on the Bill Payment because the check number will be assigned when the check batch is printed. To set the check number on the Bill Payment record, don't check the "To Be Printed' box.
k
Heres our payload:
Copy code
{"memo": "IR-2025-04-21-636077", "apAcct": {"internalId": "111"}, "entity": {"internalId": "1040"}, "tranId": "7d693f1f-9da1-42f2-b8ae-48bf5cd55c9f", "account": {"internalId": "530"}, "currency": {"internalId": "3"}, "tranDate": "2025-04-22T00:00:00", "applyList": {"apply": [{"doc": "17140", "type": "vendbill", "apply": true, "amount": 50.4, "refNum": "425720f1-e399-4a10-b10b-361ae6e15691"}]}, "externalId": "7d693f1f-9da1-42f2-b8ae-48bf5cd55c9f", "subsidiary": {"internalId": "3"}}}
and the response:
Copy code
"response_data": {"status": {"isSuccess": false, "statusDetail": [{"code": "INSUFFICIENT_PERMISSION", "type": "ERROR", "message": "You do not have permissions to set a value for element tranid due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.", "afterSubmitFailed": null}]}, "object_reference": {"name": null, "type": "vendorPayment", "externalId": "7d693f1f-9da1-42f2-b8ae-48bf5cd55c9f", "internalId": null}}
k
"tranid" on a Vendor Payment is the Check #. I don' think that "7d693f1f-9da1-42f2-b8ae-48bf5cd55c9f" is the value you want to send to that field.
k
Yeah exactly - we do want to and have been able to send this UUID value to other integrations previously, its just this specific NS account we're having issues with
k
OK, just checking. Since you're not checking the "To be Printed" box in the payload, check your Accounting Preferences and if "Default Vendor Payments To Be Printed" = TRUE, then that may be your problem, since that would check the box by default.
👀 1