# \[Driver development \] Bad configuration Error upon device disabling

**URL:** <https://forum.inductiveautomation.com/t/driver-development-bad-configuration-error-upon-device-disabling/32466>\
**Category:** Module Development\
**Tags:** ignition79\
**Created:** [February 20, 2020, 5:36pm UTC](https://forum.inductiveautomation.com/t/driver-development-bad-configuration-error-upon-device-disabling/32466 "2020-02-20T17:36:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardo.cabrita](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@ricardo.cabrita](https://forum.inductiveautomation.com/u/ricardo.cabrita)\
**Post date:** [February 20, 2020, 5:36pm UTC](https://forum.inductiveautomation.com/t/driver-development-bad-configuration-error-upon-device-disabling/32466/1 "2020-02-20T17:36:15Z")

</div>

Hello,

Regarding some drivers we developed for Ignition (7.9), I’ve noticed that after disabling a device running said driver, the following message appears every 10 seconds:

Device ‘example’ is disabled. Returning Bad\_ConfigurationError.

I’ve also noticed, devices already disabled when the gateway starts, do not result in this error message. Does anyone know what might be the cause of this ?

Maybe something that is not being done on shutdown of the driver object ? This is using the **AbstractTagDriver** class.

Thanks in advance for any help,  
Ricardo

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 20, 2020, 5:46pm UTC](https://forum.inductiveautomation.com/t/driver-development-bad-configuration-error-upon-device-disabling/32466/2 "2020-02-20T17:46:20Z")

</div>

Did you override `shutdown()` in your subclass of `AbstractTagDriver`?

---

<div class="post-metadata">

**Author:** ![ricardo.cabrita](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@ricardo.cabrita](https://forum.inductiveautomation.com/u/ricardo.cabrita)\
**Post date:** [February 20, 2020, 5:48pm UTC](https://forum.inductiveautomation.com/t/driver-development-bad-configuration-error-upon-device-disabling/32466/3 "2020-02-20T17:48:56Z")

</div>

Yes I did, I remove there the tags and stop device communication.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 20, 2020, 5:50pm UTC](https://forum.inductiveautomation.com/t/driver-development-bad-configuration-error-upon-device-disabling/32466/4 "2020-02-20T17:50:00Z")

</div>

Make sure you also call `super.shutdown()` - I think the problem is some tags are not being removed from the address space.

The code that is logging the error you’re seeing can only get that far if there are still nodes in the address space for the disabled driver.

---

<div class="post-metadata">

**Author:** ![ricardo.cabrita](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@ricardo.cabrita](https://forum.inductiveautomation.com/u/ricardo.cabrita)\
**Post date:** [February 20, 2020, 5:52pm UTC](https://forum.inductiveautomation.com/t/driver-development-bad-configuration-error-upon-device-disabling/32466/5 "2020-02-20T17:52:04Z")

</div>

Ah I see, must be forgetting to remove some tag. So removing all tags should fix it ? Or do you think it’s best to just call super.shutdown() ?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 20, 2020, 5:56pm UTC](https://forum.inductiveautomation.com/t/driver-development-bad-configuration-error-upon-device-disabling/32466/6 "2020-02-20T17:56:29Z")

</div>

Well, super.shutdown() already removes the tags for you. Call that, then also do your own logic for disconnecting or whatever other cleanup you have to do.

---

<div class="post-metadata">

**Author:** ![ricardo.cabrita](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@ricardo.cabrita](https://forum.inductiveautomation.com/u/ricardo.cabrita)\
**Post date:** [February 20, 2020, 5:58pm UTC](https://forum.inductiveautomation.com/t/driver-development-bad-configuration-error-upon-device-disabling/32466/7 "2020-02-20T17:58:21Z")

</div>

Ah I see. Thanks for the help!
