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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Package Deployer Power...
Power Apps
Unanswered

Package Deployer PowerShell module not working

(1) ShareShare
ReportReport
Posted on by 2

@MattB-MSFT maybe you have any idea.

I've used latest NuGet packages for PackageDeployer and XrmConnector PowerShell modules. Unfortunately this results in following error messages while connecting:

======================================================================================================================

Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error 2 7/1/2024 10:45:31 AM Unable to Login to Dynamics CRM
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error 2 7/1/2024 10:45:31 AM Unable to Login to Dynamics CRM
Source : Not Provided
Method : Not Provided
Date : 7/1/2024
Time : 10:45:31 AM
Error : Unable to Login to Dynamics CRM
Stack Trace : Not Provided
======================================================================================================================

Microsoft.Xrm.Tooling.Connector.CrmServiceClient Verbose 16 7/1/2024 10:49:47 AM Initialize CRM connection Started - AuthType: ClientSecret
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Verbose 16 7/1/2024 10:49:47 AM Direct Login Process Started
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Information 8 7/1/2024 10:49:47 AM Attempting to Connect to Uri https://test01.crm17.dynamics.com/XRMServices/2011/Organization.svc
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Verbose 16 7/1/2024 10:49:47 AM DiscoveryServer indicated organization service location = https://test01.crm17.dynamics.com/XRMServices/2011/Organization.svc
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Information 8 7/1/2024 10:49:47 AM Organization Service URI is = https://test01.crm17.dynamics.com/XRMServices/2011/Organization.svc
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Verbose 16 7/1/2024 10:49:47 AM ConnectAndInitCrmOrgService - Initializing Organization Service Object
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Information 8 7/1/2024 10:49:47 AM ConnectAndInitCrmOrgService - Requesting connection to Organization with CRM Version: No organization data available
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Information 8 7/1/2024 10:49:47 AM AuthenticateService - found authority with name https://login.microsoftonline.com/4351bc3d-e7bf-4383-b8a1-7fe4838cff15/oauth2/authorize
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Information 8 7/1/2024 10:49:47 AM AuthenticateService - found resource with name https://test01.crm17.dynamics.com/
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Verbose 16 7/1/2024 10:49:47 AM ObtainAccessToken - Client Secret
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Verbose 16 7/1/2024 10:49:48 AM Added WebClient Header Hooks to the Request object.
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Information 8 7/1/2024 10:49:48 AM ConnectAndInitCrmOrgService - Proxy created, total elapsed time: 00:00:00.7581155
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error 2 7/1/2024 10:49:48 AM Unable to connect to CRM: Method not found: 'System.String Microsoft.Xrm.Sdk.Organization.OrganizationDetail.get_SchemaType()'.
Source : Microsoft.Xrm.Tooling.Connector
Method : RefreshInstanceDetails
Date : 7/1/2024
Time : 10:49:48 AM
Error : Method not found: 'System.String Microsoft.Xrm.Sdk.Organization.OrganizationDetail.get_SchemaType()'.
Stack Trace : at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.RefreshInstanceDetails(IOrganizationService crmService, Uri uriOfInstance)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DoDirectLogin(Boolean IsOnPrem)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.InitCRM2011Service()
======================================================================================================================

 

I have the same question (0)
  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @ciao_matteo22 this looks like an authentication failure. Ensure that the user whose credentials you are using to connect to the target environment has sufficient privileges to connect to it. If the package is intended to deploy solutions, you will need System Administrator rights 

  • ciao_matteo Profile Picture
    6 on at

    Thanks for your answer! With older version of XrmConnector powershell module it works perfectly fine.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard