Failed to save record because Invalid API usage. You must use getValue to return the value set with setValue. - anyone had this error?

Failed to save record because Invalid API usage. You must use getValue to return the value set with setValue. - anyone had this error?

I am getting this error why trying to create a customer refund in NetSuite. Never had this error before.

Below is the output

{
  "nlobjFieldIds": {
    "customer": 48045311,
    "total": 308.05,
    "paymentmethod": 1,
    "class": 18,
    "location": 7,
    "account": 339,
    "aracct": 132,
    "paymentoption": 11,
    "memo": "Magenta POS Transaction",
    "custbody_magenta_customer_number": "42802218",
    "custbody_magenta_txn_invoicenumber": "080701900143",
    "custbody_magenta_txn_id": "26020210372708070108070100900269",
    "custbody_magenta_txn_number": "08070100900269"
  },
  "nlobjSublistIds": {}
}

Hi Ovina,

This type of error is commonly associated with scripts running in NetSuite during record creation. Have you already checked with the owner of the User Event scripts in NetSuite to see whether any of them could be triggering this error and if adjustments are needed?

If you’d like us to investigate further, I can create a support ticket so we can review your flow in more detail.

Additionally, could you please confirm whether this issue is occurring only within an Integration App (IA) or if it also affects a custom flow?

Looking forward to your response.