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.
How to repair Discovery Credentials not accessible after clone - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to repair Discovery Credentials not accessible after clone
KB0723549

How to repair Discovery Credentials not accessible after clone


4275 Views Last updated : Jul 7, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

When you navigate to Discovery->Credentials on the cloned instance and click on a credential, the system displays "Record Not Found". Editing or deleting the record from a List won't work.

Cause

Corruption of the credentials table data during the cloning process. Records are orphaned.

This is caused by: PRB1305469 KB0717208 Excluding table-per-class (TPC) extended tables from a clone can cause orphaned Discovery Credentials with the 'Record not found' error when trying to open them

Resolution

Due to the orphaned records, the best practice is to use the table cleaner to purge the table. To do this, we must add an entry to sys_auto_flush table for the discovery_credentials table to run the table cleaner against it. Afterwards we will need to remove that entry, otherwise the discovery_credentials table will automatically be purged every hour. Finally we need to Import the credentials from the previous instance that we cloned into the new instance.

On the new instance, navigate to sys_auto_flush.list and add an entry for the discovery_credentials table. Enter 0 for age in seconds. Do NOT check Cascade Delete. Click Update to add it.

To run the table cleaner against the discovery_credentials table and remove all of the corrupted credential entries from the new instance, navigate to sys_trigger.list. From there, search for name = Table Cleaner(no underscore). Choose Table Cleaner from the list and within the Table Cleaner utility click on "Execute Now" to purge the records in the discovery_credentials table. You can check the Discovery Credentials list to verify that the entries have been purged.

*keep in mind that all tables in the sys_auto_flush will be purged as well - this utility just makes it possible to run the process on demand as opposed to the once per hour schedule.

Remove the entry for the discovery_credentials table from the sys_auto_flush.list to ensure that the table does not get purged again during the hourly schedule.

On the previous instance (that was cloned), export the credentials to XML by right mouse clicking on the Discovery Credentials list between the column name values, and then click on Export ->XML. After the export you must choose Download to save a local copy.>

Import the Exported Credentials into the discovery_credentials table on the new instance by right mouse clicking on the Discovery Credentials list between the column name values, and then click on Import XML and choose the exported  XML file that you downloaded from the previous step.

Optional:
If there were any specific mid servers that were used by certain credentials that were only available to the cloned instance, and not available to the new instance, you will need to modify those mid servers in the new instance.


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.