MSP Error on Save: Attempted to Read or Write protected Memory if project was previously saved in an earlier version of MSP

book

Article ID: 140105

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

When attempting to save a project back from Microsoft Project (MSP) to Clarity PPM, a target error is generated that includes the following: 

Beginning of message: Target: System Object ForwardC?TolinvokeMember (System String... 

Error referenced: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Cause

This issue can happen if the MSP file is saved as an earlier version of MSP such as MSP2007 and not the default of "Project (*.mpp)". 

Environment

Release: All Supported Releases


Component: PPMMSP

Resolution

To check if the above is the cause and correct it,:


1. Save the project locally on the machine by doing a File ->Save As 

2. Make sure the Save as Type is set to Project. If not, select Project, and save the project locally. 

3. Then, you should be able to save the project back to Clarity without issue. 


To prevent the issue from reoccurring, make sure that the following is set in MSP:

  1. Go to File->Options->Save in MSP
  2. Check if "Save Files in this format" is defaulting to MSP2007 (or something else that is not Project), and if yes, change it to "Project (*.mpp)" to keep this issue from happening when users save projects locally. 
  3. Click OK to save the change

Additional Information

See the following KBs for other known solutions for this error:

  • KB: 140097 - Target Error saving in MSP: Attempted to read or write protected memory due to environmental issue
  • KB: 133360 - MSP Save Error: Attempted to read or write protected memory due to line breaks in notes
  • KB: 4116 - If on any versions/patches prior to CA PPM 14.3 patch 10, CA PPM 14.4 patch 6, CA PPM 15.1 patch 3 and CA PPM 15.2, one known reason you can hit this error is due to a defect. 
  • KB: 100649 - MSP Error on Save: Attempted to Read or Write protected Memory

Reference KB000071385 - CA PPM and MSP integration - List of Knowledge Documents

Reference KB000015956 - CA PPM and MSP integration known defects - Support Technical Document Index