Background:

In my scenario.  When we do transform record, some time NetSuite throw (USER ERROR) error message about:

  The record has been deleted since you have retrieved it.

Troubleshooting:

Since the script is called from RESTLET, we can alocated the issue by simulated it:

  1. Testing trigger/call RestLet ->
  2. RestLet executed, and it tring to save a Item Receipt(for example), try catch found the error at save() function ->
  3. Transaction's save function triggered User Event script(s) -> Before Load -> Before Submit -> After Submit
  4. Comment out a user event's before load then re-test, everything integrated and works good.
  5. Finally, the problem isolated at Before Load, a default value is not valid in this account.  [Fix the drop down value]
  6. (Note: same code works in User Interface, but, in above scenairo script DOESN"T works.)

Summary:

Error: Failed to create Item Receipt. Message:

Items you have requested in the record have been deleted since you retrieved the form

Think about the case when you saw this build-in NetSuite error message:

  • You might set an invalid value to a field.
  • You might try seting a non-available field's value

相关文章:

  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2021-07-15
  • 2021-04-29
  • 2022-12-23
  • 2021-08-31
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2021-09-13
  • 2021-05-20
相关资源
相似解决方案