
Announcements
while creating azure devops pipeline using power build tools even after creating successful connection it is failing with error ##[error]Organization cannot be null or empty. Parameter name: Organization Name
Hi @avajtechno ,
I've found some solutions about this kind of error that may help you , please refer:
1): always put the password in quotes in the connection string. That way it doesn't matter if there's a semi-colon (;) present in the password. Which was the case here. So the connection password got truncated midway and on top of that the Url parameter could not be parsed properly anymore. This leads to the error message that the organization can't be null or empty - at least for O365.
2): if you keep getting the error Invalid Login Information : An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. => Authentication FailureUnable to Login to Dynamics CRM consider that your tenant might have conditional access configured. That was the case here for me. And the source system connection worked because the user for this system has an exception from the conditional access restriction. The user for the destination system doesn't.
3)Make sure you are passing the connection string, not the connection string name:
CrmServiceClient conn = new Microsoft.Xrm.Tooling.Connector.CrmServiceClient(
ConfigurationManager.ConnectionStrings["CRM"].ConnectionString);`
4) Try this by adding http:// in Url:
<add name="CRM" connectionString="AuthType=AD;Url=http://domain:80/Configit; Domain=domain; Username=username; Password=pwd" />
Some similar issues may help you:
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/197001/connection-string-not-working-with-crm-2016/505568
https://github.com/WaelHamze/dyn365-ce-vsts-tasks/issues/123
Best regards,