RPE/PUB Error when running macro
![](http://jazz.net/_images/myphoto/23aab5297a54cd92ff76bee8d3396720.jpg)
Using DOORS Next and RPE/PUB 7.0.2
When I try to run a report through launcher which specifies a macro, I am getting the following message:
CRRPE1064I Running macro ...
Error running macro. Error: -2147352573 - Can't run the specified macro
Error running macro. Error: -2147352573 - Can't run the specified macro
I have updated the .ini files to include:
-Dcom.ibm.rational.rpe.enable_commands=true
I can run the macro manually with no issue.
The macro currently resides in the style sheet (.dotm) file
I have confirmed that the style sheet is being picked up and applied correctly for styles etc.
If I move the macro to my generic word normal.dotm - the macro works without issue in RPE/PUB
Side question: should the macros be copied into the generated document?
5 answers
![](http://jazz.net/_images/myphoto/23aab5297a54cd92ff76bee8d3396720.jpg)
Please refer to link on how to run macros if that helps - https://www.ibm.com/docs/en/engineering-lifecycle-management-suite/lifecycle-optimization-publishing/7.0.3?topic=SS6RHZ_7.0.3/com.ibm.rational.pe.publishing.doc/topics/t_macros.htm
![](http://jazz.net/_images/myphoto/23aab5297a54cd92ff76bee8d3396720.jpg)
Hi Karan,
Sorry but that doesn't address the issue.
I can run the macro manually with no issue.
The macro currently resides in the style sheet (.dotm) file
I have confirmed that the style sheet is being picked up and applied correctly for styles etc.
If I move the macro to my generic word normal.dotm - the macro works without issue in RPE/PUB
![](http://jazz.net/_images/myphoto/23aab5297a54cd92ff76bee8d3396720.jpg)
Hi Karan,
Sorry but that doesn't address the issue.
The macro doesn't use any viables.
If I move the macro to my generic word normal.dotm - the macro works as per "Running the macro by using the Macro name property" section.
But if the macro resides in the stylesheet it fails with the following:
CRRPE1064I Running macro ...
Error running macro. Error: -2147352573 - Can't run the specified macro
Error running macro. Error: -2147352573 - Can't run the specified macro
![](http://jazz.net/_images/myphoto/23aab5297a54cd92ff76bee8d3396720.jpg)
Chris,
Does your stylesheet works fine when you apply it manually ?? Does it run the macro ?
Comments
![](http://jazz.net/_images/myphoto/e5e63d5878217b64611c1df9401b7cd3.jpg)
I would like to point out, that this forum supports comments. Unless you want to actually answer a question, please use comments. The only reason not to use a comment to comment is the limit of characters that are supported in comments.
1 vote
![](http://jazz.net/_images/myphoto/23aab5297a54cd92ff76bee8d3396720.jpg)
Yes, all works fine if used manually.
![](http://jazz.net/_images/myphoto/dda05c299795ac0fa3f31d67fc9708ac.jpg)
Any chances you could share the template and stylesheet ?