Database Query plugin hangs for a few minutes then errors when trying to edit settings

On our Workflow server, we are running many processes relying heavily on the Database Query plugin. We never use the static connection string functionality in production, we only ever use it during setup in order to populate the field list used in the “Create data pages as follows”, since I couldn’t figure a way out to blank the static value afterwards, we just leave it as is and set-up the “Dynamic SQL” tab.

We have undergone an infrastructure replacement last year, which resulted in a change to our connection strings for queries to two external servers. Since we only ever use dynamic SQL for the queries, we updated the relevant global variables and it kept working as normal without any issues.

After the update to version 2020.2.1.9 from whatever the previous one was, Workflow started having a problem with the static connection strings that were still pointing to the old server (even though they were not used).

We managed to figure out how to avoid manually changing the values through the GUI and waiting a few minutes for the interface to become responsive. We exported an .OL-workflow file, searched for instances of <InputDBPlugin> and changed the values wrapped in <database> and </database> tags. Upon loading the file back onto the server, the issue seems to have stopped occurring when attempting to edit.

I want to make sure this is never an issue again in case we grow the infrastructure, so I briefly considered changing all instances of
&lt;database&gt;[whatever-the-connection-string-was]&lt;/database&gt;
to
&lt;database/&gt;
only leaving the dynamic SQL fields populated. Is this safe to do or is this going to destroy the data pages setup? I’d appreciate somebody from Internal confirming.

Yes, you can make those changes for all DB Query tasks that are using a dynamic SQL query. You can also do the same for the &lt;connectString&gt;[some_connection_string]&lt;/connectString&gt; value.

Just make sure you don’t change the DynConnectStr value, a few lines below the others.
Actually, just make sure you don’t change any other value. :stuck_out_tongue:

That being said, the issue you encountered is definitely not supposed to be happening. I will report it to our R&D team so they can fix it in an upcoming version.

1 Like