Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Referencing the Size of a File Within Workflow

elsastark
10 - Fireball

We are building a validation that will send back an error if the file size is not what was expected.

 

What is a way to return a file size within an Alteryx workflow without loading the file, so if the file is larger than we expect we can cancel the job before bringing in the file? 

5 REPLIES 5
IraWatt
17 - Castor
17 - Castor

Hey @elsastark,

You can use the directory tool to find the size of a file:

IraWatt_0-1654263148215.png

Once you have identified your file you can add a message tool to throw an error if the size is larger then an expected value

IraWatt_1-1654263203653.png

 

PhilipMannering
16 - Nebula
16 - Nebula

You could use the Directory Tool. Here's the size of my test file in bytes,

PhilipMannering_0-1654263261596.png

 

elsastark
10 - Fireball

Thank you @IraWatt and @PhilipMannering

PhilipMannering
16 - Nebula
16 - Nebula

Then you can use the Message Tool to create the error if it doesn't match what you expect. Example attached.

PhilipMannering_1-1654263453163.png

 

IraWatt
17 - Castor
17 - Castor

No worries @elsastark 😄

Labels