Re: "Transaction not run. Task finished properly." error message. (206 Views)
Reply
Advisor
Joshua_Polier
Posts: 38
Registered: ‎02-23-2011
Message 1 of 5 (262 Views)

"Transaction not run. Task finished properly." error message.

We've been seeing random "Transaction not run.  Task finished properly." error messages for two of our 9.23 BPM locations.

 

errorMessage_example.png

 

After some research, I found this in the bsm_tasks_execution.log:

 

27/03/2014 08:09:03 WARN  [BpmTaskRunner-17] [GeneralScriptTaskExecutor] Failed to copy script output files from C:\ProgramData\HP\BPM\workspace\agent1\Site1\PMR_-_Vision_3e04da35f0629be2de2cb7ee367a6a77_1\ComtracVisio\572_1\res to the data folder C:\ProgramData\HP\BPM\workspace\agent1\Site1\data\trans_t\1395922020030_590\1395922080034_1_572_ComtracVisio
java.nio.file.FileSystemException: C:\ProgramData\HP\BPM\workspace\agent1\Site1\data\trans_t\1395922020030_590\1395922080034_1_572_ComtracVisio\ComtracVision_1.json: The process cannot access the file because it is being used by another process.

                at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86) ~[?:1.7.0_45]
                at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) ~[?:1.7.0_45]
                at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) ~[?:1.7.0_45]
                at sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:165) ~[?:1.7.0_45]
                at sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:278) ~[?:1.7.0_45]
                at java.nio.file.Files.copy(Files.java:1225) ~[?:1.7.0_45]
                at com.hp.bsm.bpm.utils.FileUtils.copyFile(FileUtils.java:917) ~[bpm_common.jar:?]
                at com.hp.bsm.bpm.utils.FileUtils.copyFile(FileUtils.java:881) ~[bpm_common.jar:?]
                at com.hp.bsm.bpm.utils.FileUtils.copy(FileUtils.java:950) ~[bpm_common.jar:?]
                at com.hp.bsm.bpm.utils.FileUtils.copy(FileUtils.java:936) ~[bpm_common.jar:?]
                at com.hp.bsm.bpm.utils.SampleUtils.copySamplesFiles(SampleUtils.java:295) [bpm_server_common.jar:?]
                at com.hp.bsm.bpm.execution.GeneralScriptTaskExecutor.handleScriptOutputFiles(GeneralScriptTaskExecutor.java:348) [bpm_server.jar:?]
                at com.hp.bsm.bpm.execution.GeneralScriptTaskExecutor.executeAndWait(GeneralScriptTaskExecutor.java:161) [bpm_server.jar:?]
                at com.hp.bsm.bpm.execution.GeneralBtfExecutor.executeScriptAndWait(GeneralBtfExecutor.java:93) [bpm_server.jar:?]
                at com.hp.bsm.bpm.execution.GeneralBtfExecutor.executeSequentialScripts(GeneralBtfExecutor.java:154) [bpm_server.jar:?]
                at com.hp.bsm.bpm.execution.ClassicModeBtfExecutor.executeBtf(ClassicModeBtfExecutor.java:61) [bpm_server.jar:?]
                at com.hp.bsm.bpm.execution.ClassicModeBtfExecutor.executeBtf(ClassicModeBtfExecutor.java:54) [bpm_server.jar:?]
                at com.hp.bsm.bpm.execution.BtfTasksRunnable.run(BtfTasksRunnable.java:25) [bpm_server.jar:?]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_45]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_45]
                at java.lang.Thread.run(Thread.java:744) [?:1.7.0_45]

 These warning messages in the log file are timing perfectly with the error messages in BSM.  This particular vugen script runs from five locations, two of which are 9.23 BPMs.  The attached picture show that these two 9.23 BPMs reporting the error message.  We have not seen the same from any of our other locations.

 

We have other scripts (also recorded in VuGen 11.52) running from the two 9.23 BPM locations but none of those are receiving the same message.

 

I have tried removing the data collector from the BTF, allowing it to clear out of the BPM and then adding it back.  I have tried restarting the BPM but it always comes back.  Not sure what else to do to resolve this.

 

Any help is appreciated,

 

Joshua

Please use plain text.
HP Expert
PatWest
Posts: 826
Registered: ‎03-06-2008
Message 2 of 5 (212 Views)

Re: "Transaction not run. Task finished properly." error message.

remove the current script from the BPM machine. Open it in Vugen, go to "Replay" > run Time Settings.

Click "Miscellaneous" and tick "Run Vuser as a thread"

Recompile the script and add it back to BSM with newer version. Deploy it to your BPM, see if it works better now.

Best regards,
PatW
Please use plain text.
Advisor
Joshua_Polier
Posts: 38
Registered: ‎02-23-2011
Message 3 of 5 (207 Views)

Re: "Transaction not run. Task finished properly." error message.

In this script Multithreading/Run Vuser as a thread has already been ticked.  My guess is that this is going to be a BPM related issue as the same version of script is running across multiple BPMs without this issue.

Please use plain text.
Valued Contributor
noamhasin
Posts: 78
Registered: ‎11-20-2011
Message 4 of 5 (206 Views)

Re: "Transaction not run. Task finished properly." error message.

Hi, please try to run the script using command line, just copy the line form script directory\res\mdrv.cmd file

and open command line on BPM.

 

maybe oyu can learn more about the problem.

 

If it will nto help, I suggest to turn on the debug logs (as describe in Admin PDF), and send the logs to support

 

 

NOam

Functional Architect
Please use plain text.
Advisor
Joshua_Polier
Posts: 38
Registered: ‎02-23-2011
Message 5 of 5 (200 Views)

Re: "Transaction not run. Task finished properly." error message.

There is no mdrv.cmd in ComtracVisio\572_1\res
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation