# Ttnctl devices export ... | ttn-lw-cli end-devices create ... fails to parse RxDelay from the JSON

**URL:** <https://www.thethingsnetwork.org/forum/t/ttnctl-devices-export-ttn-lw-cli-end-devices-create-fails-to-parse-rxdelay-from-the-json/49347>\
**Category:** Migrating Devices to V3\
**Created:** [July 2, 2021, 4:41am UTC](https://www.thethingsnetwork.org/forum/t/ttnctl-devices-export-ttn-lw-cli-end-devices-create-fails-to-parse-rxdelay-from-the-json/49347 "2021-07-02T04:41:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dajt](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/dajt/32/35697_2.png) [@dajt](https://www.thethingsnetwork.org/forum/u/dajt)\
**Post date:** [July 2, 2021, 4:41am UTC](https://www.thethingsnetwork.org/forum/t/ttnctl-devices-export-ttn-lw-cli-end-devices-create-fails-to-parse-rxdelay-from-the-json/49347/1 "2021-07-02T04:41:29Z")

</div>

I got this command from the ttnctl help messages.

```
ttnctl devices export --app-id dt_test_app --app-eui 70B3D57ED002C9A9 --handler-id meshed-handler --frequency-plan-id AS_923_925_TTN_AU pumpctrl-m0 | ttn-lw-cli end-devices create --application-id dt-test-app3
  INFO Using Application AppEUI=70B3D57ED002C9A9 AppID=dt_test_app
  INFO Discovering Handler... Handler=meshed-handler
  INFO Connecting with Handler... Handler=thethings.meshed.com.au:1904
error:pkg/ttnpb:parse (could not parse `{"value":"RX_DELAY_1"}` into `RxDelay`)
    field=RxDelay
    value={"value":"RX_DELAY_1"}
--- strconv.ParseInt: parsing "{\"value\":\"RX_DELAY_1\"}": invalid syntax

```

Given our devices are OTAA and the v3 stack is going to tell them to use a 5 second delay, can I just remove that bit of JSON? And should I?

Regards, David.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 2, 2021, 7:45am UTC](https://www.thethingsnetwork.org/forum/t/ttnctl-devices-export-ttn-lw-cli-end-devices-create-fails-to-parse-rxdelay-from-the-json/49347/2 "2021-07-02T07:45:05Z")

</div>

You should use the migration tool:

[https://www.thethingsindustries.com/docs/getting-started/migrating/migrating-from-v2/migrate-using-migration-tool/](https://www.thethingsindustries.com/docs/getting-started/migrating/migrating-from-v2/migrate-using-migration-tool/)

---

<div class="post-metadata">

**Author:** ![dajt](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/dajt/32/35697_2.png) [@dajt](https://www.thethingsnetwork.org/forum/u/dajt)\
**Post date:** [July 4, 2021, 11:32pm UTC](https://www.thethingsnetwork.org/forum/t/ttnctl-devices-export-ttn-lw-cli-end-devices-create-fails-to-parse-rxdelay-from-the-json/49347/3 "2021-07-04T23:32:36Z")

</div>

Thanks Nick.

It took a few goes but I got a dry run of a device export to go.

The command as given on the page doesn’t work, and the command to export all devices from an app didn’t work either. That’s with v0.6.0 of the migrate command.

I used the feedback note on the page to flag these problems.

Regards, David.
