Skip to main content
Solved

Execution Error

  • December 13, 2024
  • 4 replies
  • 25 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

may_kwok
Star Blazer L3
Forum|alt.badge.img+4
  • Star Blazer L3
  • 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
  • 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
  • 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