Skip to main content
Solved

Execution Error

  • December 13, 2024
  • 4 replies
  • 24 views

Forum|alt.badge.img+1

Hi,

I am running a workflow that includes a task called 'Execute SQL'. This task updates some values in the SQL database, but the code is quite heavy. When the workflow reaches this task, I encounter the following error message. Can anyone assist?

 

 

Best answer by Albert de Ruiter

In addition you can also try to run the SQL via a query tool and see how that goes. If you then also encounter the problem you better contact a DBA, otherwise the suggestion by Kislyakov seems most appropriate.

View original
Did this topic help you find an answer to your question?

4 replies

may_kwok
Star Blazer L3
Forum|alt.badge.img+4
  • Star Blazer L3
  • 82 replies
  • December 13, 2024

I’m no DBA, but this suggests that the Database side decides it doesn’t want to play anymore and close the connection their side.

If I see this I’d call the DBA to see if there’s anything they can do to help. Maybe there’s some timeout setup on the db side that they could adjust? Otherwise can that SQL be tuned to run faster…?


Forum|alt.badge.img+2
  • Ataccamer
  • 148 replies
  • December 15, 2024

If a problem occurs at the very beginning of the step execution, it is likely due to a stale connection. The Runtime Server, by default, keeps a pool of up to 10 open database connections. Some database engines do not like this behavior and close connections after a period of inactivity. To address this, you can either:

  • Set maxIdleSize to 0, so connections are not reused.
  • Set maxAge to close connections after a period of time.
  • Include validationQuery, so each connection is checked before use.

More details could be found in Runtime Configuration :: Ataccama ONE


Albert de Ruiter
Star Blazer L3
Forum|alt.badge.img+4

In addition you can also try to run the SQL via a query tool and see how that goes. If you then also encounter the problem you better contact a DBA, otherwise the suggestion by Kislyakov seems most appropriate.


Cansu
Community Manager
Forum|alt.badge.img+3
  • Community Manager
  • 625 replies
  • December 16, 2024

Thank you for all the great ideas & solutions provided ​@may_kwok, ​@AKislyakov, and ​@Albert de Ruiter 🙌🙌 ​@Ajeesh_G does this help? if yes, please mark a best answer 🙋‍♀️


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings