cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AnnThomas
Frequent Visitor

PCF Framework

 I created a custom component in Powerapps component framework and uploaded it to CDS. But when I try to import the component in canvas app , it gives me an error "The data you want to open is not a msapp file". How can i resolve it?

6 REPLIES 6

I believe you are trying to use canvas app component import feature which is different than PCF Custom Control. Try to enable Custom Control import by following this documentation.

https://powerapps.microsoft.com/en-us/blog/announcing-experimental-release-of-the-powerapps-componen...

Power Maverick | Microsoft Business Application MVP

I followed the same link. I activated the powerapps component framework also the component in App. But code(experimental) is not seen when i click import component. Instead i only have option to upload a data or select from the list(which lists only powerapps with components)

component.PNG

You might have already checked this but just trying to identify what’s missing. Another thing to check would be if you are in the correct environment when creating the canvas app. If you are in “Default” then change it to appropriate environment where custom control was added. And make sure when you import the solution file, you publish the customization.

Power Maverick | Microsoft Business Application MVP

In order to see the Code (Experimental) tab you also need to have the canvas feature of "Improved data source experience and Common Data Service view" enabled in  App settings > Advanced settings > Preview Features as well.

 

This extra feature enable requirement is being removed the a future version, but hasn't rolled out to release yet.  See if enabling this feature fixes the issue of the tab not being found.

sheldoncopper73
Resolver I
Resolver I

Check if you are using <usesfeature> in ControlManifest.input.xml file,uncomment it at present PCF doesnt support webapi and utility in canvas app 

HemantG
Power Apps
Power Apps


@AnnThomas wrote:

 I created a custom component in Powerapps component framework and uploaded it to CDS. But when I try to import the component in canvas app , it gives me an error "The data you want to open is not a msapp file". How can i resolve it?


https://aka.ms/PCFCanvasBlog 

 

1. Admin setting is set to true for using PCF canvas components  

2. At the app level component experimental feature is turned on

 

You should be able to see the components tab if above are completed. 

 

For the PCF components to show up, make sure that the right CDS environment with the PCF solution is chosen and the PCF controls are of field type. Use the samples if you dont have any.

 

Hemant

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,544)