Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

RunCommand Error

gumbatman
8 - Asteroid

Hello,

 

I am having an issue with the RunCommand tool running Java (at least that is what I think it is).


Running the Sentiment Tool (from the Comparing Sentiment Analysis Algorithms article) I keep encountering this error: 

    "Error: Run Command (5): The external program "java" returned an error code: 2"

 

Thinking it was an issue with Java how is setup, I tried to run Java in a Command Window - that works. I was even able to run the StandfordCoreNLP Sentiment tool from a Command Window. I am also able to run Java from any directory, so I don't think it is a Path issue.

 

To test the RunCommand, I made a very simple workflow. Here's the Configuration for the RunCommand tool. This also is returning the same error as above.

 JavaExample.jpg

I tried java, java.exe and  C:\Program Files\Java\jre1.8.0_181\bin\java.exe. None of those seemed to make a difference.

 

What is it that I am doing wrong?

 

Thank you for the help.

11 REPLIES 11
jdunkerley79
ACE Emeritus
ACE Emeritus

Try the attached macro. You will need to set the path for the CoreNLP

 

It basically creates a batch file to run the NLP and then parses the results afterwards

 

A fun challenge.

gumbatman
8 - Asteroid

That worked! But I'm sure you knew that already.

 

I am so grateful to you for taking the time to work through this for me. You have saved me so much time and aggravation and given me an amazing learning experience. I am going to look closely at your macro and see what else I can learn. 

 

Thank you!

Labels