- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 05-28-2023 09:11 AM
Recently I came across a scenario where I had to create announcements for CSM portal as we were upgrading the instance to latest ServiceNow version. I created the announcement and set the display style, type, from and to date, active as true and selected the correct portal as well under portal tab, but still the announcement was not visible in the portal. I tried multiple things but nothing worked. After some more digging I came through this article on ServiceNow support which explains the reason why the announcement could not be visible after upgrading the instance (to Paris or later version).
Reason:
This issue occurs because of the Announcement titled "Invalid Run As User", which are created with the OOTB scheduled job:[AppSec] Daily Data Management. The scheduled job script invokes a script include "CheckISCRunAsUser" to check if the 'Run as user' for two scheduled jobs:
1. [AppSec] Daily Data Management: the run as user must be active and not locked out and has the admin role.
2. [PA AppSec] Daily Data Collection: the run as user must be active and not locked out. There are no role requirements for this user.
If either of these jobs is not having a proper 'Run as user' as per the requirements mentioned above, then a record will be created in announcement table with the title as Invalid Run As User.
Once you open the "invalid run as user" announcement records you can bring a field Details URL with the help of form design or form layout which will give you the direct link to the scheduled job causing this announcement.
How to resolve this issue:
Step1: Open the problematic scheduled job from your announcement record and look for Run as user, and make sure there is an admin, unlocked and active user selected for [AppSec] Daily Data Management and just an unlocked and active user selected for [PA AppSec] Daily Data Collection scheduled jobs.
Step2: Now go back to your respective announcement records and mark them as active false.
Once done with above two steps, you should be able to see your announcement appearing in the respective portals.
Hope this article helps you and guides you in right direction, if you are facing similar issues. Please mark this article helpful if you find so.
Thanks,
Mohit Kaushik
ServiceNow Developer and Community MVP '2023
- 902 Views