Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

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.

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: PCF Push eror

    Hi @tarakaram , 

    The "pac install" command is available only for the standalone version of pac cli.
    In VSCode it works only through the VSCode extnesion.

    I just saw that the preview version is available in my VSCode

    DianaBirkelbach_0-1707318566615.png

    After that I get the pac cli v1.30.6, which fixes the issues.

    DianaBirkelbach_1-1707318607695.png

    Hope it helps!

  • tarakaram Profile Picture
    25 on at
    Re: PCF Push eror

    HI Diana,

     

    Can you please let me know how i can update cli in code. i noticed it is reflected in command prompt but not in visual studio code. when i try running the command "PAC install latest " in the command prompt of code i am getting error 

     

    C:\PCF\newControl>pac install latest
    Microsoft PowerPlatform CLI
    Version: 1.29.11+g9e2b163
    Online documentation: https://aka.ms/PowerPlatformCLI
    Feedback, Suggestions, Issues: https://github.com/microsoft/powerplatform-build-tools/discussions

    Error: Not a valid command. Try running 'pac [command] help'.

    Hints:
    Parse failed on: latest
    Current command: install
    Is this a known command? No, was it misspelled?
    Is this a known argument? No, was it misspelled?
    Was it quote wrapped? No, be sure to wrap values that contain spaces.

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: PCF Push eror

    Hi @tarakaram , 
    The "pac pcf push" issue is fixed with pac cli version 1.30.6. 😍
    This will be available soon in VSCode too, but until then, you can use the standalone version of the pac cli.
    Even the new parameter "--solution-unique-name" worked now. We can now specify which solution should be used. The publisher prefix is taken from the solution.

  • tarakaram Profile Picture
    25 on at
    Re: PCF Push eror

    Thank you @DianaBirkelbach 

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: PCF Push eror

    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/

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: PCF Push eror

    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!

  • tarakaram Profile Picture
    25 on at
    Re: PCF Push eror

    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
    Re: PCF Push eror

    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
    Re: PCF Push eror

    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
    Re: PCF Push eror

    Hi @tarakaram , 

     

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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 55 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 42 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 31 Super User 2025 Season 1

Overall leaderboard