Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.
No ratings
pruthvi_t
Saviynt Employee
Saviynt Employee

Symptoms

We have few issues reported where the variables under application catalog items are not completely generated. Few variables are missing as out of 11 variables that needed to be generated under the catalog item, only 7 were generated.

Diagnosis

We tried to analyze logs and tried running 'Regenerate application catalog items' job multiple times but the variables are still not getting generated.

Solution

After making use of Servicenow developer articles, we noticed that a dummy script needs to be added in the scheduled script execution to fix this issue. The dummy test script was added because the scheduled jobs run in the background and they will not run through the script debugger. So by adding the test script the jobs are run in script debugger and once the script is added, the 'Regenerate application catalog items' job is run and variables are created as expected.

servicenow article: https://www.servicenow.com/community/now-platform-articles/test-scheduled-jobs-and-fix-scripts-in-th...

Comments
kirbysnow
New Contributor
New Contributor

Hi @pruthvi_t ,

We encountered same issue all of the variables were not created. Can you please share what you have found during your debugging, maybe we had the same issue as well? I hope you don't mind.

I'm not comfortable on creating UI action on scheduled job to debug(from the article you shared) as this is a shared ServiceNow instance and other developers are working on other scheduled job.

Version history
Last update:
‎01/09/2023 12:20 PM
Updated by:
Contributors