Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
rp2018
Creator
Creator

How to implement connection retries for tMSSqlConnection?

Need to implement 10 retries when a job doesn't connect to the database using tMSSqlConnection component.  How can I accomplish this?

Labels (2)
5 Replies
Anonymous
Not applicable

Hi,

 

     You can catch the error when DB connection is not happening and do some looping to accomplish it theoretically. 

 

      But could you please advise why you are facing issue in getting connection to DB at first place? 

 

Warm Regards,

 

Nikhil Thampi

rp2018
Creator
Creator
Author

Sometime from Talend cloud it is not able to make connection to on premise database.  Would you have sample job that does retries using tloop?

Anonymous
Not applicable

Hmm... Could you please raise a service case for this issue? 

 

Creating a loop is just trying to escape from the current situation. But it might eventually be a performance problem for you.

 

We need to detect whether the lag is due to Talend cloud component or due to network lag or something else when the cloud is trying to make connection to DB behind your firewall. I have not heard about this issue by other customers. 

 

So my recommendation will be to raise a support ticket so that they can quickly analyse and fix it for you.

 

Warm Regards,

 

Nikhil Thampi

rp2018
Creator
Creator
Author

Nikhil,

 

For the database connection issue, I'll open up a ticket with Talend Support, but I'm also having an issue with tRest component connecting to CRM sometime.  I've opened up a ticket with Talend Support but they don't have any option for retries, etc...  So, I was thinking about looping 10 times, if it doesn't connect for this scenario too.  I'm very new with this product and not sure how I can implement this.  A sample job will be very good help for me.

 

 

Anonymous
Not applicable

Hi,

 

    You can use tloop component for any looping related tasks.

 

     Below is the link from Talend help document which contains the properties of the components and also sample job. Could you please check it?

 

https://help.talend.com/reader/mjoDghHoMPI0yuyZ83a13Q/iL2h45sTpz~InS1_0iOj5w

 

    If the answer has helped you, could you please mark the topic as resolved? Kudos are also welcome 🙂

 

Warm Regards,

 

Nikhil Thampi