Hello everyone, I need your brains please. I spent...
# general
l
Hello everyone, I need your brains please. I spent 2 days trying to figure out what's wrong and I'm out of ideas. I have an MR script which should run simple
submitFields()
function, which should change value of a checkbox on a custom record. All parameters are correct (I'm logging them before function execution), and yet every execution throws
SSS_INVALID_SRCH_OPERATOR
error, pointing to a field which should not take part in current function call. The field id listed in error thrown above happens to be the first field on a custom record, if that changes anything. It's mandatory and of List/Record type (but again - I don't care about this field, I'm trying to change value of some other checkbox). I have set
ignoreMandatoryFields
parameter to true, but that doesn't change anything.
b
check for other user event scripts or workflows
l
There shouldn't be any, custom record is brand new and so are scripts that access it...
b
what does the stacktrace say?
l
Copy code
"name":"SSS_INVALID_SRCH_OPERATOR","message":"An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: custrecord_bdy_account_manager."
And line number. Again - field above is not what I'm trying to change, and yet it generates an error somehow.
b
most interesting thing would be the stack or stackTrace property
normally thrown errors have a stack which would tell you which lines triggered the problem
importantly you would be looking for lines from search related code
l
Yes, I know... 🙂 There's no search, error is thrown in
submitFields()
function which I suppose uses search in the background
b
not really, it has no need to, there is nothing to search
if you are getting search related errors and none of the lines related to it are search related, then i would start blaming the user events or workflows deployed to your record
z
First of all, what do you mean with "there is no search"? M/R script is essentially based on saved search results or array as return value in getting data stage? Could you provide MR script here?