Type change not allowed error while changing the type of a field which has data in it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 09:45 PM
Hi All,
I'm getting the below error when tried to change a field type from Single line text to Reference. This field is on a custom table.
Type change not allowed. Invalid type conversion for field 'Entity Name' on table 'IT Incident'. Cannot convert from 'String' to 'Reference'. There exist data records (100) that are not a Sys ID.
Has anyone faced this issue? can some please help to resolve issue.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 10:31 PM
Hi @Nagashree5
Refer below posts and try to resolve your issue :
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0695947
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 02:57 AM
Hi @Nagashree5
The reason is bcz the pre build data is string format and now you are coverting it to Reference,
You can do
- Take backup of this data.
- Clear all the values
-Change the data type
- Upload the back up data.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 02:08 AM
Hi @Dr Atul G- LNG,
We have 600 records atm with the values, Can you please guide how to exactly update the records after deleting the values.
TIA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 02:28 AM
Hi @Nagashree5
Try this in PDI first.
Create the dummy data.
Download the same in excel
change the data type to refence
Uploads data. make sure the field value must be in Reference.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************