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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Dynamics CRM Package Deployer fails with "object not set to instance .." error for Switzerland North CDS environment

(0) ShareShare
ReportReport
Posted on by 2

Hello,

I have a package deployer solution built that has been working perfectly for customers with US or EU CDS environments for some time, but now that the new Switzerland North CDS environments are available when deploying to customers that have just one such environment (even if all others are US/EU in the same tenant etc) the installer immediately fails with an:

"Object reference not set to an instance of an object"

I did a Fiddler trace of the specific point when it fails and I can see in the server response the only difference with a working tenant is the additional Switzerland environment(s). 

I haven't tested with other regions but this may also affect them.

Is there anything I could do for this? Microsoft is there an update to this SDK tool expected? (Or where is the github open source repo for it?)

Thanks,

Martin

I have the same question (0)
  • Jean Joel Kakou Profile Picture
    Microsoft Employee on at

    Hello Martin,  

    Thank for your post on the forum.

    I saw someone you have the same issue here: carinaclaesson.com/.../

    Do still have the error when when you change the PC?  

    What is the error that you collected from Fiddler?

  • MartinL123456 Profile Picture
    2 on at

    Hi,

    Thanks for the response, unfortunately the same error happens on all machines where I or one of my colleagues have tried to deploy from. And on any machine it will work for one customer (e.g. a customer in Germany or USA in regions crm4 and crm) but not for any customer in the new Switzerland region CDS.

    Actually via Fidler there is no error, it is retrieving the correct organization data listing the correct CDS environments including the new CH ones, however the PackageDeployer then crashes with the following error:

    Source : Microsoft.Xrm.Tooling.CrmConnectControl

    Method : QueryOnlineServerList

    Date : 16.02.2021

    Time : 09:14:02

    Error : Object reference not set to an instance of an object.

    Stack Trace : at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryOnlineServerList(ObservableCollection`1 svrs, OrganizationDetailCollection col, ClientCredentials liveCreds, Uri trimToDiscoveryUri, Uri globalDiscoUriToUse)

      at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.FindCrmOnlineDiscoveryServer(ClientCredentials liveCreds)

      at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)

  • Suggested answer
    CU27040919-14 Profile Picture
    2 on at
    I had the same issue with same error logs today when trying to connect to a CDS environment hosted on the new Switzerland domain (example.crm17.dynamics.com)

    It seems that my current local PackageDeployer/Plugin Registration Tool was too old and was not supporting these new domains in authentification step.
     
    I resolved the issue by downloading again the latest version of SDK tools with Power Platform cli.
    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/download-tools-nuget#download-and-launch-tools-using-power-platform-cli
    Authentification now works perfectly.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 62 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 43

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans