You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2022. It is now read-only.
When failing to connect to environment, this is not handled correctly in Connect-CrmOrganization. It tries to get the OrganizationDetails instead of throwing an exception for not connecting.
Steps to reproduce
Connect-CrmOrganization -ConnectionString '[incorrect connectionstring]'
Connect-CrmOrganization -Connection [Connection in incorrect state]
Expected behavior
Clear error the connection is not setup correctly and why
Actual behavior
Connect-CrmOrganization : Method not found: 'Microsoft.Xrm.Sdk.Discovery.OrganizationDetail Microsoft.Xrm.Tooling.Connector.CrmServiceClient.get_OrganizationDetail()'.
Environment data
Online
v2.0.0.0
The text was updated successfully, but these errors were encountered:
Include in v2.1.0.0
Optimized the connection and error information as much as possible. Invalid connectionstrings still give NullReferenceException or something. This comes from the XrmServiceClient and the Core library of the SDK.
Improvement based on #32
When failing to connect to environment, this is not handled correctly in Connect-CrmOrganization. It tries to get the OrganizationDetails instead of throwing an exception for not connecting.
Steps to reproduce
Connect-CrmOrganization -ConnectionString '[incorrect connectionstring]'
Connect-CrmOrganization -Connection [Connection in incorrect state]
Expected behavior
Clear error the connection is not setup correctly and why
Actual behavior
Connect-CrmOrganization : Method not found: 'Microsoft.Xrm.Sdk.Discovery.OrganizationDetail Microsoft.Xrm.Tooling.Connector.CrmServiceClient.get_OrganizationDetail()'.
Environment data
Online
v2.0.0.0
The text was updated successfully, but these errors were encountered: