Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

EDX trigger - Batch file Errorlevel 1

Hi,

I have written a batch script to trigger the QMC Task in QV 11.2 SR5, using the QMS API.

This is the batch script,

<QMSEDX.exe Path>  -task = <Task name>  -password = <password>

Exit /B %errorlevel%.

This batch script will run when the DWH process is completed from Atrium trigger. And this will trigger the QMC reload task.

This is working fine but it is giving a errorlevel "1" instead of 0 and showing error on Atrium side. How can i figure out what is the error here?

14 Replies
Anonymous
Not applicable
Author

Sorry Thomas. I have very little knowledge about how QV APIs work.

But, which config file do i use from the attachment?

Not applicable
Author

use EDX.rar - But you have to configure the code itself, because its hardcoded values. So if you know a little about C# it should be easy.

ergustafsson
Partner - Specialist
Partner - Specialist

Hi Vamshi,

Skip the "pause" in your batch files. The job is "waiting for input" as it is set to break and wait for user interaction which is why it is not finishing. Everything is running in the background, so any such input is not possible as the command line window is not seen.

Regards,

Erik

Anonymous
Not applicable
Author

Yes I understand. But even without the pause step also, i am getting the same error in the log file.

Anonymous
Not applicable
Author

The code in your attachment is not working for me at all. I am using this code (see attached).

It is working fine, but as said, when i use the attached batch file, i am getting a error code 1.