Match not found, reset to original Error while saving Incident form

Sagar24
Tera Contributor

I have an onChange Client script which sets the location based on CI selection. If the CI doesn't have any location then it should be setting location to "Not Available" (This is a test location we created and wanted to set to location whenever ci doesn't have any location). However, while saving the form it throwing an error as "Invalid Update", "Match not found, reset to original" as shown in the picture below

find_real_file.png

 

Client Script:

find_real_file.png

1 ACCEPTED SOLUTION

Musab Rasheed
Tera Sage
Tera Sage

Hello,

'Location' is a reference field and in code you are passing it is hard coded string value hence showing error, Please create new location in location table as 'Not available' then pass sys_id of new entry from location table to your code then it will work properly.

Mark my answer as correct if that helps.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

View solution in original post

1 REPLY 1

Musab Rasheed
Tera Sage
Tera Sage

Hello,

'Location' is a reference field and in code you are passing it is hard coded string value hence showing error, Please create new location in location table as 'Not available' then pass sys_id of new entry from location table to your code then it will work properly.

Mark my answer as correct if that helps.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab