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 / [error]Organization ca...
Power Apps
Unanswered

[error]Organization cannot be null or empty. Parameter name: Organization Name (Power Build Tools)

(0) ShareShare
ReportReport
Posted on by

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

Categories:
I have the same question (0)
  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    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

    https://stackoverflow.com/questions/47827329/organization-cannot-be-null-or-empty-parameter-name-organization-name

     

     

     

    Best regards,

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard