"Error connecting to database."

SOLVED

We are getting this error frequently when running a macro that was created to insert transactions automatically. We recently upgraded to 2017, before the upgrade we didn't have this problem.

"Error connecting to database."

We can log in to the company just fine, we can rerun the transaction and it runs just fine.  It is an intermittent problem.  We should be able to enter and post multiple transactions simultaneously, and for the most part they all work just fine, so I am at a loss.

Thank you in advance for any insight anyone might have.