After importing data into the sys_choice table using Excel, the Value field is not populated correct

Koki Sugimori
Tera Contributor

After importing data into the sys_choice table using an Excel file, I am facing a problem where only the Value field is not populated with values correctly and all the values are replaced with numbers.

 

When I try with PDI, the data is imported correctly as per the Excel file, but in the demo instance, the Value field is all replaced with numbers.

Since the PDI is importing the data correctly, I do not think there is anything wrong with the Excel file itself.

 

My apologies if I have not explained it well enough.

Can anyone assist me with the above problem?

 

Best regards and thank you in advance for your help.

1 ACCEPTED SOLUTION

@Koki Sugimori 

Since that field is of type Integer hence you are facing the issue

If you are not allowed to change the field type, then delete that field and create a new one with same name and of type String

Then load and it should work fine

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

16 REPLIES 16

@Ankur Bawiskar 

Thank you very much.
So, am I correct in deleting the column in the red frame in the image below and re-creating the Value column with Type=String?

KokiSugimori_0-1744862028847.png

 

Also, when you delete the column, is there any effect on the existing records in the sys_choice table?
I would also like to know if there are any precautions to be taken.

@Koki Sugimori 

no impact in existing sys_choice table

You will have to map this new field again in transform map with the correct Value field from sys_choice

It will start working fine.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader