Alteryx Designer Desktop Discussions

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

Show error message if directory is empty analytic app

Sumaya52
Meteoroide

Hi all,

 

I want to show an error message if the directory chosen by the user using the analytical app is empty and prompt the user to chose another directory.

 

Waiting for your valuable responses.

3 RESPUESTAS 3

Hi @Sumaya52 ,

 

Interface Designer has a field "No Output Files Message".

Yoshiro_Fujimori_0-1681994279213.png

 

So if the selected folder is empty, the message set in field is shown as below.

Yoshiro_Fujimori_1-1681994407017.png

 

Workflow

Yoshiro_Fujimori_2-1681994501218.png

 

Do you think it works for you?

Sumaya52
Meteoroide

@Yoshiro_Fujimori Thank you for your reply. What about if I wanted the user to choose files with specific name format and shows an error if other files were chosen. Can I do that?

Hi @Sumaya52 ,

 

I understand your first question is how to trigger a warning if the selected folder is empty.

So the solution would use Folder Browse tool.

 

Your second question is how to let the user select the right file type.

So the second question would use File Browse tool.

In File Browse tool, you can configure "Arbitrary File Specification" to limit what file types can be browsed to.

 

Below is the configuration in the Example workflow of File Browse tool.

Please check it by yourself.

Yoshiro_Fujimori_0-1682580298505.png

 

Good luck.

Etiquetas