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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Command bar formula is...
Power Apps
Unanswered

Command bar formula isn't transported with solution

(0) ShareShare
ReportReport
Posted on by

Dear reader,

today I'm facing the next issue.
In my DEV environment I created a button in the Command Bar Editor doing a straight forward approval:
2023-06-01_7-29-36.jpg

 

Nothing new under the sun, right?

Now, I export the solution the app is in as a managed solution and import it into my Testing environment. User reports an error message when using the approval button and when I open up the app in Test to see what's wrong, the "fx Open formula bar" button returns this message:

The formula component for this command cannot be found. You will need to redefine the action of the command or you can remove it from the command bar.

2023-06-01_7-45-58.jpg

 

Any idea what could cause this error to occur and how to get the formula into my testing environment correctly and managed?

Thanks for thinking along with me.
Regards,
Jeroen

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @jonckhje ,

     

    You can't edit components directly within a managed solution. To edit managed components, first add them to an unmanaged solution.

     

    https://learn.microsoft.com/en-us/power-platform/alm/solution-concepts-alm#managed-and-unmanaged-solutions

     

     

    Best Regards,
    Bof

  • Jeroen J Profile Picture
    on at

    Hi Bof,

    Thanks for your reaction, but that was not my issue. I'm not trying to edit the MD App in a managed solution, I was just trying to see how the formula was defined.
    To be sure (maybe we can't even look at the formulas in a managed solution) I created a unmanaged solution on Test, put in the App and looked at the Command Bar Editor... same result, same message.

    For some reason the formula as created in Dev doesn't come along with the solution.

  • Jeroen J Profile Picture
    on at

    Annoying thing I also the formula for Visibility (CountRows(Self.Selected.AllItems) > 0) shows exactly the same behaviour. It was setup on Dev, after transport to managed version in Test it just seems to be gone.

  • sezaialtinok Profile Picture
    2 on at

    Same thing is happening to me. did you find a solution? @jonckhje 

  • NielsSL Profile Picture
    on at

    @sezaialtinok @jonckhje did any of you find a solution to this issue?

  • Jeroen J Profile Picture
    on at

    Sorry, I haven't. I completely worked around this building an entirely new functionality.

  • NielsSL Profile Picture
    on at

    Thanks for the reply, @jonckhje.

     

    Ah well, I am experiencing all sorts of issues with with custom commands at the moment 🤷‍♂️

     

    1. New command does nothing when clicked
    2. I can't see new commands in the component library
    3. Weird behavior when moving solutions between environments
  • TheCodingScot Profile Picture
    2 on at

    So I had an issue with formula command bar buttons myself this week and after a bit of digging, I discovered a couple things:
    The formula field creates a record called an "App Action" that seems to refer to the component used for the formula, which seems to be a Canvas App component. If you do this inside a solution, then export and unpack the solution - you'll see it has references too the app actions.

     

    The issue is, if you create these out of a solution, and/or move the App and Command Bar Component into another solution - it doesn't bring those App Action's with them.

    This has caused me some problems when trying to sort out solution dependencies - and I've ended up just removing the Command Bar Formula 's entirely.
    Which introduced another problem when trying to get rid of the component - it has a model-driven app element you can't delete without using something like the API. Then you can delete the component.


    In short - its all a bit of a mess at the moment.

  • maxpower45255 Profile Picture
    223 on at

    I have the same thing today. In my case, I am working with an "Unmanaged" solution. I've deployed about 25 versions of the solution from one env to the next with no issues. Suddenly, I'm seeing this today. The buttons are there. The commands/formulas that go with them are completely wiped out. 

    If anyone has a fix, please let me know. 

    As a workaround, I've just added the formulas. But this is annoying to have to recreate the code manually. This defeats the purpose of "solutions". 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard