Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How to test if a template is fully uploaded to Tableau server

wtahir
7 - Meteor

Hi everyone,

 

I am new to Alteryx and still learning some tools. I am writing some tests for the workflows. In one of the workflow I need to make sure that the tableau template is fully uploaded to the tableau server and only then the API call to the server is made. For example, if a template takes 1 sec to upload then API call should be made immediately after 1 sec. This timing is ofcourse random so I simply can't use "Wait a second" tool as it would be inefficient to set long duration (especially for fast internet connections).

 

I am struggling to find out a way to know that if the entire template is uploaded on the Tableau server so that later I could try out something like WHILE condition to iterate until template upload and break it once its done. I also thought of using "Block until" tool but I don't know that if it also makes sure that the template upload is complete. 

 

I am attaching the testing part where I need first step to be completely done i.e. uploading is complete and only then second one starts i.e. API call is made. Any ideas how this could be achieved? Thank you for helping out

 

 

_.png

5 REPLIES 5
BrandonB
Alteryx
Alteryx

@wtahir what about something like this where you use a block until done followed by a count which is appended to the data stream down below. Then you use the select tool to drop the count column.

 

download.png

wtahir
7 - Meteor

Awesome this is what I was looking for, I had a similar solution but without a count. Thank you for your help.

wtahir
7 - Meteor

hi @BrandonB I found out that this still exists, on the alteryx server this is still happening. The only inefficient way I found is to add waiting time of 5s to the output anchor "1" of the block until done tool. It looks like block until done tool does not know if the template exists on the webpage. Do you have any other better idea?

BrandonB
Alteryx
Alteryx

I actually wonder if instead, you move the count records to connect to the right hand side of the Publish to Tableau Server tool. That way the Publish to Tableau Server tool would have to finish in order for the number of metadata records coming out of the O anchor on the right hand side to be counted. 

wtahir
7 - Meteor

Good point. I will try that out and will share my findings 

Labels
Top Solution Authors