web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Pac Code Push Error
Power Apps
Answered

Pac Code Push Error

(0) ShareShare
ReportReport
Posted on by 6
I have Code apps enabled in my environment however if I use pac code push i still get this error 
Error: There was an error in pushing the app: bolt.authentication.http.AuthenticatedClientException: The environment '06b223a6-1be1-ec6d-b141-7957265e2452' in tenant '0bb7071a-01ca-4f14-9fcf-1b77cc51506d' does not allow this operation for this Code app '91169b08-1456-4d88-98de-3e366da2df5f'. Please reach out to your environment admin to enable Code app operations. 
I have the same question (2)
  • Verified answer
    Kushal_M Profile Picture
    165 Super User 2026 Season 1 on at
    Hello  
     
    Please check the below points and see if that works for you.
     
    1. You need to be either an Environment Admin or have the System Administrator in Dataverse (Code App Deployment privilege). Being just a Maker may not work.

    2. Hope you have selected correct environment for enabling the feature. Please follow to double check that Code apps are enabled for that environment (06b223a6-1be1-ec6d-b141-7957265e2452).

    • Select the environment (06b223a6-1be1-ec6d-b141-7957265e2452).

    • Under Settings → Product → Features, look for Code apps.

    • Make sure Code apps are enabled here.

    3. Retry the push

    Once Code apps are enabled in that environment and you have the right role, re-run: pac code push

  • Suggested answer
    JS-04091456-0 Profile Picture
    6 on at
    It worked after reauthing and selecting the environment AND specifying the environment again in the push command 
  • TonySileo Profile Picture
    15 on at
    I'm getting this same error. I tried including --environment XXX on the push code app command, but it still fails.  Anyone have any other suggestions?  I'm trying to do this from Github action under a service principal account.  I can run pac code push just fine under my own user account (same app, same environment).  

    Copilor has gotten off on a (possible?) tangent about needing to enable an MCP Client associated with my service principal app in the target dataverse environment. I'm working through that but not sure it's the right direction to go in.

    Error: There was an error in pushing the app: bolt.authentication.http.AuthenticatedClientException: The environment 'e8a877a8-c3fe-efa0-b096-5a34928fa613' in tenant 'ea3ca594-5d42-4e7f-ae0b-3e934f90c340' does not allow this operation for this Code app '3d715cd0-b50d-42e6-a0b2-fd948dda0c78'. Please reach out to your environment admin to enable Code app operations.
       at bolt.authentication.http.AuthenticatedHttpClient.<Execute>d__16.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)       
       at bolt.authentication.http.AuthenticatedHttpClient.<Post>d__18`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)       
       at bolt.module.code.PushVerb.<CreateNewAndSaveApp>d__15.MoveNext()

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 248 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 209 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard