issue in importing the date format through excel/csv in Service now?

divs
Kilo Contributor

Hi All,

i am facing the issue while importing the date type data in to service now.it is giving me error.

Please help me to rsolve this issue.can we write any script to bring it into yyyy-mm-dd format?

1 ACCEPTED SOLUTION

Dan51
Giga Contributor

I had a similar issue, I thought my problem was coming from the excel sheet but it wasn't. Check your staging table. My data was going into the staging table as expected but then there was miscommunication from the staging table to my actual table. Hope this helps for debugging!

View solution in original post

6 REPLIES 6

Vijay Talupula
Tera Guru
Tera Guru

Hi Divya,



I don't think you need to go for scripting. Please refer to the below sample screenshot, where you can set your desired format in the Transform Map form under "Fields Map" section.



If you don't see this "date format" field, please configure the list layout to see and also follow the same for form if needed.



find_real_file.png


Hi Divya,



Just to expand a little on what Vijay has said:



The date format field tells the import set what date format to expect from the source data, it will then transform the data into the format expected by your target field.



So, if your source is dd/mm/yyyy you should set the date format field to that, it will then transform the data to your system setting of yyyy-mm-dd.


avanigadda
Tera Contributor

i tried this but it still not working

find_real_file.png

 

i am importing this:

find_real_file.png

Getting below error:

Unable to format 2/4/17 using format string MM-dd-yyyy for field u_when_needed.

 

Please help me to fix this. 

linnbuchanan
Kilo Expert

This doesn't help in fixing it within ServiceNow, but could you format the data (in excel) prior to importing it?