Version: eXtendPS-DE 1.2.9 and above
Audience: Administrator, User

Possible Cause

This error typically occurs when an autonomous vendor bill record is generated from an invoice response record and the location field is required on the vendor bill record.

Solution

To resolve this issue, a NetSuite Administrator will need to create a function named beforeBillRecordSave in the suite_promo_transformers.js file. Within this function, you will define the location to be set on the vendor bill record. Below is an example of the function structure:
/**
 * @param {Object} args
 * @prop  {Object} args.vendorBillRecord
 * @prop  {Object} args.invoice
 * @prop  {Object} args.poId
 */
function beforeBillRecordSave(args) {
    var vendorBillRecord = args.vendorBillRecord;
    var invoice = args.invoice;
    var poId = args.poId;

    // Please specify the location here to set it on the body level.
    vendorBillRecord.setValue({ fieldId: 'location', value: '1' });
}