Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Exception when running SDK Tool to Create Entity Diagrams in Visio

(0) ShareShare
ReportReport
Posted on by 20

The CRM SDK provides a tool that diagrams, in Visio, Entity metadata and attributes. It's called the MetadataDiagramConsole. After building the EXE from the project, running it, and entering the CRM environment information, I receive "Object reference not set to an instance of an object."  This occurs whether I add an entity name as part of the command line execution or just leave it blank.  Each time I run it, the tool does remember my Server, Org, and User (and password I hope). I believe authentication and access is working because part of the process is that it asks me to pick an Org from a list that it gathered from the server.  It correctly showed the Org name. 

Here is a link to the information:

https://docs.microsoft.com/en-au/dynamics365/customer-engagement/developer/use-metadata-generate-entity-diagrams

I'm running Dynamics 2016 8.2.2.112 on-premises.  This is a dev environment with AD, CRM, SQL and SSRS on one virtual machine. I have latest version of Visio installed. The user account is local and domain admin. It was also used to install CRM and create the Org. 

  • Suggested answer
    CRMGTMLead Profile Picture
    CRMGTMLead 20 on at
    RE: Exception when running SDK Tool to Create Entity Diagrams in Visio

    Ok, I figured it out.  The error means the entity name is invalid. I kept trying to use "case" or "cases".  Those are the display names. The actual name is "incident".  

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans