asked this in <#C298P0BCK|> but might be more suit...
# integrations
k
asked this in #C298P0BCK but might be more suited here: 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 #
field in netsuite and I have checked that my integration role has permission to edit this field and that its not locked - any other ideas?
r
What type of account are you filling in to the Account field? At least in the UI, if it's not a bank account type, the Check # field is grayed out. Presumably that same rule would apply to SOAP
k
Hmm it's to an _accountsPayable type
Here's the payload and response if it's helpful:
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}}
r
Copy code
"account": {"internalId": "530"}
What kind of account is 530?
Also in your apply list, I don't know if you need both the doc and refNum values. I don't usually see the refNum value used in my limited experience. I'm assuming in the doc value, 17140 is an internal ID right?
k
@RJMNS good catch -
530
is of type
_creditCard
r
You might be stuck then. I have a vague recollection of dealing with that before and I think Doc no is blocked by default on those types of transactions and there might be a way to open it up? I can't remember all the details other than remembering it was annoying to deal with. You'd probably have to do some digging on SuiteAnswers to see what's possible
k
will get the customer to change it to a Bank type instead, that should solve it.