cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Power Apps
Power Apps

Re: Couldn't import components (PCF)

Looking at the project you provided, it looks like you are building the solution as unmanaged.  Removing an unmanaged solution won't actually remove the components, which is a limitation to unmanaged whereas managed doesn't have this issue.  Managed has other restrictions however as that's only really meant for deployment (although I still use it personally for testing as uninstalling is nice).

 

I can ask around for the best way to clean up the older files, but you can also try publishing a newer version and hitting "Publish all customizations".  You can also change the name of the control and it will see it as a new control and won't have this issue.

If you can remember the steps on how you got to this state, that would be helpful as CDS shouldn't be having the control files in this state, whatever it is...

Highlighted
Helper I
Helper I

Re: Couldn't import components (PCF)

Thank you, @jopursle for looking into this and the advice on the managed solutions!

 

The component is for Canvas app, I didn't try in a model-driven one.

 

I tried the following and can report:

  • Update the version, rebuild, redeploy and publish all customisations - tried (as before), didn't help. 
  • Rename component and redeploy it - works as expected!

On the possible reasons (confession time) - I did try to use <img> resource. It successfully compiled and deployed, but I could not import. I removed the resource (in the manifest and project), but it didn't fix the import issue as per this thread until I renamed the component.

Highlighted
Power Apps
Power Apps

Re: Couldn't import components (PCF)

@TechnoKitty That's interesting it would still be having issues afterwards.  I'll see if I can get a local repro doing similar steps tomorrow.

Would it be possible to get the session id from a Canvas session hitting the import issue so I can see if there is any extra information on why this happened?

Session Id can be found under "File>Account>Session details" 

Highlighted
Helper I
Helper I

Re: Couldn't import components (PCF)

Sure,

Session ID: b96eda80-dd74-4264-ad4b-e67b3a84aeef
PowerApps 3.20023.4

Highlighted
Helper I
Helper I

Re: Couldn't import components (PCF)

I think I can reproduce and fix* the issue now, @jopursle 

If I remove any resource from the Manifest which was declared there previously (I tried CSS), then I cannot import the component - it fails with the error. If I put the resource back, the component imports successfully!

 

*) with the <img> it seems stuck because it doesn't work one way, neither the other when once added :))

Highlighted
Power Apps
Power Apps

Re: Couldn't import components (PCF)

@TechnoKitty Thanks for the confirmation.  I was able to find the error message at least that let me know that somewhere a Linq command was failing to find an element which narrowed it down a bit, but based on your info I think I know where it is happening.

It looks like import is still getting resources no longer directly referenced and then we fail on the check where all resources must be referenced by the manifest file.

I'll log a bug against myself to get this fixed.  It shouldn't be that difficult to fix, but it will take a while to become available due to release schedules.  For now, I'd advise not removing resources from a control (if using in Canvas) to get around this issue until a fix becomes available.

 

Thanks again @TechnoKitty for the info to track down the issue.

Highlighted
Helper I
Helper I

Re: Couldn't import components (PCF)

Another issue related to this you may want to look into, @jopursle, is when a component cannot be imported (for whatever reason) during an update of the existing app, the error is NOT displayed which makes it difficult to detect and troubleshoot.  

Highlighted
Power Apps
Power Apps

Re: Couldn't import components (PCF)

That issue should already be fixed and checked in, it's just the train it's on isn't available yet.  Hopefully it will be available next week, but no guarantees.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Users online (5,977)