Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Enable Disable Container based on record

Labhesh
8 - Asteroid

Hi All,

 

When uploading to Gallery, we’re trying to prevent a "Character Parse" error in Formula (3) when no records are available for parsing. Currently, the workflow correctly displays a "No Records" message, but the Formula tool still triggers a Character Parse error. Please note that we have intentionally left the text input blank to simulate our intended scenario where no rows are available.

One approach we're exploring is to dynamically disable or enable the Control Container based on the Record Count to prevent the formula from executing unnecessarily. However, we haven’t yet figured out how to implement this. Any suggestions or guidance would be appreciated.

 

3 REPLIES 3
TheOC
16 - Nebula
16 - Nebula

hey @Labhesh ,
If you are trying to a numeric formula on column 'A', you can get around your formula tool creating errors by changing your formula to:

TheOC_0-1750671991273.png



Or:
Changing your data type in the select tool to a numeric type:

TheOC_1-1750672018494.png


The reason this works is that when the text input doesn't have any data for a field, it assumes it is text data (string). The formula you have created will error with a string as you cannot add a numeric (10) to a string. The reason both of these fixes work, is they force the formula to recognise the column as a number, either by changing it prior to the formula in the select tool, or changing it within the formula with the ToNumber expression.

 

I suspect this is a nicer route for you than forcing the control container to stop running the formula if no records are received. Let me know if I have misunderstood your scenario however.

Cheers,
TheOC
Connect with me:
LinkedIn Bulien
caltang
17 - Castor
17 - Castor

@Labhesh let me introduce you to a new way of doing it rather than using a control container:

 

image.pngimage.png

 

Introducing DETOURS! If they fulfil your criteria, it triggers the path to proceed to the formula or not. Use this logic and concept to get what you want.

 

If the above solved your need, kindly like & mark as accepted solution so that you may help others find the solution more quickly + to close the thread as is. Thanks!

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labhesh
8 - Asteroid

@CA Thank you for your support :) It worked

Labels
Top Solution Authors