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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

An error has occurred on DocuRef Preview for PDF Files

(0) ShareShare
ReportReport
Posted on by 550

Hello,

since Service Update 10.0.17 we got the Message "An error has occurred." on the Preview for the DocuRef Control.

We just get this error for PDF - Files at our UAT Environment. On DEV it Works.

UAT:

DocuUAT.png

DEV:

DocuDEV.png

Does anybody have the same issue and know how to fix it?

I have the same question (0)
  • Suggested answer
    Equinox2 Profile Picture
    15 on at
    RE: An error has occurred on DocuRef Preview for PDF Files

    Hi Stefan,

    I ran into the same problem in 10.0.18 in a file upload in the released products. I resolved it by changing the filename of the PDF. In my case D365FO would not accept a comma in the filename. Underscores or dots seemed to be no problem.


  • ToddB Profile Picture
    on at
    RE: An error has occurred on DocuRef Preview for PDF Files

    Hi Stefan,

    Here is the information from LCS for issue 565972:

    pastedimage1620768111468v1.png

  • Stefan Wojtas Profile Picture
    550 on at
    RE: An error has occurred on DocuRef Preview for PDF Files

    Thank you Martin.

    I Think it is related to our Problem.

  • Martin Dráb Profile Picture
    235,979 Most Valuable Professional on at
    RE: An error has occurred on DocuRef Preview for PDF Files

    This is information from Insider Program Yammer:

    We are aware of some issues in this space (due to differences in the handling of content types by the infrastructure of self-service environments). The issue is caused by code passing in file extensions (e.g. txt, pdf) instead of valid content types (e.g. text/plain, application/pdf) and those not being interpreted correctly on the self-service environments. While we are making some changes to try and address this for common extensions via issue 565972 (which should be visible in LCS by the end of the week on LCS for tracking purposes), we highly recommend folks to ensure their code is passing in content types instead of extensions (as our fix may or may not catch your specific extension).  

    I guess it's related to your problem as well.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 882 User Group Leader

#2
André Arnaud de Calavon Profile Picture

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

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 518

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans