Alteryx Designer Desktop Discussions

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

CReW Expect Error Macro Configuration

KMiller
8 - Asteroid

Hi @AdamR_AYX (or anyone else who can help)

 

I am trying to use the Expect Error macro but am not getting the result I was expecting, am I setting it up correctly. Basically I want to disregard a Command tool error which I cant resolve but is also not causing a problem. I have inserted 2 pictures, one of the error and one of the macro setup. 

 

Is there anything else I should be doing.

 

Thanks

 

Kevin

 

2018-11-09_15-39-22.jpg2018-11-09_15-39-51.jpg

2 REPLIES 2
AdamR_AYX
Alteryx Alumni (Retired)

That's the right usage, but it is only going to work for workflows run by the TestRunner tool.

 

If you just want it to work for a regular workflow run then a trick I have used in the past is to create a batch file with the command which errors in and then make the last line exit 0

 

So

 

<<Command you want to run which errors>>

Exit 0

 

Then make the RunCommand tool run the batch file.

Adam Riley
https://www.linkedin.com/in/adriley/
KMiller
8 - Asteroid

Hi Adam

 

Thanks for the reply, I tried your exit 0 suggestion below and unfortunately it did not work for me, not sure why. Anyway I figured out another alternative using your conditional runner macro, i.e. I run the command tool as a separate WF and on error continue with my ETL WF.

 

Not ideal but keeps things moving.

 

Cheers 

 

Kevin 

Labels