The CreatorCon Call for Content is officially open! Get started here.

Show error when Change the field type string to date/time.

sibasundarsahoo
Tera Contributor

sibasundarsahoo_0-1718343815323.png

Hi

I need to change the field type string to date/time in Injury and illness table But it showing [Type change not allowed. Invalid type conversion for field 'Date and time of injury or illness' on table 'Injury and illness'. Cannot convert from 'String' to 'Date/Time'.] Error.

@Allen Andreas @Pradeep Sharma @Community Alums @Anurag Tripathi @Mark Roethof 

2 REPLIES 2

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Thats correct, its not allowed. You can create a new field, and drop this one as alternative.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Anurag Tripathi
Mega Patron
Mega Patron

Don't think this will be possible. 

 

You can create a ne field,

Copy value form original to this via script, if needed.

Drop original field, or remove from the form.

Change label of new field to make is same as old one.

-Anurag