Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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()
======================================================================================================================

 

  • ciao_matteo Profile Picture
    6 on at
    Re: Package Deployer PowerShell module not working

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

  • Parvez Ghumra Profile Picture
    1,579 Super User 2025 Season 1 on at
    Re: Package Deployer PowerShell module not working

    @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 

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 76 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

Overall leaderboard