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 Apps
Unanswered

PCF Push eror

(1) ShareShare
ReportReport
Posted on by 25

HI All.

 

I am getting below error when i try to use the PCF Push. please let me know if any one encountered this issue.

 

I disabled the telemetry and also ensured the path variable is correctly pointed to build.

 

 

Sorry, the app encountered a non recoverable error and will need to terminate. The exception details have been captured and will be forwarded to the development team, if telemetry has been enabled. Exception Id: 96c0b575-8268-4ce0-9b57-7bf41c93c638, Exception Type: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]
The diagnostic logs can be found at: c:\Users\XXXXX\AppData\Roaming\Code\User\globalStorage\microsoft-isvexptools.powerplatform-vscode\pac\tools\logs\pac-log.txt

 

 

pac-log.txt

2023-11-20 18:45:23.2312 | ERR | Microsoft.PowerPlatform.Dataverse.Client.ServiceClient :: ************ FaultException`1 - Delete : Delete Request to Dataverse via IOrganizationService |=> The object you tried to delete is associated with another object and cannot be deleted. Deleting records from Publisher (ObjectTypeCode: 7101)
for Id(s) : 28dc7a78-3bc0-4159-a98d-7cb4c796e17d
Exception : Cascade Delete failed due to cascade restrict relation. Details below :
Restricting entity Solution (ObjectTypeCode: 7100) has Id: cc26ad51-f21a-ec11-b6e6-000d3a4dec26 and is collected by Relationship with name: publisher_solution.
Restricting entity Solution (ObjectTypeCode: 7100) has Id: fb6a4417-18fc-49fb-975a-a79368f6b933 and is collected by Relationship with name: publisher_solution.

 

i noticed something different.

 

I noticed that instead of powerappstools_prefix it is creating powerapptoolstemp_preifx during the wrapper creation.

I have the same question (0)
  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @tarakaram , 

     

    I've noticed that too. Thanks for reporting. 
    You can make it work if you switch to an older "pac cli" version.

    DianaBirkelbach_0-1701101319884.png

    With the VSCode extension v2.0.13 it works.


    I've reported the issue here: https://github.com/microsoft/powerplatform-vscode/issues/780

  • tarakaram Profile Picture
    25 on at

    Thank you for the reply

  • tarakaram Profile Picture
    25 on at

    Hello Diana,

     

    I am getting new error now. Is there any workaround for this?

    MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
    Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: The switch name extracted from either the partially or completely unquoted arg should be the same.
    at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args)
    at Microsoft.Build.CommandLine.MSBuildApp.ExtractSwitchParameters(String commandLineArg, String unquotedCommandLineArg, Int32 doubleQuotesRemovedFromArg, String switchName, Int32 switchParameterIndicator)
    at Microsoft.Build.CommandLine.MSBuildApp.GatherCommandLineSwitches(List`1 commandLineArgs, CommandLineSwitches commandLineSwitches)
    at Microsoft.Build.CommandLine.MSBuildApp.GatherAllSwitches(String commandLine, CommandLineSwitches& switchesFromAutoResponseFile, CommandLineSwitches& switchesNotFromAutoResponseFile)
    at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)
    [ERROR] Unhandled Exception: Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: The switch name extracted from either the partially or completely unquoted arg should be the same.
    [ERROR] at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args)
    [ERROR] at Microsoft.Build.CommandLine.MSBuildApp.ExtractSwitchParameters(String commandLineArg, String unquotedCommandLineArg, Int32 doubleQuotesRemovedFromArg, String switchName, Int32 switchParameterIndicator)
    [ERROR] at Microsoft.Build.CommandLine.MSBuildApp.GatherCommandLineSwitches(List`1 commandLineArgs, CommandLineSwitches commandLineSwitches)
    [ERROR] at Microsoft.Build.CommandLine.MSBuildApp.GatherAllSwitches(String commandLine, CommandLineSwitches& switchesFromAutoResponseFile, CommandLineSwitches& switchesNotFromAutoResponseFile)
    [ERROR] at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)
    [ERROR] at Microsoft.Build.CommandLine.MSBuildApp.Main()
    Microsoft PowerPlatform CLI
    Version: 1.28.3+g4ba7dfd
    Online documentation: https://aka.ms/PowerPlatformCLI
    Feedback, Suggestions, Issues: https://github.com/microsoft/powerplatform-build-tools/discussions

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @tarakaram , 

     

    Are you using "pac pcf push -pp <yourPublisher>" ?
    Does "npm run build" work, without issues?

  • tarakaram Profile Picture
    25 on at

    Thank you @DianaBirkelbach  for your reply.

    Yes i am using  pac pcf push <publisher> 

     

    npm run build works fine.

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @tarakaram , 

    I don't have that issue... not sure how to help here.,
    Maybe just to mention that it's "pac pcf push -pp <prefix>" (in your example above, the "-pp" is missing, but it's probably a typo in the message, not the real issue).

  • tarakaram Profile Picture
    25 on at

    Its just typo. It was working earlier not sure what caused it to fail

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @tarakaram , 


    I was helping a colleague today, and I saw the second error message you've posted.
    It worked for him, when he downgraded the Power Platform tools even more (I think it was  v2.0.11).
    Maybe will help you too. 
    Just remember to reopen the VSCode (or terminal), otherwise the downgrade won't take effect,
    Hope it helps!

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @tarakaram , 

    I think there is another solution, beside downgrading pac cli. In case it helps, I've wrote a blog: https://dianabirkelbach.wordpress.com/2024/01/16/how-to-fix-pac-pcf-push-issues-with-pac-cli-newer-than-1-28-3-publisher-error-or-solution-deleted/

  • tarakaram Profile Picture
    25 on at

    Thank you @DianaBirkelbach 

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