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.
Changing or converting field type 'string' to 'reference' on existing, custom field - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Changing or converting field type 'string' to 'reference' on existing, custom field
KB0695947

Changing or converting field type 'string' to 'reference' on existing, custom field


10121 Views Last updated : Oct 8, 2024 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

The Assigned to field was inadvertently changed to String  type, in order to revert it to Reference type (which is the OOB value).
Changing a field type 'string' to 'reference' is possible under specific circumstances.
  • All the task records should have a value on the field. 

For example, if there are two records where 'Test String' field has a value saved to it, field type cannot be updated (unless those values are valid Sys IDs).

The record will not display when querying for it through the UI's task.list, it indicates a security constraint restriction error (even with maint role).

Another error message appeared when attempting to modify the Type:

  1. Navigate to sys_dictionary.list
  2. Search for Table = task & Column name = assigned_to, go into that record.
  3. In the Type field, change the current value of "String" to "Reference"
  4. Right-click the header and Save

Current behavior: The following error displays in the header:

"Type change not allowed. Invalid type conversion for field 'assigned_to' on table 'task'. Cannot convert from 'String' to 'Reference'. There exists data records (1) that are not a Sys ID."

Expected behavior: The Dictionary form would save without any errors.

 

Resolution

NOTE: This modification will only be accepted if the existing field contains a valid or empty Sys ID.

  1. Navigate to Dictionary Entry of field
  2. Select the magnifying glass on the 'Type' field
  3. Select 'Reference'
  4. Update/Save

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.