- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2014 12:38 PM
I am trying to load data into ServiceNow from an Excel file (.xls). The import works however, the date fields become decimal fields. I've tried changing the Excel column to text, and general. I've saved the Excel file as a CSV and looked at the data.
Somewhere through the process of loading the Excel file into ServiceNow, the date fields are automatically formatting to decimal fields. I've checked the dictionary of the import table field and set all fields to "string". Why is this happening? Is this a bug in ServiceNow's import option?
Import Table
Import Table Dictionary Field
Field in Excel as "Text" format
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2014 07:35 PM
Did you try using a fresh import set table after changing the data from number to text?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2014 07:37 AM
I needed to delete the import table and create a fresh one. Then I imported only the headers of the excel file as all strings. Once that was complete, I imported the actual data without the headers and it all came over as strings, like I wanted.
Thanks for everyone's help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2014 05:35 PM
If your data is a date, you can do one of two things:
- In Excel, make sure the column / text type is set to DATE. SN automatically processes this.
- In ServiceNow, open the field mapping entry from the related list on the Transform Map. Note that this is different from the "Mapping assist" functionality.
- From this form (picture attached), you can set the date format of the data in the field.
- Even though the system tries to auto-complete formats, you can type whatever you like. (see System Properties > System module for acceptable Date and Time format examples)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2014 11:40 AM
Yeah, so whenever I run into this, to fix it without deleting the import set table, you simply need to go to the import set table, delete the offending column, then manually create one as a string field (or whatever format would work best for you). Then make sure you set the attributes and the column name hte exact same.
For instance, if you had a field called Number1 (u_number1) that, in your import set was created as a decimal, or even integer field and you needed string, do this:
1) Delete the field labeled Number1 (u_number1)
2) Create a new field named Number1 (u_number1) that is String type.
3) Personalize dictionary on the new field and set the attribute to "import_attribute_name=Number1"
I have had to do this many times, as sometimes my first import may have only number data in a text column. Service-Now sees this so creates the field as integer (or decimal). Then my next upload has a few alpha characters in that same column and causes all kinds of problems. Yes, deleting your import set table, then re-importing the spreadsheet with alpha characters (or with just column headers only) would fix this, but to me it's easier to just delete and re-add the column. I just wanted to throw that solution out there as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2018 11:09 PM
Hi All,
I am having a decimal field in a form that holds decimal values till 8( scale = 8 and max length =31). when i am trying to load data in that field from excel ( field type is Text) it is removing the 7th digit after upload.
ex: 0.12345678 after upload the field is showing as 0.1234568. Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 09:48 PM