JSON import of devices errors

Hi guy´s

We earlier used a EUI/onboarding program to produce import .json files for our devices like below

{“ids”:{“device_id”:“a84041d4d18332e6”,“dev_eui”:“A84041D4D18332E6”,“join_eui”:“5a656e7a725a3635”},“name”:“LST25375462”,“description”:“”,“lorawan_version”:“MAC_V1_0_2”,“lorawan_phy_version”:“PHY_V1_0_2_REV_B”,“frequency_plan_id”:“EU_863_870_TTN”,“supports_join”:true,“root_keys”:{“app_key”:{“key”:“842FF7A7D8DA74838DE3FADFC431F1C2”}}},{“ids”:{“device_id”:“a8404178618332e7”,“dev_eui”:“A8404178618332E7”,“join_eui”:“5a656e7a725a3635”},“name”:“LST25375463”,“description”:“”,“lorawan_version”:“MAC_V1_0_2”,“lorawan_phy_version”:“PHY_V1_0_2_REV_B”,“frequency_plan_id”:“EU_863_870_TTN”,“supports_join”:true,“root_keys”:{“app_key”:{“key”:“37EAD38FDF217EA2F1B7B537EE87A88E”}}},{“ids”:{“device_id”:“a84041e7f18332e8”,“dev_eui”:“A84041E7F18332E8”,“join_eui”:“5a656e7a725a3635”},“name”:“LST25375464”,“description”:“”,“lorawan_version”:“MAC_V1_0_2”,“lorawan_phy_version”:“PHY_V1_0_2_REV_B”,“frequency_plan_id”:“EU_863_870_TTN”,“supports_join”:true,“root_keys”:{“app_key”:{“key”:“52D472C164E2587126D11AC6BFFADDDA”}}}

When trying to import with this, we get an error saying

There was an error and the operation could not be completed

An unknown error occurred. Please try again later.

},
“field_mask”: {
“paths”: [
“ids.dev_eui”,
“ids.device_id”,
“lorawan_phy_version”,
“name”,
“root_keys.app_key.key”,
“frequency_plan_id”,
“lorawan_version”,
“supports_join”,
“ids.join_eui”
]
}
}
undefined
{}

Whats the change anyone?

Best Regards

/ Anders

Bit hard to tell due to the lack of formatting, you can edit and use the </> tool, but at first glance you don’t appear to be sending an array of devices, more a CSV of JSON snippets.

I’d not regard this as a new feature, more an error at either or both ends so I’ve adjusted the title accordingly!

Hi, and thank you, we re-wrote it to look like this instead - worked fine
Example:
{“ids”: {“device_id”: “eui-a84041d9fc5c712f”, “dev_eui”: “A84041D9FC5C712F”, “join_eui”: “A840410000000101”}, “name”: “eui-LST36058287”, “description”: “LoraST3.0 sensor”, “lorawan_version”: “MAC_V1_0_3”, “lorawan_phy_version”: “PHY_V1_0_3_REV_A”, “frequency_plan_id”: “EU_863_870_TTN”, “supports_join”: true, “root_keys”: {“app_key”: {“key”: “FA56412C54DC34E53EBAD852BD6E0EA9”}}}
{“ids”: {“device_id”: “eui-a8404174bb5c7130”, “dev_eui”: “A8404174BB5C7130”, “join_eui”: “A840410000000101”}, “name”: “eui-LST36058288”, “description”: “LoraST3.0 sensor”, “lorawan_version”: “MAC_V1_0_3”, “lorawan_phy_version”: “PHY_V1_0_3_REV_A”, “frequency_plan_id”: “EU_863_870_TTN”, “supports_join”: true, “root_keys”: {“app_key”: {“key”: “209DBCC4B2E842E00F6C0B704CD8BF56”}}}