
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
The Content Management System (CMS) is a ServiceNow application that allows you to create a custom interface. The CMS application allows for you to be creative as it can be used for a wide variety of projects. You can create entire websites using CMS or integrate it with other products. Non-technical users can use the application as a website maintenance tool to make changes to a website. As CMS features expand within the platform, it is not surprising that there is a need to troubleshoot and resolve content management issues effectively.
Once you have identified the appropriate steps to reproduce the issue, there are few questions you need to answer to troubleshoot effectively. These are 12 tips to troubleshoot, aid investigation, identify relief, or find a solution as quickly as possible. Within these 12 tips you will also understand when a CMS issue should probably involve ServiceNow technical support.
1.Is it a Cache issue?
First rule out a cache issue by flushing the instance cache across all nodes:
- Type the following command in the browser: https://<your instance>.service-now.com/cache.do
- When output displays, click the browser back button, retest issue, confirm whether issue occurs and if not...easy win!
2. Is the issue Configuration related?
Some commonly reported issues can be addressed by the Content Management > Site record configuration:
- CMS Service Catalog missing header (ie search bar, breadcrumbs, and results per page choice list): ServiceNow KB: CMS Service Catalog missing header (KB0551789)
- Shopping Cart not displayed in Service Catalog on CMS site: ServiceNow KB: Shopping Cart not displayed in Service Catalog on CMS site (KB0551793)
- User expecting CMS site and gets directed to standard UI: ServiceNow KB: User expecting CMS site is directed to standard user interface (KB0551801)
3. Is the problem specific to a certain browser or browser version?
Identify whether issue occurs for a specific browser or across other supported browsers.
4. Is security preventing you from moving forward?
It's typically a security (aka ACL) related issue if you see a "Security constraint" message such as:
- "Security constraints prevent the display of this record."
- "Number of rows removed from this list by Security constraints."
To debug security issues:
- Admin can toggle the 'Debug Security' module on:
- Retest steps (including impersonating user with issue), scroll down to review output at bottom of the page and identify any failing ACL(s) (Using Access Control Rules - ServiceNow Wiki):
- Output above indicates ACL failure is on all 3 'incident' read ACLs and failure on each of the following is also indicated: Script, Roles and/or Condition.
- To review ACLs, Admin must click 'lock' icon to elevate to Security Admin:
- Navigate to ACLs, filter on the ACLs indicated in the debug output, review and address issue within Script, Roles, Condition, etc:
5. Client side errors causing unexpected behavior?
Client side errors must be resolved. For example, a client script error can break the UI in general thus preventing subsequent UI policies (ie visible, read-only, mandatory settings) from firing as expected.
To identify and debug Client Side errors using Chrome:
- Use Chrome's Developer Tools to view the Console tab, reproduce the steps and verify whether an error is generated or not.
- If an error is generated in the console, click on the related link to the right.
- The failing code will be displayed.
- In many cases, filtering or searching scripts (ie Client Scripts, UI Policies, UI Macros, UI Pages, UI Scripts) on this code snippet can identify an offending script.
- Temporarily deactivate the identified script, retest and if console error doesn't occur -- that is the offending script that needs to be reviewed.
6. Are there any active, custom, global UI Scripts (executed on every page) beyond the out-of-box records?
These are the UI Scripts on the latest Fuji instance:
If there are any other active, global UI Scripts on the instance, temporarily deactivate them (ie set active=false), retest and if error doesn't occur -- that is the offending script.
7. Is issue specific to the Service Catalog within CMS?
If so, attempt to reproduce the issue with the non-CMS, standard UI Service Catalog.
If issue is not specific to CMS, you can save time and continue to troubleshooting steps in the standard user interface.
8. Is the problem Style or CSS related?
If the issue is that some elements on a CMS page appear differently, it may be because of custom CSS applied to the CMS site or page. Layout and Theme are configured on the entire site as well as individual pages. The following is configured for the Employee Self-Service CMS site:
- A quick test to determine if the issue is related to custom Themes and/or Layouts, is to switch back to the OOB values and re-test. If the issue does not occur, then that typically indicates a need to review the custom Theme and/or Layout.
- Use Chrome's Developer Tools to view the Elements tab to address issues with the CSS and conflict on CMS pages.
9. Narrow issue down to a specific block and/or specific page?
If you have narrowed down the issue to a specific content block on a page, isolate the block on a new CMS page and see if the same issue occurs. If the issue does not occur, this is likely a result of a customizations, layout, theme or other blocks on the custom page. You should add elements back one at a time while testing to narrow down the cause of the issue.
10. Is the issue related to the iFrame?
When working with CMS you may experience your iFrame not expanding to fit the page or it is being truncated. Here are a few things to check:
- 'ui_page_footer' UI Macro is up to date
- Ensure the base style sheet within the CMS site's Default theme contains the following:
BODY {
height: auto;
Framebuster checkbox is enabled on the CMS page which contains the iFrame
Does the iFrame call a catalog UI page which is truncated or cut off at the bottom? Check out these posts:
- How to fix Catalog UI style issues (CSS) in Fuji
- ServiceNow KB: PRB621891: Upgrading to Fuji causes catalog UI pages to lose styling (CSS) and catalo...
Perhaps your iFrame scroll bar is endless and you feel like you are on a constant loop of scrolling?
If you're seeing double vertical scrollbars, this provides a suggestion for relief:
11. Can the issue be reproduced on another instance (ie sub-prod), out-of-box or on a demo instance?
- Test issue across all instances and if possible, investigate on sub-Prod instance versus Prod.
- If issue does not occur on one instance, comparing records can help to isolate root cause.
- Being able to reproduce out-of-box is a determining factor in order to classify issue as a defect. All else typically considered customization or potential enhancement request.
12. When did the issue begin or was first reported?
- Did the problem start occurring after migrating changes or applying an update set? If so, review the Update Set and verify all changes were brought over.
- Did the issue begin after updating to a patch or an upgrade? The key thing to understand is that the support of customizations is a joint partnership. Sometimes the solution to a problem may come in the form of advice about how to troubleshoot an issue. Sometimes we may provide the solution entirely.
- Questions to consider include:
- Was a published API followed?
- Were best practices followed?
- Were changes made to Out-of-Box items done in a way that will protect them from changes to dependencies?
- Questions to consider include:
ServiceNow tracks most customizations in your system using the Customer Updates table (sys_update_xml). During the next upgrade, any changes that would otherwise be applied to customized records will be SKIPPED. To see these items that will be SKIPPED, filter the records in this table as such:
The first step in troubleshooting upgrade conflicts is to use the Upgrade History module to see if any relevant updates have been skipped. If you determine that an issue is due to a skipped update then you should merge or overwrite the custom code with the new ServiceNow changes (i.e. the Out of Box code).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.