Microsoft Office® Project (MSP) throws a target error with one of the following:
Out of Range
Subscript out of range
OpenFromDatabase
The errors that are thrown may include the following:
Target: Microsoft.Vbe.Interop.VBProject Item(System.Object)
Error: Subscript out of range
Trace: at Microsoft.Vbe.Interop._VBProjects.Item(Object index)
at CAClarityAddIn.ClarityUI.updateMacros()
at CAClarityAddIn.ClarityUI.ClarityUI_Load(Object sender, RibbonUIEEventsArgs e)
Target: System.Object...
Error: The macro "OpenFromDatabase" cannot be found.
Steps to Reproduce:
"Out of Range"
"Subscript out of range"
"Openfromdatabase"
Alternatively, the error may also occur when MSP is opened from your desktop and the Open icon on the CA PPM Integration button is selected. When this is the case, opening Microsoft Project from Clarity by clicking on the "Open in Scheduler" drop down will throw a different error such as "An error occurred while opening CA PPM in Microsoft Project. Please try again
."
This is typically due to a corruption of the Global.MPT file
Delete or rename the Global.MPT file on the user workstation and generate a new Global.MPT using the steps below:
Global.MPT file under C:\Users\{username}\AppData\Roaming\Microsoft\MS Project\16\en-US
Important: DO NOT DELETE the global.mpt file that MSP creates in the following folder:
See also:
An error occurred while opening CA PPM in Microsoft Project. Please try again.
" error, see KB MSP: 'An error occurred while opening CA PPM project'