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.
SOLVED

Force data type for empty data stream

nrossin
8 - Asteroid

Is it possible to lock the data types selected in a Select tool? The issue I'm running into is if the input dataset is empty, Alteryx (for some reason) sets all data types to double, causing many downstream tools to fail.

 

Since I know that the data types for the input fields will never actually change (but may be empty), can I not make sure Alteryx doesn't change them on its own?

3 REPLIES 3
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @nrossin,

 

If i have an example of one column (Column 1), which is a string data type:

Jonathan-Sherman_0-1589894221325.png

 

 

I could force the data type to be the string by selecting String: Forced

 

Jonathan-Sherman_1-1589894255198.png

 

This "Forced" option is available to keep the data type as it is and not let it change.

 

If this solves your issue please mark the answer as correct, if not let me know!

 

Regards,

Jonathan

nrossin
8 - Asteroid

That is helpful for most datatypes, yes. I do not seem to have the option to force a Date, though?

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @nrossin,

 

Could you provide some sample data?

 

If you are storing your field as a date you will have the "Date: Forced" data type option available:

 

Jonathan-Sherman_0-1589894831155.png

 

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

Labels