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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

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)
  • Suggested answer
    Community member Profile Picture
    2 on at
    Dynamics CRM Package Deployer fails with "object not set to instance .." error for Switzerland North CDS environment
    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.
  • MartinL123456 Profile Picture
    2 on at
    RE: Dynamics CRM Package Deployer fails with "object not set to instance .." error for Switzerland North CDS environment

    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)

  • Jean Joel Kakou Profile Picture
    on at
    RE: Dynamics CRM Package Deployer fails with "object not set to instance .." error for Switzerland North CDS environment

    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?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
DAnny3211 Profile Picture

DAnny3211 134

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 132

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans