anyone have a clue what this error is when saving ...
# suitescript
o
anyone have a clue what this error is when saving a sales order via wf action script "Invalid issue reference key 54."
a
@oceancloud there is some sort of validation blocking you from entering one of the fields with the value
54 is a reference to the internal id of the value you are trying to use
these issues pop up when you have a field that is list/record of other values (think like a customer field, based on the customer list)
do you have a field named 'issue' on the sales order?
what list is used for that field? what value in that list corresponds to internal id 54?
once you get that figured out, you're ready to start to determine what validation is in your way
o
...taking alook
trying to get 'issue' field value is just null
can i test if it exists?
i agree it looks like a bad field value reference. but NS does not seem to be giving me exactly what field has the problem...
i
Make sure that the record with the id 54 is active. Maybe some set it to inactive.
a
the field is 'issue'
read another way, your error states, "internal id 54 is an invalid reference for 'issue'
who knows, it could be the original label which has changed
if there's not a ton of data being submitted with the record, just look at what values are getting set, and determine which of those is a list/record in NS
it's one of those fields......
issue..... I feel like that's a case-related field, but again, you might just be seeing a label for a custom field, and that label may be different on the records, so it could taking a little digging....
but come to think of it, that may be a good start, take a look at your custom fields and see if you have one named issue
o
def no field with 'issue' as the name
strange error
also no column field with 'issue' anywhere in the name, nor a form field with that references
so when i remove a custom field -> setting a boolean custom field to "T", it works
meaning skipping that field
it was being caused by another script