web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Error getting a PCF solution to work on a form

(0) ShareShare
ReportReport
Posted on by 387

Hi I am trying to get a PCF solution I downloaded to work found here:

https://github.com/ramarao9/AttachmentUploader

I followed the instructions (I think) but must be doing something incorrect?  Not sure if anyone else has used this.

I imported the unmanaged solution and published everything
I opened my form
I created a section, single column.
I created a field called MSAAttachment that is a single line of text with 255 characters
I added this field to the column
I opened the properties and added AttachmentUpload control and made default for all three types (phone, Web, Tablet)
I set the ControlNameForRefresh to my field MSAAttachment (The instructions say name of the grid?? How do I add a grid for this, what do I tied it's datasource to? or am I misunderstanding what is being suggested)
I checked "Hide Default Control"
I Set the field to not show label

I saved everything and published it. But I just get an error "Error Loading the Control"

Can anyone tell me where I'm doing something wrong?

Annotation-2020_2D00_07_2D00_26-154319.pngAnnotation-2020_2D00_07_2D00_26-154619b.pngAnnotation-2020_2D00_07_2D00_26-154858c.png

Error log just says:

TypeError: Cannot read property 'raw' of undefined
at AttachmentUpload.init (webpack://pcf_tools_652ac3f36e1e4bca82eb3c1dc44e6fad/./AttachmentUpload/index.ts?:44:84)
at t._initializeControl (https://<my domain>/uclient/scripts/5.js?v=1.4.1024-2006.4:1:157358)
at https://<my domain>/uclient/scripts/5.js?v=1.4.1024-2006.4:1:146079
at https://<my domain>/uclient/scripts/app.js?v=1.4.1024-2006.4:3976:731
at Array.forEach (<anonymous>)
at https://<my domain>/uclient/scripts/app.js?v=1.4.1024-2006.4:3976:720
at https://<my domain>/uclient/scripts/app.js?v=1.4.1024-2006.4:3976:736
at Object.Au [as unstable_batchedUpdates] (https://<my domain>/uclient/scripts/vendor.js?v=1.4.1024-2006.4:17:79908)
at O (https://<my domain>/uclient/scripts/app.js?v=1.4.1024-2006.4:3976:554)
at T (https://<my domain>/uclient/scripts/app.js?v=1.4.1024-2006.4:2630:1066)
Activity Id: 9c080047-afc4-4b07-83f4-5777cb7eb660

Thanks,
Terry

I have the same question (0)
  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    I followed your steps in my instance and it worked well.

    pastedimage1595829454391v2.png

    pastedimage1595829511490v3.png

    pastedimage1595829350070v1.png

    I suggest that you could redownload  and import the solutions and try again.

    pastedimage1595829829957v4.png

    If your issue still exists, you could raise your question under this project in github.

    Regards,

    Leo

  • Mattw112b Profile Picture
    387 on at

    Thanks I did put on github too for the author in case he reads that instead of here, but was hoping others had done it.

    So, what type of field did you create, just a single line of text?

    Thanks,

    Terry

  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi Matt,

    Yes, I just created a single text field.

    pastedimage1595901532892v1.png

    pastedimage1595901563379v2.png

    And I test it today again and now I got the same issue as yours.

    pastedimage1595901626502v3.png

    It looks like not very stable now, I think it may be better to get support from the developer in github :(

    Regards,

    Leo

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
Pallavi Phade Profile Picture

Pallavi Phade 32

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans