Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How can we relate Tool id from the Node in the Connection of Alteryx XML that is Extracted

rohit782192
11 - Bolide

 

Hi ,

 

It is Difficult to Understand the Connection that is being Extracted via Alteryx. Is there any way we can include Tool Name against the same and also their Properties from the Node.

 

This is the Dummy XML Output i am providing to simple Understand . I want to add Tool Details and their properties from Node.

 

Origin_ToolIDOrigin_ConnectionDestination_ToolIDDestination_Connectionname
1Output4Input 
1Output20Input8 
3Left6Input#1
3Join6Input#2
3Right7Input#1
3Join7Input#2
3Left8Input#1
3Join8Input#2
3Right8Input#3
4Output10Input2 
4Output18Input 
5Output11Input2 
5Output19Input 
6Output15Input 
7Output17Input 
8Output16Input 
10Output263Left 
11Output263Right 
15Output12Input 
16Output13Input 
17Output14Input 
20Output922Input 
21Output923Input 
15 REPLIES 15
ChrisTX
16 - Nebula
16 - Nebula

By "Properties", do you mean the configuration for each tool?  

 

For Tool Name, you'd probably need a mapping file to translate something like "BrowseV2" to "Browse Tool".  I haven't seen anyone post a mapping like that.

And macros don't have any text on the line for GuiSettings.

 

Example from a workflow's XML (YXMD file):

 

<Node ToolID="1">
<GuiSettings Plugin="AlteryxBasePluginsGui.DbFileInput.DbFileInput">

 

<Node ToolID="2">
<GuiSettings Plugin="AlteryxSpatialPluginsGui.Summarize.Summarize">

 

<Node ToolID="3">
<GuiSettings Plugin="AlteryxBasePluginsGui.BrowseV2.BrowseV2">

 

<Node ToolID="4">
<GuiSettings Plugin="AlteryxBasePluginsGui.DbFileInput.DbFileInput">

 

<Node ToolID="7">
<GuiSettings>
<Position x="702" y="198" />
</GuiSettings>
<Properties>
<Configuration />
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText />
<Left value="False" />
</Annotation>
</Properties>
<EngineSettings Macro="TestMacros\CReW_ExpectZeroRecords.yxmc" />
</Node>

 

 

Chris

rohit782192
11 - Bolide

I need to Extract Plugin Details for the same for Each tool

ChrisTX
16 - Nebula
16 - Nebula

Are you asking how to get data from one row joined to the row below?  Like

 

Output:

 

ToolIdTool PaletteTool Name (Plugin)
1BaseDbFileInput
2SpatialSummarize

 

using this Input data:

 

<Node ToolID="1">
<GuiSettings Plugin="AlteryxBasePluginsGui.DbFileInput.DbFileInput">

 

<Node ToolID="2">
<GuiSettings Plugin="AlteryxSpatialPluginsGui.Summarize.Summarize">

 

Chris

rohit782192
11 - Bolide

Hi ,

 

I am aware of Extracting the data and i am the Expert in the same.

 

My Expectation is Formatting Output.

 

This is just a Sample Architecture i am providing.

 

Origin_ToolIDOrigin_ConnectionTool NameTool ExtractDestination_ToolIDDestination_ConnectionTool Namename
1OutputDBInput 4InputAlteryxSelect 
1OutputSelectRoll No : True20Input8Summarie 
3LeftFormulaFormula Detais6InputAlteryxSelect#1
3JoinUnion 6InputAlteryxSelect#2
ChrisTX
16 - Nebula
16 - Nebula

When you say "My Expectation is Formatting Output."

 

what do you need help with?  I'm not understanding exactly where you need help.

rohit782192
11 - Bolide

I am unable to relate or Join connection and Node tool id together.

 

When union it is coming a Null and when Join by row I'd it is giving different output 

ChrisTX
16 - Nebula
16 - Nebula

Guessing you've already seen the separate section of the XML for Connections?

 

<Connections>
<Connection>
<Origin ToolID="1" Connection="Output" />
<Destination ToolID="2" Connection="Input" />
</Connection>
<Connection>
<Origin ToolID="1" Connection="Output" />
<Destination ToolID="11" Connection="Input" />
</Connection>

 

So after parsing you would end up with something like this:

Origin Tool IDDestination Tool ID
12
111

 

And each Tool Id from the Connections section should exist in one of the Node sections of the XML.

 

Chris

rohit782192
11 - Bolide

Yes,

 

I have already Seen the same. I am also getting the Output from Connection. 

 

I want to map the Connection to Tool iD and Plugin .

ChrisTX
16 - Nebula
16 - Nebula

For each Tool Id you find in a Node, you should be able to join to a Tool Id from the Connections.  But if a Tool does not have any Connections, I won't have a record in the Connections section.

 

Can you provide sample input for this issue you mentioned:

  I am unable to relate or Join connection and Node tool id together.

  When union it is coming a Null and when Join by row I'd it is giving different output 

 

Chris

Labels
Top Solution Authors