Unable to submit record due to error: "Invalid update. Match not found, reset to original"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2024 11:22 AM
Hello all
I am trying to update the value of 'Life Cycle Stage' and 'Life Cycle Stage Status' on the basis of selected values in 'State' and 'Substate' on a alm_hardware form. The default value of State has been set to 'In use' as per the requirements. I created an onLoad client script to set the value of Life Cycle Stage to 'Operational' and Life Cycle Stage Status to 'In use' (again, as per the requirements).
But I am unable to save any record. Getting the following error on Submission: "Invalid update. Match not found, reset to original".
Following is the code snippet that I have used on alm_asset table (with 'Inherited' checbox checked):
Can someone please explain where I am going wrong?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 10:07 AM
PFB the screenshot of excel sheet:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 10:39 AM
I don't understand why you can't set the value of Life Cycle State and Life Cycle Stage Status when State and/or Substate change. I can see why you wouldn't want to write a script with all of the combinations, but using the Name in the setValue command does seem to work onChange.
Maybe the approach in this article, or the previous one written by the same person, would be better?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 11:16 AM
I think you really don't need to use any client scripts. "Life Cycle Mapping" will help you in configuring this. Need to map the state and Life cycle control to automatically change based on the state changes.
Thanks,
Narsing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 02:37 AM
I tried to convince the client to use this but they want the form to be updated in real time as the user changes the 'State' and 'Substate' which can only be done through client script. I activated the Life Cycle Mappings but they work only on form submission not on change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 08:38 AM
Could you share your scripts than?
Cause updating the value using g_form.setValue() clearly works, as @Brad Bowman said, so perhaps there is something wrong either with the client callable Script Include or the on-change Client Script calling it and updating the lifecycle fields.