Oracle Policy Modeling is a great tool for writing rules and creating rulebase which matches the source policy document. Today let’s talk about one of the major issue that affects the swift working of the OPM environment. Recently I was having trouble opening the word rule document from OPM. Whenever I double click the rule document instead of getting the word document opened I am getting an error message saying “Oracle Policy Modeling was unable to compile the document as an error occurred with Microsoft Word. This method or property is not available because this command is not available for reading.” . This tutorial let you solve this issue from all version of Word including Word 2003/Word 2007/ Word 2010/ Word 2013.
It was fine in the beginning then it turned very annoying as I have to click the ‘OK’ button on the error screen each time to access the word document which opens in the background. Also when you checkout OPA projects from subversion for the first time you may need to compile the documents in that case Tools->Compile All also doesn’t work because of this error. Finally I thought I will sit with this and I got it fixed. Let’s see how.
How to Solve Oracle Policy Modeling ‘Error Opening and Compiling Word Document’ Issue
You are getting this error because of the unsuccessful integration of OPM templates to the Word and Excel platforms. This should be automatically integrated during the OPM installation. When you change/upgrade your office suite this integration settings may get changed. Some people gets this error especially when they change from Word 2007/Word 2010 to Word 2013. For some, the Oracle Policy Automation toolbar itself will get removed from Word. I am using Word 2013 here.
1. For Microsoft 2007/2010/2013 Click on File.
2. Select Word Options.
3. Click on Add – Ins. I have already added the template to the word and that’s why it is getting displayed in the list of Active Application Add-Ins. You won’t be finding this in your screen. There is also a chance that your template may get into the list of ‘Inactive Application Add – Ins’.
4. Select Manage and from the drop down select ‘Templates’ and click on Go.
5. Now you will get ‘Templates and Add-Ins’ window popped open. It will be empty in your case; Now click on Attach to attach a document template.
6. From the OPM installation path locate template folder. In my case it is on the system path C:\Program Files (x86)\Oracle\Policy Modeling\templates. Select appropriate file and click on OK.
8. Now add the templates in the ‘Global templates and add-ins’ box. Click Add. Repeat the above step to locate the template file and select the appropriate one which suites your word version.
9. Now check the file you have added and select OK.
10. Now you have successfully added the template. Close both word and OPM application and now if you see the error no longer pops up when you try to open the word document.
NB: There is a chance that your template may get deactivated by MS Word. In that case, the template will get listed in the ‘Inactive Application Add-Ins’ . To enable this instead of selecting Templates from the Manage select Disabled Items and click on Go. From the pop up window select the template and click on Enable.
Hope your issue with the Microsoft Word and OPM integration got solved. Please feel free to share your comments. If you liked this post do subscribe to the blog and like us on Facebook for more posts. Thank you for reading.