Import set JSON missing attributes / field
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 12:16 AM - edited 02-06-2024 12:19 AM
Hi,
I'm using import sets with a JSON file type.
In the file, one of the attributes does not appear for all objects. In this example, fieldc attributes is missing from the 3rd object
{
"Report_Entry": [
{
"fieldA": "ddddd",
"fieldB": "ccccc",
"fieldC": "bbbbb",
"fieldD": "aaaa"
},
{
"fieldA": "ddddd",
"fieldB": "ccccc",
"fieldC": "bbbbb",
"fieldD": "aaaa"
},
{
" "fieldA": "ddddd",
"fieldB": "ccccc",
"fieldD": "aaaa"
}]
}
It seems like this is causing the field to be ignored for all records and not being loaded to the staging table.
Does anyone know how to overcome this issue?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 06:49 AM
if the json key is not present is it not setting the import set field as empty string?
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader