I have an issue while running my analytic app. I have an interface text tool which feeds a file path to the various input tools. Flow runs well when run as a workflow. However, when I try to run as an analytic app, if I leave the text input blank (so it can use the what it was configured with), it throws errors. Looking into the errors, it seems like the flow is trying to read the inputs from the file path where the analytic app is stored as against what is configured in the various input tools.
How do I resolve this?
can you share your workflow?
Going out on a limb here --- @sufregs --- your action tool configurations are wrong. You need to include them with this post. Short of it is ---> I have very very rarely seen a workflow correctly configured to use no user input as an override to the action tool's traditional behavior without substantial testing.
Your action tools would need a configuration of something like:
if isempty(tostring(#1]) then "{{{your default value here}}}" else {{your replace logic here}}} endif --- for it to work --- and you'd need your action tool in formula mode. or in edit raw xml mode. yeah?
the short of it is ---> action tool generally means 'replace the underlying value with something from an interface tool' --- and '' is a potential replacement -- not an absolute identifier with the understood value of 'keep my default.'
Totally agree with @apathetichell. Generally speaking, the action tool hooked up to the Text Input will need some guardrails in place since Text Input is the wild child of the Interface palette. Something to explore depending on your use case is the File Browse tool. You might find it a little more tame and not as difficult to structure your action tool.
There are three major ways to do this, two of which are already mentioned above. Check the below image for reference.
case1: updating the path using formula in action.
case2: using condition tool to control whether Action tool works or not
case3: using optional file browse
thank you for this. i will try it using the update formula option.