Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Trbl Trying to Add New Sheet to Multiple Existing Excel Workbooks

hellyars
13 - Pulsar

I need help trying to print to multiple EXISTING Excel workbooks.

 

The existing workbooks share the same name as [ASSMNT].   They have an existing worksheet created (rendered) by another workflow. 

 

I want to: 

1) append a new sheet called "COMPARE" to add to each ASSMNT workbook. There are no spaces in [ASSMNT] (to include the workbook filenames).  I replaced all spaces with "_".

2) be able to re-run the workflow and update the new COMPARE tables at a later time.

 

How should it be configured?

 

Images below represent my current (not working) configuration.

 

new.jpg

 

Screenshot 2021-05-28 084007.jpgScreenshot 2021-05-28 083851.jpg

15 REPLIES 15
mceleavey
17 - Castor
17 - Castor

@hellyars ,

 

what's the error you're getting?



Bulien

mceleavey
17 - Castor
17 - Castor

@hellyars ,

 

First of all you're replacing the entire filepath in the output, but you're only creating the filename and sheet name. So, either build the fullpath in the formula, or change the output option to Change File/Table Name.

 

M.



Bulien

hellyars
13 - Pulsar

@mceleavey 

 

I have since switched to the entire filepath:

 

 

Error: Output Data (82): Unable to Open archive for zipping: C:\Users\Steve\OneDrive\_staging\workbooks\assessments\.xlsx|||C__Users_Steve_OneDrive__staging_workbooks_assessments__TACOS.xlsx 
Can't open file: C:\Users\Steve\OneDrive\_staging\workbooks\assessments\.xlsx|||C__Users_Steve_OneDrive__staging_workbooks_assessments__TACOS.xlsx: The filename, directory name, or volume label syntax is incorrect. (123)

The target Assessment is _TACOS.xlsx

 

hellyars
13 - Pulsar

@mceleaveyI copied the file extension from Windows Explorer (same as Finder)

 

atcodedog05
22 - Nova
22 - Nova

Hi @hellyars 

 

Possibility is your formula should FileAndSheet should be [ASSMNT]+".xlsx|||COMPARE"

 

If this is not the issue please provide more details.

mceleavey
17 - Castor
17 - Castor

Hi @hellyars ,

 

You have multiple files in one string, or the same one repeated multiple times:

 

C:\Users\Steve\OneDrive\_staging\workbooks\assessments\.xlsx|||C__Users_Steve_OneDrive__staging_workbooks_assessments__TACOS.xlsx

 

This is probably due to a formula tool creating the string



Bulien

hellyars
13 - Pulsar

@mceleavey 

 

Back to square 1.  The formula tool is creating a string (file path) for all records.  I want to group by ASSMNT and save that group to each existing workbook.

 

 

 

Screenshot 2021-05-28 091636.jpg

hellyars
13 - Pulsar

@atcodedog05  Reference original image.  THat is how I had it.   But that was also not working.

 

atcodedog05
22 - Nova
22 - Nova

Hi @hellyars 

 

Can you show your asset column and and FileAndSheet column till the end. 

Labels