community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

CReW Expect Error Macro Configuration

Highlighted
Asteroid

Hi @AdamR (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

Alteryx
Alteryx

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
Principal Software Engineer
Tech Lead Core Engines, Alteryx
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