Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Error getting a PCF solution to work on a form

Posted on by 385

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

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Error getting a PCF solution to work on a form

    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

  • Mattw112b Profile Picture
    Mattw112b 385 on at
    RE: Error getting a PCF solution to work on a form

    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
    LeoAlt 16,329 on at
    RE: Error getting a PCF solution to work on a form

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans