Alteryx Designer Desktop Discussions

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

Task Tool for Dynamic Input

vbeyder1
5 - Atom

The workflow I am having problem with is very simple (I am not attaching it because it needs Db-side code):

A value is selected by DropDown and sent to a Batch Macro as parameter. A row of values created by Text Input is also sent to the macro as data. In the Macro parameter is sent to a Dynamic Input to update a substring in SQL (it is ORACLE). The data is sent to in-connector of the Dynamic Input and also set up to update other substrings of the same SQL.

 

The workflow runs in Designer.

But when run in Designer as Alteryx Application it updates SQL with the parameter but fails to update the SQL inside the Macro with the incoming data values.

Could not find details/guides for my specific configuration.

 

Is that a known limitation of the Dynamic Input Tool, or of the Macros, or of using them in Alteryx Application run in Designer?

or

Is that a bug?

or

Do I need to configure it some special way?

 

5 REPLIES 5
apathetichell
19 - Altair

attach a screen grab of your action tool configurations - most likely they are set up incorrectly.

vbeyder1
5 - Atom

 

As compared to my initial post - something changed: I played with the calling Workflow a bit, and now it runs Ok in Designer and in AAA. Don't know/noticed what I did - I am very new to Alteryx.

 

Here is the Macro:

 

vbeyder1_0-1676660462433.png

When I run it as workflow it updates all substrings in the SQL except the one for the parameter.

It seems like if the value is null, neither Action nor Dynamic Input will replace a substring with Null. That would explain why Macro as workflow does not replace the parameter's target substring: there is no input value.

 

Is that the expected behavior?

Is there a way to provide a Macro-internal defaults for Parameters and connected Data fields without creating a wrapper macro?

apathetichell
19 - Altair

your action tool is incorrectly set up - as i suggested. Let's handle fixing that first - and then the rest of the issues.

 

The action tool you have updates whatever is in your replace specific field box. Think of it as a find and replace. The value you have does not contain the string you are trying to replace. That means that your action tool will replace NOTHING. You need to set up your specific text to match text in the value which you want to replace - ie if you want to replace TEXT in TEXT.xlsx you would have the word TEXT in that section of the action tool config. Fix that and see if it helps.

 

RE NULL behaviors. The workflow should replace whatever you want in your query. Null should behave/not behave as you would expect on your DB - does that make sense? I don't know what you mean by Macro-Internal defaults for parameters and connected data fields. You can create a text box specific to your macro and use that internally only. Does that help?

 

Also - as set up it looks like you are changing the file-value which in Dynaminc Input could be the database/schema you are querying. Is that what you are trying to do??? I use Connect In-DB/Dynamic Input-DB and the rest of the In-DB tools because a) I like to be able to browse and know I'm going to see only 100 values. b) I like to push the computations to the server c) I user DB specific functions/SQL language. I try to only pull out what I need (which may be tens of millions of records vs billions)...

vbeyder1
5 - Atom

Thank you, Apathetichell.

I will definitely look into In-DB/Dynamic Input-DB and the rest of the In-DB tools.

 

As for my question:

The Macro works OK in Designer when it is called by a Workflow with the parameter supplied from a text input. So to me the Action config seems Ok.

 

But:

When I run the Macro as workflow directly in Designer - the parameter is not supplied and this is when I observe the questionable behavior: instead of replacing the substring with empty string to 'null' it just ignores it. The same happens when a Null value is sent in incoming data that is set up to replace another substring: the substring is NOT replaced.   

Is that the expected behavior?

 

If Action or Dynamic input cannot handle null values - it calls for a "default" functionality for parameter's value or data field's value sent to the Macro as null.  That shall be "internal"-  meaning: incapsulated in the Macro and not require an additional macro layer or additional processing in the calling workflow. Also it shall allow not to send (connect) data to the macro parameter input, and allow not to send (map) all columns on the incoming data in the calling workflow,.

apathetichell
19 - Altair

o.k.- I think I might have it. you are passing in a literal null - whereas it's looking for a string called null (or isnull). Sorry  - might need more information.

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels