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 / pac pcf push fails wit...
Power Apps
Unanswered

pac pcf push fails with publisher error

(0) ShareShare
ReportReport
Posted on by 76

Hello,

 

When I try to do a pac pcf push of a new control to my dev environment I get an error but I can't find any detail about the error.

This fails with the error

 

pac pcf push --solution-unique-name SRXInductionManagement

 

This works but it deploys to the default solution. I'd prefer to publish to the related solution.

 

pac pcf push -pp new

 

 

Seems to be something related to the Publisher. Which begs the question, I'm not specifying a publisher when doing a pcf push. 

 

Does anyone have any idea about this one?

 

 

2024-01-09 04:10:35.9928 | FTL | bolt.Session :: Unable to cast object of type 'Microsoft.Xrm.Sdk.Entity' to type 'bolt.dataverse.servicemodel.Publisher'.|EXCEPTION: System.InvalidCastException: Unable to cast object of type 'Microsoft.Xrm.Sdk.Entity' to type 'bolt.dataverse.servicemodel.Publisher'.
at Microsoft.Xrm.Sdk.Entity.GetRelatedEntity[TEntity](String relationshipSchemaName, Nullable`1 primaryEntityRole)
at bolt.dataverse.servicemodel.Solution.get_publisher_solution()
at bolt.module.pcf.PcfPushVerb.Execute(Command command)
at bolt.cli.CommandLine.VerbExecutor.ExecuteImpl(VerbBase verbInstance, Command command)
at bolt.cli.CommandLine.VerbExecutor.<>c__DisplayClass4_0.<<ExecuteAsync>b__0>d.MoveNext()

 

I have the same question (0)
  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @srx_nstratton Have you verified that you're using the latest version of the PAC CLI?

     

    Also does the unmanaged solution with the unique name SRXInductionManagement already exist in your dev environment?

  • srx_nstratton Profile Picture
    76 on at

    Updated to 1.29.11

    Yes the solution is there. I have also tried publishing the PCF in its own solution and pushing to that but get the same error. The only way it works is when I don't specify a package and specify the prefix, but then it's added to the default solution.

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

    I haven't tried this but have you seen Andrew Butenko's crazy way of quickly pushing a PCF?

    https://youtu.be/ND3vcxDuodM?t=60

    His first tip in the video npm start watch was also a life saver for me.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard