Error when updating a PivotTable RRS feed

  • Question

  • Hello,

    I have a problema when trying to use the Refresh function of the Microsoft.Office.Interop.Excel.PivotCache (runtime version = v2.0.50727 and version =

    When is invoked it results: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    On Professional versions of Office 2016 doesn't occur, but on 365 ones and Home and Business it also occurs. Mostly in Business Retail 365. For instance in ProPlus version it also doesn't occurs.

    Can anyone help on this matter.


    Tuesday, December 19, 2017 4:27 PM

All replies

  • Aditional information:

    System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
       at Microsoft.Office.Interop.Excel.PivotCache.Refresh()

    Tuesday, December 19, 2017 5:56 PM
  • Also someone with same problem and also without an answer:

    The problem is the same.

    Tuesday, December 19, 2017 6:00 PM
  • Hello NunoMAPeixoto,

    Could you share us your code so we could know what you did? Did you use PivotTable.Refresh once you got the pivot table object or had you done any thing to the pivot table like the problem at answer?

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Wednesday, December 20, 2017 2:52 AM