# config generate - error: Cannot read property '\_\_id' of undefined

**URL:** <https://forums.balena.io/t/config-generate-error-cannot-read-property-id-of-undefined/207173>\
**Category:** openBalena\
**Tags:** balena-cli\
**Created:** [November 5, 2020, 1:10am UTC](https://forums.balena.io/t/config-generate-error-cannot-read-property-id-of-undefined/207173 "2020-11-05T01:10:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maggie0002](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@maggie0002](https://forums.balena.io/u/maggie0002)\
**Post date:** [November 5, 2020, 1:10am UTC](https://forums.balena.io/t/config-generate-error-cannot-read-property-id-of-undefined/207173/1 "2020-11-05T01:10:53Z")

</div>

I am using Open Balena 3.1.0 and CLI 12.26.1.

I am trying to execute the following command

`balena config generate --version 2.53.9+rev1 --network ethernet --appUpdatePollInterval 360 --app orange-pi-zero --output config.json --debug`

But I get the following error:

> [debug] new argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,config:generate,–version,2.53.9+rev1,–network,ethernet,–appUpdatePollInterval,360,–app,orange-pi-zero,–output,config.json] length=13  
> Cannot read property ‘\_\_id’ of undefined
> 
> TypeError: Cannot read property ‘\_\_id’ of undefined  
> at generateDeviceConfig (/usr/local/lib/balena-cli/build/utils/config.js:35:64)  
> at ConfigGenerateCmd.run (/usr/local/lib/balena-cli/build/commands/config/generate.js:68:28)
> 
> Additional information may be available with the `--debug` flag.  
> For help, visit our support forums: [https://forums.balena.io](https://forums.balena.io)  
> For bug reports or feature requests, see: [Issues · balena-io/balena-cli · GitHub](https://github.com/balena-io/balena-cli/issues/)

I can confirm I am logged in to the Open Balena server by doing balena whoami, The app exists, but at the moment doesn’t have anything deployed to it.

---

<div class="post-metadata">

**Author:** ![pdcastro](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pdcastro/32/1264_2.png) [@pdcastro](https://forums.balena.io/u/pdcastro)\
**Post date:** [November 5, 2020, 12:31pm UTC](https://forums.balena.io/t/config-generate-error-cannot-read-property-id-of-undefined/207173/7 "2020-11-05T12:31:04Z")

</div>

Thank you for reporting this issue @maggie0002. After some investigation, it looks like a new feature / data model introduced in openBalena v3 – application UUIDs – caught the CLI off guard. The CLI is checking for the existence of an `'uuid'` field in a database object to decide whether the object represents a Device or an Application. In the past, only Device objects had a `uuid` field, but since openBalena v3, Application objects also have a UUID field. I have opened the following issue, and I hope to have it fixed before the end of the day: [https://github.com/balena-io/balena-cli/issues/2087](https://github.com/balena-io/balena-cli/issues/2087)

---

<div class="post-metadata">

**Author:** ![pdcastro](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pdcastro/32/1264_2.png) [@pdcastro](https://forums.balena.io/u/pdcastro)\
**Post date:** [November 5, 2020, 2:21pm UTC](https://forums.balena.io/t/config-generate-error-cannot-read-property-id-of-undefined/207173/9 "2020-11-05T14:21:51Z")

</div>

@maggie0002, this issue was fixed in CLI version 12.26.2. Thanks again for reporting it! 👍
