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 / CLI Import Task keeps ...
Power Apps
Unanswered

CLI Import Task keeps failing when including connection references in configuration file - Azure DevOps CI/CD

(0) ShareShare
ReportReport
Posted on by 49

Hello community,

 

I have a Azure DevOps CI/CD pipeline built using YML. Whenever I try to include the configuration file that contains the connection references, my pipeline keep breaking.

 

I have checked many times that those connection references are the correct ones that I have shared with service principal and I cannot really know what else to check anymore. I deleted the entire solution and try to import as a brand new solution but it still keeps failing as long as I include the connection references in the configuration file. 

Any suggestions on what else I can check? Thank you in advance for your help!

Categories:
I have the same question (0)
  • PowerPlatform-P Profile Picture
    49 on at

    I found the reason now. I had used the wrong service principal in DevOps lol.... so it is still service principal related. 

  • v-xiaochen-msft Profile Picture
    on at

    Hi @PowerPlatform-P ,

     

    Glad to see you solved the issue.

    Please consider marking yourself reply as the solution.

     

    Best Regards,

    Wearsky

  • PowerPlatform-P Profile Picture
    49 on at

    I realized I got the wrong SPN. However, upon changing the SPN, I still faced the same issue that as long as I included the Connection References in the configuration file, the import task failed... and I don't know where else to check when I am sure all connection references have been shared with the Service Principal. Any ideas for troubleshootings?

  • Verified answer
    PowerPlatform-P Profile Picture
    49 on at

    I am able to find the root cause of it now. One of my connection references is a SharePoint connection reference. However, the SharePoint site and list that are used in the app and flows, the owner of those connection references (which the owner is a Service Account), do not have access to.

    I did a manual import, and got an "warning error", which I would not be able to see through the auto-deployment. The warning was "Warning" You do not have access to the site value for this selected connection. However, this does not block other users in the target environment from using this site value if they have access." I just need to click the okay button to proceed with the manual import. Once that was all done, I ran an auto-deployment with configuration on and included all the connection references, then it was working. 

    Lesson learn here, please ensure the Service Account also have access to the SharePoint sites or lists unless you do a manual deployment first to bypass the warning. 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard