MSP Error on Save: Attempted to Read or Write protected Memory
search cancel

MSP Error on Save: Attempted to Read or Write protected Memory

book

Article ID: 100649

calendar_today

Updated On:

Products

Clarity PPM SaaS 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."


You may also see the following error as well: "Project is running into problems with the CA ppm addin for Microsoft project. If this keeps happening disable the add-in and check for available updates. do you want to disable it now?"

 

 

Environment

Release: All Supported Releases
Component: ODMSP

Resolution

  • Ensure you are on the MSP Driver version & patch that matches the PPM version.
  • If impacting all projects, do a clean uninstall/reinstall of the MSP Driver (See KB: KB000045862 for the steps)
  • If you are attempting to overwrite an existing project in Clarity in the new driver with a different project not exported previously from Clarity, this is not supported.
  1. The one option would be to use the Save As feature with the MSP Legacy driver to overwrite the project.
  2. This change was made to allow auto numbering in the new driver when new projects back. Here's a link with more information behind this change and other differences between the new driver and legacy Driver: Deciding Between the Legacy and New Microsoft Project Driver

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: 140105 - MSP Error on Save: Attempted to Read or Write protected Memory if project was previously saved in an earlier version of MSP

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

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