# Handshake not writing, on success or failure

**URL:** <https://forum.inductiveautomation.com/t/handshake-not-writing-on-success-or-failure/7540>\
**Category:** Ignition\
**Created:** [November 8, 2013, 4:14pm UTC](https://forum.inductiveautomation.com/t/handshake-not-writing-on-success-or-failure/7540 "2013-11-08T16:14:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Bridgeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dan_bridgeman/32/3610_2.png) [@Dan\_Bridgeman](https://forum.inductiveautomation.com/u/Dan_Bridgeman)\
**Post date:** [November 8, 2013, 4:14pm UTC](https://forum.inductiveautomation.com/t/handshake-not-writing-on-success-or-failure/7540/1 "2013-11-08T16:14:44Z")

</div>

I have a transaction group which is triggered by a combination of two Boolean tags. When MAC\_TO\_SQL\_DATA\_READY is true and SQL\_TO\_MAC\_DATA\_RECEIVED is false, an expression item becomes true and the transaction runs. It writes a record to the database based on several other OPC tags. Then it has two triggered expressions, one of which is a SQL query and the other a SQL insert.

I have selected the option to write a handshake on success, which would set the SQL\_TO\_MAC\_DATA\_RECEIVED tag to true. This never works. I thought that maybe the problem was that the SQL query item was returning NULL, which in turn causes the SQL insert to insert no records, even though the status does not show a failed execution… This is still something that would be considered success from an operational standpoint, but I can see how it might mean that the transaction as a whole is considered a failure. So I checked the option to write the same handshake on failure as well, and it still never writes.

I’m sure there’s just something wrong with how I’ve set up the transaction, but I’m stumped. I’m attaching the transaction as an xml export.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [November 15, 2013, 6:46pm UTC](https://forum.inductiveautomation.com/t/handshake-not-writing-on-success-or-failure/7540/2 "2013-11-15T18:46:12Z")

</div>

Hi,

I can’t see anything wrong with that group. The only thing I could say is that if the write went through, you wouldn’t see it in the group for 30 seconds. When is it reset by the plc?

If you want to get confirmation that the write is being executed, you could try going to Console\>Levels in the gateway config area, and turn the logger “XOPCServer.services.WriteService” to “TRACE”. This will write quite a bit of info for each write, so don’t leave it on long. However, turn it on, let the group execute, and then perhaps open “{InstallDir}\logs\wrapper.log” and search for “SQL\_TO\_MAC\_DATA\_RECEIVED”. There should be two messages, one for WriteRequest, and one for WriteResponse.

Let me know what you find,

---

<div class="post-metadata">

**Author:** ![Dan\_Bridgeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dan_bridgeman/32/3610_2.png) [@Dan\_Bridgeman](https://forum.inductiveautomation.com/u/Dan_Bridgeman)\
**Post date:** [November 20, 2013, 2:29pm UTC](https://forum.inductiveautomation.com/t/handshake-not-writing-on-success-or-failure/7540/3 "2013-11-20T14:29:12Z")

</div>

Colby,

Thanks for the response. But I was out on Friday, and by the time I read it, the vendor had come to site to deal with other issues and had changed things so drastically that this problem was no longer occurring, new problems were introduced and resolved… Anyway, this problem has at least gone away for now, and I can’t get that trace info, and I don’t see anything behaving unexpectedly on the Ignition side.

Thanks,  
Dan
