- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 01:29 PM
Hi ,
Ran wrong script in background script , after realize i want to rollback the script
but i am unable to see the option rollback in related list
Rollback & Recovery > Script Execution History.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 02:53 PM
Thank you for posting, I see there is an "update" there. In this case, I have no idea why you can't role back the script execution, provided you find it. Your issue seems to suggest creating a Support Case. But then you have 'audit history' for that incident record that you can check. And it seems the update may have failed, as I see in the screenshot you're updating a read-only field 'cmdb_ci'. There is no check for the 'incRec.update()' being successful in your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 01:41 PM
Seems there is nothing to rollback. Post your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 01:48 PM
This is my script :
Background message, type:error, message: Data Policy Exception:
The following fields are read only: Configuration item
*** Script: the updated incident number isINC0493757
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 01:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 02:53 PM
Thank you for posting, I see there is an "update" there. In this case, I have no idea why you can't role back the script execution, provided you find it. Your issue seems to suggest creating a Support Case. But then you have 'audit history' for that incident record that you can check. And it seems the update may have failed, as I see in the screenshot you're updating a read-only field 'cmdb_ci'. There is no check for the 'incRec.update()' being successful in your script.