Skip to content

[Bug] Unable to push the Code App to PowerApps/CRM #186

@agregoirehsdyn

Description

@agregoirehsdyn

Hello,

I have created a Code App using this guide https://learn.microsoft.com/en-us/power-apps/developer/code-apps/overview but once I try to push the app to my Dynamics 365 environment, I get this error: There was an error in pushing the app: bolt.authentication.http.AuthenticatedClientException: Encountered internal server error.

Full logs

PS C:\EmptyCodeApp\EmptyCodeApp> pac code push --solutionName "XXXXX"
_Connected as aXXXXX.XXXXXt@XXXXX.com
Connected to... XXXX-XXXX XXXX EU XXXX-Dev

Listing all Solutions from the current Dataverse organization...
Saving app ...
bolt.system.VerbExecutionException: CodePushCreateNewAndSaveAppErrorMessage
à bolt.module.code.PushVerb.d__15.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à bolt.module.code.PushVerb.d__11.MoveNext() Failed to push the app. Retrying...
bolt.system.VerbExecutionException: CodePushCreateNewAndSaveAppErrorMessage
à bolt.module.code.PushVerb.d__15.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à bolt.module.code.PushVerb.d__11.MoveNext() Failed to push the app. Retrying...
bolt.system.VerbExecutionException: CodePushCreateNewAndSaveAppErrorMessage
à bolt.module.code.PushVerb.d__15.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à bolt.module.code.PushVerb.d__11.MoveNext() Failed to push the app. Retrying...
bolt.system.VerbExecutionException: CodePushCreateNewAndSaveAppErrorMessage
à bolt.module.code.PushVerb.d__15.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à bolt.module.code.PushVerb.d__11.MoveNext() Failed to push the app. Retrying...
Microsoft PowerPlatform CLI
Version: 2.1.1+gefbf518 (.NET Framework 4.8.9221.0)
Online documentation: https://aka.ms/PowerPlatformCLI
Feedback, Suggestions, Issues: https://github.com/microsoft/powerplatform-build-tools/discussions

Error: There was an error in pushing the app: bolt.authentication.http.AuthenticatedClientException: Encountered internal server error. The correlation Id is '67960a30-0757-4da8-9859-f1d8a293538a'.
à bolt.authentication.http.AuthenticatedHttpClient.d__16.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à bolt.authentication.http.AuthenticatedHttpClient.d__18`1.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à bolt.module.code.PushVerb.d__15.MoveNext()_

Misc informations

I have tried with --environment or --solution parameter
I have tried pac auth clear
I have tried on a PC without any proxy
I have enabled the CodeApp option on the environment
I have tried with CLI 2.1.1 and 1.44.2
I have tried with npm 11.7.0
I have System Administrator privileges on the targeted environment

I have contacted the Microsoft Support and it told me to create a ticket here.

Steps:

  1. On PowerShell 7.5.4 with CLI 2.1.1
  2. Targeting a "production" type environment, but we use it as a dev
  3. pac code push
  4. Error: There was an error in pushing the app: bolt.authentication.http.AuthenticatedClientException: Encountered internal server error. The correlation Id is '67960a30-0757-4da8-9859-f1d8a293538a'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fix rolling outWe start the rollout with the fix for this issue.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions