I have created a custom pcf control which works fine in D365 environment but after configuring this control for portal app following this document:
https://docs.microsoft.com/en-us/powerapps/maker/portals/component-framework-tutorial
after configuring when I load the page getting such error:
Couldn't load one or more code components on this form.
Couldn't load code component for Name (name) because of an unknown problem.
instead of showing my pcf control it's showing the default control.
what I have done wrong?
I have a similar problem - but it happens randomly. Sometimes the control loads and sometimes an error pops up saying it wasn't able to load.
Here's my manifest - any ideas?
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<control namespace="SignatureControl" constructor="SignatureControl" version="0.0.4" display-name-key="SignatureControl" description-key="Allow users to add signature directly to a form." control-type="standard" preview-image="img/preview.png">
<property name="signatureProperty" display-name-key="Signature Field" description-key="Property_Desc_Key" of-type="Multiple" usage="bound" required="true" />
<property name="showClear" display-name-key="Show or hide clear option" description-key="Property_Desc_Key" of-type="SingleLine.Text" usage="input" required="true" default-value="true" />
<property name="customId" display-name-key="Custom ID" description-key="If multiple controls on page this needs to be unique" of-type="SingleLine.Text" usage="input" required="true" default-value="signatureId" />
<resources>
<code path="index.ts" order="1" />
<css path="css/SignatureControl.css" order="1" />
<resx path="strings/SignatureControl.1033.resx" version="1.0.0" />
</resources>
</control>
</manifest>
please check if the control type is supported for Portal . If you can share teh control or just the manifest it would be helpful
Hemant
I don't see the control's source code in my portal app but it shows when I load the form in my model driven app. Not sure what I have missed there.
Not enough information to help. Have you tried debugging the control?
WarrenBelz
87
Most Valuable Professional
mmbr1606
71
Super User 2025 Season 1
Michael E. Gernaey
65
Super User 2025 Season 1