```record.delete({type: record.Type.PURCHASE_ORDER...
# suitescript
c
Copy code
record.delete({type: record.Type.PURCHASE_ORDER, id: '44868160'});
Copy code
type: "error.SuiteScriptError",
   name: "SSS_INVALID_SRCH_OPERATOR",
   message: "An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: internalid.",
   id: "",
Am I missing something?
a
the first code exerpt is not causing your error... I assume you've got some other UE triggering on the PO that should NOT be firing in a delete context, but currently is.
m
Looks like you have a user event script on Purchase Orders that is erroring on the DELETE event. That specific line of code is unlikely to be causing that error.
c
There are a few UE scripts written by ACS deployed on the PO - surely you're not suggesting there's a bug in ACS code? 😄
😂 1
Confirmed - it's one of the ACS scripts. Thanks!
👍 1