Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Problem with "Open in Microsoft Office" Object reference not set to an instance of an object.

(0) ShareShare
ReportReport
Posted on by 32

Hello

I have Problem with "Open in Microsoft Office" on one Instatnce. After cliking in this Option apper error "Object reference not set to an instance of an object."

8877.pastedimage1674116230460v1.png

So Problem is with cache

5516.pastedimage1674116305480v2.png

container metadataCacheContainer = cache.find(classStr(ExportToExcelMetadataCache), [GlobalCacheEntry_MetadataCache]); 

metadataCacheContainer = null

So any helps to solve this?

  • Rajmund Profile Picture
    Rajmund 32 on at
    RE: Problem with "Open in Microsoft Office" Object reference not set to an instance of an object.

    Problem extension.

    OData apis also have the same error. None of them work.

    pastedimage1675581180096v1.png

  • Deepak Agarwal Profile Picture
    Deepak Agarwal 8,564 on at
    RE: Problem with "Open in Microsoft Office" Object reference not set to an instance of an object.

    I cant think of any other possible issue, better to raise with MS. And if its Dev instance you can rollout a new one.

  • Rajmund Profile Picture
    Rajmund 32 on at
    RE: Problem with "Open in Microsoft Office" Object reference not set to an instance of an object.

    For all users and all forms the is the same error.

  • Deepak Agarwal Profile Picture
    Deepak Agarwal 8,564 on at
    RE: Problem with "Open in Microsoft Office" Object reference not set to an instance of an object.

    is it happening with one form or all the forms in system. How about other users.

  • Rajmund Profile Picture
    Rajmund 32 on at
    RE: Problem with "Open in Microsoft Office" Object reference not set to an instance of an object.

    Yes synch, build, fuil build, clear usage data also.

  • Deepak Agarwal Profile Picture
    Deepak Agarwal 8,564 on at
    RE: Problem with "Open in Microsoft Office" Object reference not set to an instance of an object.

    Have you tried to clear usages data, or may be build and synch.

  • Rajmund Profile Picture
    Rajmund 32 on at
    RE: Problem with "Open in Microsoft Office" Object reference not set to an instance of an object.

    Problem is because

    container metadataCacheContainer = cache.find(classStr(ExportToExcelMetadataCache), [GlobalCacheEntry_MetadataCache]);

    metadataCacheContaine = null, so i have checked it with instance where is this going good, and ther is this created.

    Here on all Forms "Open in Microsoft Office" created erorr "Object reference not set to an instance of an object." due metadataCahcecontainer and go hrow error.

  • Martin Dráb Profile Picture
    Martin Dráb 230,817 Most Valuable Professional on at
    RE: Problem with "Open in Microsoft Office" Object reference not set to an instance of an object.

    I don't think you identified the problem correctly. There is no problem if metadataCacheContainer is null - there is a condition checking the value at line 156.

    If the exception gets thrown at line 155, it means that you have a problem with something used there, not with the result. It won't ever set the value of metadataCacheContainer if the code throws an exception.

    Maybe cache is null, or the exception gets actually thrown from find().

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans