Free Trial

Alteryx Designer Desktop Discussions

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

How to include the Renaming tool in Blob Workflow

KamenRider
11 - Bolide

Hi,

 

I have a workflow where I am using blob to copy the template. I have successfully copy the template and the data on it and my only problem is the renaming part which until now I can't figure it out. For example the name of the file is Completed Accounts and I wanted it to be rename by adding the date today. I have tried the dos command but always give an error "Error Code 1"

 

I am asking someone to kindly help me solve this dilemma. I will be very much  grateful. Below is the structure of the last part of my worfklow.

 

Blob (1).PNG

Thanks and looking forward for everyone's assitance.

 

Kamen

6 REPLIES 6
Christina_H
14 - Magnetar

In the Blob Output tool there is an option to rename the file using a field.  All you need to do is create the filename you want including the date, and use that when outputting the Blob.

Christina_H_0-1674219227961.png

 

KamenRider
11 - Bolide

Hi @Christina_H 

 

Thanks for the reply. Will it be possible to rename it as Datetimetoday + filename.xlsx? Please teach me how I am going to do it in my workflow?

 

Thanks and appreciate your response.

 

Kamen

Christina_H
14 - Magnetar

In your formula tool, create a file name field with the formula: ToString(datetimetoday())+" filename"

You don't need the extension.

Christina_H_2-1674228714580.png

Then in the Blob Output tool, select the option for Replacing File Name with Field, and select your new field.

Christina_H_1-1674228529449.png

Christina_H_3-1674228785946.png

KamenRider
11 - Bolide

Hi @Christina_H 

 

I think my problem is where to put or place the formula tool in my workflow. I placed it beside the output blob tool but somewhat gives me an error. I tried many ways but still not able to figure it out. My last try gives me an error "Specified range is not large enough for incoming data fields."

 

Filepath6.PNG

Please see below scenarios I made to give you more idea how can solve the puzzle. 

 

Filepath2.PNG

Filepath.PNG

 

 

Filepath5.PNG

Filepath4.PNG

Blob5.JPG

 Please advise where do I get wrong? and how I am able to correct this.

 

Thank you and looking forward for your continued assistance.

 

Kamen

Christina_H
14 - Magnetar

@KamenRider The error you're getting is on the Output tool, not the Blob Output.  Is the Excel document being successfully copied with the new name you want?

 

I believe the error is due to the Preserve Formatting option.  The range you've specified isn't big enough for the data you're trying to export into it.  Try exporting to a new workbook, and compare the data range to your template to see what's going wrong.

KamenRider
11 - Bolide

Hi @Christina_H 

 

Thanks for the advise. I somewhat increase the range from S to Z. The template actually is A to Z however the range T to Z does not always contain data. I'm not sure if it has bearing as being a template but when I run the workflow it works fine. The Excel has been successfully copied and the new file name containing the date has been achieved.

 

Thank you for your assistance. Hoping to see you if I have inquiries.

 

regards,

 

Kamen

Labels
Top Solution Authors