In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

Control Containers and Relative Filepaths

AGilbert
11 - Bolide

Having issues with a relative file path within control containers and nested standard macros. Workflow images and a yxzp are attached for reference.

 

Directory structure:

- \top

    |- \macros

        |- main.yxmc (parent macro)

        |- \utils

            |- getter.yxmc (child macro)

    |- \source

        |- source.xlsx

 

As a stand alone, the getter works just fine with a relative file path of "..\..\source\source.xlsx". However, when the getter is called from main the input tool errors due to a relative path of "..\source\source.xlsx" as if it was called from the parent macro.

 

Using absolute references produces the expected results so, I guess this isolates the problem to how relative file paths work within control containers and nested macros. 

 

getter.PNG

error.PNG

Any advice or am I just using control containers the wrong way? 

 

1 REPLY 1
AGilbert
11 - Bolide

Answering my own question.

 

It seems that the input tool should be placed outside of the control container in the child macro. Would still love to have everyone's thoughts/advice.

 

solution.PNG

Labels
Top Solution Authors