Skip to main content

Notifications

Community site session details

Community site session details

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

How to: Downgrading powerapps component framework version

(0) ShareShare
ReportReport
Posted on by 37

I've upgraded my PCF CLI to 0.4.3 and now my control isn't shown in dynamics anymore but the original control. I only wanted to upgrade, no breaking code changes.

 

What I observed is that index.ts is bundled but not accessible through debugging console.

 

Can anyone help me downgrading? Can't find any versioning history of PCF. If I would uninstall it with the msi and reinstall I would then have the newest version.

 

 

  • sgpchenchang Profile Picture
    on at
    Re: How to: Downgrading powerapps component framework version

    @hansgfixed Please use the suggested method above to restore and build again. This most likely is a known bug that has been fixed. External users will get the latest bits by the end of this month. You donn't have to do any editing to xml files. Sorry about the inconvenience! 

  • sgpchenchang Profile Picture
    on at
    Re: How to: Downgrading powerapps component framework version

    @hansgfixed Sorry for the inconvenience. We appeneded prefix to your namespace.counstructor by design in the solution.xml and customizations.xml files in the final built solution zip. Users should not need to do and hand editing to their xml files.

     

    Can you please try "msbuild /t:restore" on your solution project and try again?

  • hansgfixed Profile Picture
    37 on at
    Re: How to: Downgrading powerapps component framework version

    error : Control directory with publisher name ...\obj\Debug\Controls\prefix__CustomerCrm.PhoneFormat already exists 

     

    I'm now updating a different PCF and got this error. I've a prefix defined but that was nowhere used, I even remember underscores as prefixes weren't allowed back then:

     

    <CustomizationPrefix>prefix_</CustomizationPrefix>

    Only since updating the PCF CLI the namespace now contains the prefix and in this case even with a double underscore.

     

    The controls folder now contains a second folder with the above mentioned namespace and another one with the correct namespace as it was the case before updating.

     

    Can anyone explain and help me out please?

     

     

    Update: This is a bug. Commenting out the customizationprefix solves the issue.

  • hansgfixed Profile Picture
    37 on at
    Re: How to: Downgrading powerapps component framework version

    Thanks all for the replies.

     

    I was on the wrong form... ..but I'm now having issues with the namespace. Somehow those three files now contain a different namespace:

     

    - Solution.xml under Root Components lists my PCF with the wrong Namespace

    - ControlManifest.xml.data.xml

    <CustomControl>
     <Name>cust_Customer.Crm.Pcf.CustomerPCF</Name>
     <FileName>/Controls/cust_Customer.Crm.Pcf.CustomerPCF/ControlManifest.xml</FileName>
    </CustomControl>

    My original namespace is only Customer followed by the sub-namespaces Crm.Pcf.CustomerPCF. 

     

    If I search for cust_Customer this prefix only appears in the three mentioned files above. This breaks our deployment. We've now decided to only alter those files to the original.

     

    So my question is how and why did this happen? From where does it take the prefix? I've nowhere set it like that. We don't even use a namespace like cust_Customer, it's always cust_attributename.

     

    Thanks in advance.

  • sgpchenchang Profile Picture
    on at
    Re: How to: Downgrading powerapps component framework version

    Hi @hansgfixed , can you provide us with more details on how your controls stop working after upgrading the CLI? You mention that they stop showing in the debug console. Do you mean the test harness from "npm start"? Did your control build successfully? What's the errors in the test harness console if there is any? Thanks. 

  • peterv333 Profile Picture
    on at
    Re: How to: Downgrading powerapps component framework version

    Hello,

     

    I am sorry to hear that you are running into an issue upgrading a component. Could you please let me know what steps you took after the tooling upgrade? This will help me get some insight into where the problem may be coming from. 

     

    Also, you mentioned that the control is not showning up in your CDS environment but the previous version does? If so, the component version may need to be updated before you import it into your environment. You can do this by updating the version="0.0.1" in ControlManifest.Input.xml

  • ScottDurow Profile Picture
    1,039 on at
    Re: How to: Downgrading powerapps component framework version

    I don't recommend downgrading - I would try and work out why your control is not working with the latest version.

    Does your control work after doing a npm start watch locally?

     

    Is it just that it is not deployed to CDS?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 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…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

Overall leaderboard