# Error Writing to PLC Tags : Bad\_Failure

**URL:** <https://forum.inductiveautomation.com/t/error-writing-to-plc-tags-bad-failure/29003>\
**Category:** Ignition\
**Tags:** ignition80, scripting\
**Created:** [October 10, 2019, 6:48pm UTC](https://forum.inductiveautomation.com/t/error-writing-to-plc-tags-bad-failure/29003 "2019-10-10T18:48:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthikeyyans](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@karthikeyyans](https://forum.inductiveautomation.com/u/karthikeyyans)\
**Post date:** [October 10, 2019, 6:48pm UTC](https://forum.inductiveautomation.com/t/error-writing-to-plc-tags-bad-failure/29003/1 "2019-10-10T18:48:36Z")

</div>

Hello,

Recently facing an issue while writing to PLC.

Gateway Logs - INFO | jvm 1 | 2019/10/10 10:03:07 | W [d.L.L.LogixBrowse] [14:03:07]: Error browsing template instanceId=1369 device-name=Line 5  
INFO | jvm 1 | 2019/10/10 10:03:07 | java.lang.Exception: senderContext=56122 timed out waiting 2000ms for response  
INFO | jvm 1 | 2019/10/10 10:03:07 | at com.digitalpetri.enip.EtherNetIpClient.lambda$writeCommand$5(EtherNetIpClient.java:168)  
INFO | jvm 1 | 2019/10/10 10:03:07 | at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:682)  
INFO | jvm 1 | 2019/10/10 10:03:07 | at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:757)  
INFO | jvm 1 | 2019/10/10 10:03:07 | at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:485)  
INFO | jvm 1 | 2019/10/10 10:03:07 | at java.base/java.lang.Thread.run(Unknown Source)  
INFO | jvm 1 | 2019/10/10 10:07:11 | E [LegacyScripting[system\_util\_tag]] [14:07:11]: Error writing tags  
INFO | jvm 1 | 2019/10/10 10:07:11 | Error writing to tag ‘[default]EF7842\_Line5/Test/Pass’: Bad\_Failure  
INFO | jvm 1 | 2019/10/10 10:07:11 |  
INFO | jvm 1 | 2019/10/10 10:07:42 | I [g.LicenseManager] [14:07:42]: Trial time reset. Time remaining = 7200. route-group=status, route-path=/trial  
INFO | jvm 1 | 2019/10/10 10:21:46 | W [P.WebSocketChannel] [14:21:46]: Websocket connection closed unexpectedly. code=1006, reason=WebSocket Read EOF  
INFO | jvm 1 | 2019/10/10 10:21:46 | I [p.DesignSession] [14:21:46]: WebSocket disconnected from session. session-project=Line5\_Test  
INFO | jvm 1 | 2019/10/10 10:24:52 | W [s.ProjectRunner] [14:24:52]: Tried to perform RPC operation on an unrecognized session. May indicate that the previous session was lost. Creating RPC listener for new session id. project-name=Line5, request-origin=xx.xx.xx.xxx, session-user= **, session-project=Line5, session-id=**  
INFO | jvm 1 | 2019/10/10 10:25:03 | E [LegacyScripting[system\_util\_tag]] [14:25:03]: Error writing tags  
INFO | jvm 1 | 2019/10/10 10:25:03 | Error writing to tag ‘[default]EF7842\_Line5/Test/Pass’: Bad\_Failure  
INFO | jvm 1 | 2019/10/10 10:25:03 |  
INFO | jvm 1 | 2019/10/10 10:26:23 | E [LegacyScripting[system\_util\_tag]] [14:26:23]: Error writing tags  
INFO | jvm 1 | 2019/10/10 10:26:23 | Error writing to tag ‘[default]EF7842\_Line5/Test/Pass’: Bad\_Failure

Restarting the VM fixed the issue. Any suggestions on how to fix this?  
Any feedback would be greatly appreciated.

Thanks,

---

<div class="post-metadata">

**Author:** ![dhirajpawar371](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@dhirajpawar371](https://forum.inductiveautomation.com/u/dhirajpawar371)\
**Post date:** [May 2, 2020, 7:46am UTC](https://forum.inductiveautomation.com/t/error-writing-to-plc-tags-bad-failure/29003/2 "2020-05-02T07:46:41Z")

</div>

Hello,  
I have same issue .  
When I’m writing value by script to opc tag it shows error “LegacyScripting[system\_util\_tag]] [14:26:23]: Error writing tags:bad\_unsupported.”  
But it write value correct value to opc tag  
Is it affect to system?

When I’m using internal memory tag instead of opc tag it’s don’t show error.

Any suggestions on how to fix this?

---

<div class="post-metadata">

**Author:** ![karthikeyyans](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@karthikeyyans](https://forum.inductiveautomation.com/u/karthikeyyans)\
**Post date:** [May 15, 2020, 11:44am UTC](https://forum.inductiveautomation.com/t/error-writing-to-plc-tags-bad-failure/29003/3 "2020-05-15T11:44:49Z")

</div>

@dhirajpawar371 - There are many changes we implemented to get rid of such error.

- Increase the number of Max Concurrent requests to 16 under Config-\> OPC UA-\> Device Connection -\> your PLC.
- Avoid changing PLC logic when Ignition script is trying to the same tags
- Also, make sure not to overload PLC, Check Load Factor under Status -\> Devices -\> Your PLC. Make sure its less than 10-15%. If it’s more try reducing the number of OPC servers connected to this PLC
