on 01-09-2023 12:20 PM
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.
We tried to analyze logs and tried running 'Regenerate application catalog items' job multiple times but the variables are still not getting generated.
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...