This article provides a solution for users encountering an API error when syncing data from Procurify to NetSuite. This typically occurs during the creation of a Vendor Bill.
Bill Sync Error:
"Failed to create Netsuite VendorBill object. You do not have permissions to set a value for element department 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."
Possible Causes:
Procurify is trying to send "Department" (or "Class/Location") data to a field that is hidden or set to read-only on your preferred NetSuite Vendor Bill form. If the API cannot "see" or "write" to the field on the form it is using, the sync will fail.
You do not have the correct permissions.
Resolution:
To fix this, you must ensure the field is enabled under the Screen Fields section of your custom form in NetSuite.
Check the appropriate permissions as mentioned here: How to set up Netsuite credentials to sync bills from Procurify.
Go to Customization > Forms > Transaction Forms. Find your Vendor Bill form and click Edit.
In the form customization interface, scroll down to the sub-navigation tabs and click on Screen Fields.
Enable the Fields by ensuring the checkbox in the Show column is ticked and Display type is Normal
5. Save the form at the bottom of the screen
6. In Procurify, resync the Bill.
If the error persists, or you are seeing new error messages, please contact our Support team via in-app chat or emailing [email protected]

