Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
When the domain of the knowledge articles is changed, articles won't be visible(or attachments of the articles won't be visble) to the users even though the users have access to them. - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • When the domain of the knowledge articles is changed, articles won't be visible(or attachments of the articles won't be visble) to the users even though the users have access to them.
KB0713164

When the domain of the knowledge articles is changed, articles won't be visible(or attachments of the articles won't be visble) to the users even though the users have access to them.


1104 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Symptoms


The users cannot see the knowledge articles that have attachments in knowledge homepage when the domain of those articles are changed. There will be a console error in the knowledge homepage as well. In some cases, knowledge articles will be visible but not the attachments.

Release


ALL

Cause


When the domain of the knowledge article containing the attachments is changed, the domain of the attachments will be the same as the previous domain.

As the domain of the article and the attachment is different, the users will not be able to see the articles when the user searches for those articles from knowledge homepage

Resolution


In order to resolve the issue, the user has to manually change the domain of the attachments too. The customers can use the following script to change the domain of the attachments whose domain is different than knowledge article.

var att = new GlideMultipleUpdate('sys_attachment'); 
att.addQuery('table_name', 'kb_knowledge'); 
att.addQuery('sys_domain', 'OLD_DOMAIN_SYS_ID') 
att.setValue('sys_domain', 'NEW_DOMAIN_SYS_ID_'); 
att.execute(); 

This script will move the attachments to the new domain.

If the user wants to change the domain of the article, make sure to change the domain of the attachments as well using a business rule.

 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.