Skip to main content

Notifications

Announcements

No record found.

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

  • Suggested answer
    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
    MartinL123456 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)

  • 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,703 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans