- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023 10:49 AM
Hello SNC,
In to the story, I created an INC and on the incident i am clicking on UI-Action 'create outage' which has to create an outage record in cmdb_ci_outage. My test is running fine untill this step but the I am not able to open the record, I am getting the following error.
| FAILURE: Failed to open the 'cmdb_ci_outage' form with id '371745b68762e550c540c916cebb35a4' Table 'cmdb_ci_outage' does not have a record with id '371745b68762e550c540c916cebb35a4' |
below(attached)is the test result,
has anyone faced it, FYI, I build other steps and same approach worked for othr and not for this, can anyone tell why?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 11:25 AM
I was able to figure it out myself.I created a submit record step after clicking the UI action.
Then the record was saved to the data base and was able to query for the record.
I followed the below approach..
My test was success now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 05:52 AM
Please use record query step first on cmdb_ci_outage table with filter condition as Task number = Output of Submit a Form step
Then use Open an existing record step and set Record as the output of Record query step
something like this
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 10:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 07:44 PM
try to give some timeout for Record query step which checks outage table
Give timeout of 10-15 seconds and then check.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 12:37 PM
The time out was added earlier but I didn't have that row on the list.
additionally, In the run script step I wrote the below piece of code.
But it didn't worked so I made it false.
var secondsValue = 90;
var seconds = parseInt(secondsValue, 10) * 1000;
var start = parseInt(new Date().getTime()) + seconds;
while(start>parseInt(new Date().getTime())){
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 08:38 PM
does that user have read access to outage table? if not then it will throw error
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
