Re: "Transaction not run. Task finished properly." error message. (424 Views)
Posts: 39
Registered: ‎02-23-2011
Message 1 of 5 (480 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.




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( ~[?:1.7.0_45]
                at sun.nio.fs.WindowsException.rethrowAsIOException( ~[?:1.7.0_45]
                at sun.nio.fs.WindowsException.rethrowAsIOException( ~[?:1.7.0_45]
                at sun.nio.fs.WindowsFileCopy.copy( ~[?:1.7.0_45]
                at sun.nio.fs.WindowsFileSystemProvider.copy( ~[?:1.7.0_45]
                at java.nio.file.Files.copy( ~[?:1.7.0_45]
                at com.hp.bsm.bpm.utils.FileUtils.copyFile( ~[bpm_common.jar:?]
                at com.hp.bsm.bpm.utils.FileUtils.copyFile( ~[bpm_common.jar:?]
                at com.hp.bsm.bpm.utils.FileUtils.copy( ~[bpm_common.jar:?]
                at com.hp.bsm.bpm.utils.FileUtils.copy( ~[bpm_common.jar:?]
                at com.hp.bsm.bpm.utils.SampleUtils.copySamplesFiles( [bpm_server_common.jar:?]
                at com.hp.bsm.bpm.execution.GeneralScriptTaskExecutor.handleScriptOutputFiles( [bpm_server.jar:?]
                at com.hp.bsm.bpm.execution.GeneralScriptTaskExecutor.executeAndWait( [bpm_server.jar:?]
                at com.hp.bsm.bpm.execution.GeneralBtfExecutor.executeScriptAndWait( [bpm_server.jar:?]
                at com.hp.bsm.bpm.execution.GeneralBtfExecutor.executeSequentialScripts( [bpm_server.jar:?]
                at com.hp.bsm.bpm.execution.ClassicModeBtfExecutor.executeBtf( [bpm_server.jar:?]
                at com.hp.bsm.bpm.execution.ClassicModeBtfExecutor.executeBtf( [bpm_server.jar:?]
                at [bpm_server.jar:?]
                at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.7.0_45]
                at java.util.concurrent.ThreadPoolExecutor$ [?:1.7.0_45]
                at [?: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,



HP Expert
Posts: 869
Registered: ‎03-06-2008
Message 2 of 5 (430 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,
Posts: 39
Registered: ‎02-23-2011
Message 3 of 5 (425 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.

Trusted Contributor
Posts: 118
Registered: ‎11-20-2011
Message 4 of 5 (424 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




Functional Architect
Posts: 39
Registered: ‎02-23-2011
Message 5 of 5 (418 Views)

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

There is no mdrv.cmd in ComtracVisio\572_1\res
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.