web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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?

I have the same question (0)
  • Martin Dráb Profile Picture
    238,782 Most Valuable Professional on at

    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().

  • Rajmund Profile Picture
    32 on at

    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.

  • Deepak Agarwal Profile Picture
    8,602 on at

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

  • Rajmund Profile Picture
    32 on at

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

  • Deepak Agarwal Profile Picture
    8,602 on at

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

  • Rajmund Profile Picture
    32 on at

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

  • Deepak Agarwal Profile Picture
    8,602 on at

    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
    32 on at

    Problem extension.

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

    pastedimage1675581180096v1.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 514 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 390

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans