I created a simple button component to test the code components framework. I build the solution and uploaded/published it successfully.
In a powerapp, after enabling components, I see my component in the import window. However, when I actually try to add it to my PowerApp I always get the error "Couldn't import components".
No other error message is displayed, and the component isn't added. Is there somewhere I can see what the actual issue is, and how I can solve this?
Hi @joerio ,
If you not give me error message, it's hard to find where the problem is.
Please check this issue, did you meet problem like this:
Maybe you could check the component limit to see whether you made mistake here:
Still many functions are not supported yet.
If the problem still exists, please ask for help here:
@v-yutliu-msft The whole issue is that I don't get any error message that could point me to the right direction
I see my component in the list and can select it.
However, when I click the import button I only see this red banner with "Couldn't import components". No other error message is shown anywhere.
How can I figure out what the actual exception is that is being thrown?
Can you share out the ControlManifest.xml file from the control package you are trying to import?
The issue is probably due to using a tag in the xml file that Canvas doesn't support in loading yet like 'img'.
y updates on this issue? I'm having the same error - now way to debug!
My control stopped importing at some point in time. I rolled back version to the one I did import correctly. It didn't help:
Any help here @jopursle , please?? The manifest is really basic:
<?xml version="1.0" encoding="utf-8" ?> <manifest> <control namespace="Technomancy" constructor="StripePayments" version="0.1.14" display-name-key="StripePayments" description-key="StripePayments description" control-type="standard"> <property name="amount" display-name-key="Amount" description-key="Payment amount" of-type="Currency" usage="bound" required="true" /> <resources> <code path="index.ts" order="1"/> </resources> </control> </manifest>
An update on the above.
Any way to debug it?
Unfortunately, there isn't a good way to debug locally as the issue is happening in remote processing.
I haven't seen this issue before, so I can try to grab a repro to look in to why it's happening. Do you have a test control that has the issue I could look at, or the Canvas session id from a session that hit this issue?
I was able to import and use the control successfully, so it's nothing to do with the control itself.
I assume it probably has to do with the files stored in CDS. Are you able to use this control successfully with all the updated resources in Model or is this just a Canvas issue? Also, did you recently remove files from the project or uninstall/reinstalled the solution?
One thing you can try is update the control version again and republish. Afterwards click the "Publish all customizations" button, attempt to add the control to a new Canvas app and see if it repros again.
My best guess is that there is an unexpected file from the old version that is no longer expected.
An update - I've tried to import the original component into another environment and it works!
So, somehow, the component became incompatible (?!) with my environment (if it helps it's instance id a37edd15-97c2-4d3b-a9a9-c71279cfe9d0 or https://orgb14a6e51.crm6.dynamics.com/) . How might I clean it? Removing solution doesn't help, the deployment still says the component is present in the environment.
Check out new user group experience and if you are a leader please create your group
Check out how to claim yours today!
Test your skills now with the Cloud Skill Challenge.