Hi,
I tried using the Wait-A-Second tool by CReW but I'm facing an issue... maybe I'm missing something. I have an input file sending data to 2 browse tools and I have Wait for 30 seconds on the second browse tool. But it seems the workflow waits 30 seconds after running and then sends data to the browse tools at the same time.
Am I using this correctly?
Solved! Go to Solution.
Use a Block until Done tool after your Text Input tool, connect the 1st output to the 1st Browse, then connect the 2nd output to the Wait tool.
I tried this and it worked for a simple test workflow I created to be able to post here.
But now when i use the same approach for my actual (much larger) workflow. it seems to add the total wait time (of 3 wait a second tools) before starting the workflow.
I'm now considering creating my own macro to handle wait time. any suggestions ?
solution which I could think of using R tool, on Alteryx wait issue please find below
Basically 2 tools are being used to arrive at the solution –
Block until Done and R language Tool
Under Block until done tool
1st Stage add R Language tool and run below script – (”30” in script means 30 seconds , which can be changed accordingly)
2nd Stage add the relevant tool needed as per your requirement
R Script below
testit <- function(x)
{
p1 <- proc.time()
Sys.sleep(x)
proc.time() - p1 # The cpu usage should be negligible
}
testit(30)
Simple powershell oneliner worked for me
Hi, I was trying to find and download this Wait a Second tool for a while. Could you please let me know where did you find/ download it? Thanks
Hello
i don’t think they tool is currently available, hence we have to find alternatives as above options using R or another using power-shell, please give it a try
Hope above solutions work
Thanx
What did you use for your input or output to get the Powershell to work? I need to use this after a download before the next download for multiple API steps.
Aschuster. To make the command tool to work you should either provide an input or an output.
I just created a dummy txt file as output.
As CAJay pointed out,
- use a block until done after your first API get
- you can do the second API get from second or third node of Block until done
- First node of Block until done you can use to call the command tool/R tool for the delay.