# Import of multiple flows, causes MQTT to oscillate between connected and disconnected state

**URL:** https://discourse.nodered.org/t/import-of-multiple-flows-causes-mqtt-to-oscillate-between-connected-and-disconnected-state/33130
**Category:** General
**Created:** [21 September 2020 03:45 UTC](https://discourse.nodered.org/t/import-of-multiple-flows-causes-mqtt-to-oscillate-between-connected-and-disconnected-state/33130 "2020-09-21T03:45:25Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [21 September 2020 06:17 UTC](https://discourse.nodered.org/t/import-of-multiple-flows-causes-mqtt-to-oscillate-between-connected-and-disconnected-state/33130/2 "2020-09-21T06:17:14Z")

</div>

Hi @freds, welcome to the forum.

Firstly,

Your flow is not importable. it is important to surround your code with three backticks  
`````  
`like this`  
`````

You can edit and correct your post by clicking the pencil icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

Question. Do you have multiple MQTT configuration nodes with the same client ID set? Client ID must be unique or the broker will cause disconnects.

---

_[View the full topic](https://discourse.nodered.org/t/import-of-multiple-flows-causes-mqtt-to-oscillate-between-connected-and-disconnected-state/33130)._
