Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
Don't forget to submit your entry for the Excellence Awards by October 30! | Need more information about the program? Check out the blog here

Timeout error on Salesforce Input

Highlighted
5 - Atom

Hi all, first time posting to the Alteryx community here.

 

My issue has to do with the Salesforce Input tool. After some heavy googling and roaming around the community I did not find a case handling my error.

 

I have created an Alteryx workflow through Alteryx Designer where I fetch data using the Salesforce Input tool. I'm loading quite large amounts of data (1-2 million rows), so I have split up the Salesforce inputs so that each call won't be too big.

 

It works just fine when I run it locally through Designer, and manually on the Server (runtime ~25-30 minutes). However once I put the workflow on a nightly schedule I notice the workflow failing.

 

brian_ye22_0-1575364147360.png

 

Any ideas why?

 

Best,

Brian

 

Highlighted
Alteryx Partner

Hi @brian_ye22 

 

Seems like this could be a couple things going on. 

 

A couple questions for you:

  • Does this always happen? 
  • Have you tried a smaller query just to see if that gets through?
  • Is your server configured correctly (time/memory constraints)
  • Are you able to run any salesforce workflow on scheduler

@TonyM any thoughts here? 

 

Highlighted
Alteryx
Alteryx

Hi @brian_ye22,

 

My guess is that during the night your server is busy executing other jobs and when you schedule your Salesforce workflow it take longer than 30 minutes. (Have a look together with your administrator about the current server usage with the Server usage report https://help.alteryx.com/server/current/admin/ServerUsageReport.htm)

 

There is a setting inside of the server that you can change to increase the time for workflows running longer than X seconds.

 

From Alteryx Designer on the Server, go to Options --> Advanced Options --> System Settings.  (Note: if you are running Alteryx Server and don't see the System Settings, you will need to contact your server administrator and have them help you make changes to the System Settings).  Click 'Next' until you get to the Worker Configuration.  If the 'Cancel jobs running longer than (seconds)' option is checked, the seconds can be increased here.  

 

This message will be generated for scheduled workflows and workflows being run from a gallery if the option has been checked and the workflow runs longer than the setting allows.  

 

Exceeded Max Runtime 01.png

 

Let me know if this helps

 

Best,

Vianney

 

 
Best,
Vianney
Highlighted
Alteryx Partner
I have a hard time believing that he would get a timeout error from the
Salesforce's tool if it was an issue on the Alteryx server config side.
Then again anything is possible
Highlighted
Alteryx
Alteryx

Hi @brian_ye22 ,

are you sure your server can connect to Salesforce? Can you check this before?

 

If this is the case, you can have a look to this thread to try to optimize the query if this is possible:

https://help.salesforce.com/articleView?id=000334796&type=1&mode=1

 

(If this post helps, then please consider it as the solution to help the other members find it more quickly).

Highlighted
5 - Atom

Thanks all for the prompt replies from here!

 

I've done some experimenting and I noticed that my issue is solved when I execute the same workflow using the Salesforce input a second time 15 minutes after the first attempt. The first attempt will always fail but the second one seems to work all the time (at least for all daily schedules since this case was created).

 

I'm not sure if this should be accepted as a solution since it does not make sense to have two identical consecutive workflows.

 

I think it has to do with what @VianneyM suggests. It takes too long time to fetch all data via the API since there are other workflows running in parallel, occupying necessary resources to finish the API call, hence the API call will be open longer than the threshold allows.

 

I'm looking into another solution in the future, where I will only fetch the change of data for every API call hence making each API call smaller. I guess I will need some kind of middle/temp storage for this that works on scheduled basis on the Server to make this work.

Highlighted
Alteryx
Alteryx

Hi @brian_ye22,

 

in addition to your findings, have you tried to optimise the query as mentioned by William? 

https://help.salesforce.com/articleView?id=000334796&type=1&mode=1

 

Best,

Vianney

Best,
Vianney