Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

File Browser to output different worksheets of Input file NOT WORKING in App

Tej_Singh
8 - Asteroid

Hi All,

 

I have one input file Addition_Input.xlsx with 2 worksheets "A" and "B" . I want to create an app with allowing user to specify the path of this file before executing and want to output all 2 worksheet contents. I decided to use File Browser tool to achieve this.

 

I selected File Browser tool for the asking user to provide input of "Addition_Input.xlsx " file and selected the option "Update Value" for the action tool with Replace String checked. This for user to specify path of file and select worksheet "A".

 

For worksheet "B" I only took Action tool with it's input from the File Browser I used for "A" worksheet as input file for both worksheets are same. I selected the  "Update Value"  for worksheet "B" action tool with Replace String checked.

 

It is not throwing error on execution but not overwriting both worksheets "A" and "B" with new file input data file.

 

Find attached the "File browser configuration for worksheet A" and Action tool configuration for Worksheet "B".

 

I am also sharing input file which you can use to test your workflow. It should run as an app and when you provide file path of "File Input in App.xlsx" it should replace data of worksheet "A" and "B" in output after execution


Any suggestion what am I doing wrong and what is the best way to achieve this??

3 REPLIES 3
echuong1
Alteryx Alumni (Retired)

Is the goal to output the same file name, just put it in a different location? If so, try using a folder browse.

Tej_Singh
8 - Asteroid

Thanks for you views @echuong1

 

My goal is to allow user provide different file path for a given file as Input to the workflow. Based on the file kept on the Input file.path my workflow output should change for both the worksheets A and B.

 

 

I believe File browser will be handy here as Folder browser doesn't work in UAT/PROD Gallery.

 

Any further thoughts?

Tej_Singh
8 - Asteroid

All: I figured out the solution. It is. We can use Text box to take user input instead of File Browser. Ask user to copy paste the entire file path with file name and extension. e.g. C:\Downloads\ABC.xlsx in this text box at execution time. Then, in Action tool use the "Update Value with formula" option with Formula: like [1]+"|||'Sheet-Name$'". This should work.

Labels