Something went wrong while the document preview was being created

Several users have reported that they are no longer able to preview documents inside Google Drive or Gmail. While some users report that they are suddenly unable to preview all documents, others are only prevented from previewing certain documents. TheWhoops! There was a problem previewing this documenterror is reported to occur with all browsers including Chrome, Firefox, IE, Edge and Safari browsers.

Something went wrong while the document preview was being created
Whoops! There was a problem previewing this document

While this is by far the most frequent occurence, the issue is not exclusive to PDF documents some users encounter this issue with Excel or Word documents. When this issue occurs, the user has the option to download the document in question or to try and open it with an additional Google app.

What causes theThere was a problem previewing this document error?

After investigating the issue and looking at various user reports, we identified a few culprits that are most likely causing the issue. Heres a list with frequent scenarios that might lead to the apparition of theThere was a problem previewing this document error:

  • Internal Google bug There is an internal Google bug that will also occur when previewing stuff in the Gmail app. As per a Google official response, this issue might occur if Google Drive decides to prioritizestoring the file rather than streaming it. Apparently, this behavior started occurringwith version 66.0.3359.139.
  • The issue is caused by the Disconnect extension If youre using Chrome with the Disconnect extension, the issue is most likely caused by this plugin.
  • The document is not a valid attachment Google Drive or Gmail might refuse to preview the document because it doesnt consider it a valid attachment. If the attachment is not considered secure, Google will not make it available for preview.
  • 3rd party firewall is blocking the connection There are situations where this issue might be caused by an overprotective firewall that is blocking the connection between your computer and Googles servers.

How to fix theThere was a problem previewing this document error?

If youre trying to resolve this particular problem, this article will provide you with a list of verified steps. Below you have a collection of methods that other users in a similar situation have used to fix or circumvent the issue.

For the best results, start with the first method. If its not successful or youre looking for a permanent fix, work your way down and follow the next methods in the order that they are presented until you discover a fix that is effective in your particular scenario.

Method 1: Using the magnifier to correct the issue

This might seem like an unconventional fix, but a lot of users have used it successfullyto circumvent the issue. Apparently, whenever this issue occurs it can be corrected by going to the bottom of the screen and clicking the magnifier feature.

Something went wrong while the document preview was being created
Using the magnifier to enlarge and reduce the size

Several users report that by enlarging and then reducing the size of the page view, they were able to correct the issue. This might not seem elegant but apparently, it has helped a lot of users to get around this issue. This fix is confirmed to work on Chrome, Firefox, and Safari, but it will only work as long as the problem is caused by an internal Google drive bug.

However, if you try to preview a large document, you might find yourself having to go through a whole cluster of Whoops pages in order to resolve the issue for each occurence. And keep in mind that this fix is only temporary meaning that youll likely have to repeat this operation every time this error occurs.

If youre looking for a permanent fix, move down to the next method below.

Method 2: Managing the Disconnect Chrome extension (if applicable)

As per various user reports, the issue can also be caused by the Disconnect Chrome extension. If youre using Chrome and you have the Disconnect Chrome extension installed, you can resolve this issue by either disabling the Disconnect extension for Gmail and Google Drive or by simply uninstalling the extension altogether.

If you decide to keep the Disconnect extension simply visit the site that is displaying the error (most likely Gmail or Google drive). Next, click on Disconnects shortcut icon (top-right corner) and click on Whitelist site. Once the site has been whitelisted, reload the page and see if the issue has been resolved.

If you decide to uninstall Disconnect completely, click the action button (top-right corner) and go to More tools > Extensions. From the list of extensions, locate Disconnect and either disable it by using the toggle or click the Remove button to delete it from your Chrome browser.

Something went wrong while the document preview was being created
Remove or Disable Disconnect

Once the extension has been removed, reload the page and see if the issue has been resolved. If youre still encountering the same error message, continue with the method below.

Method 3: Uninstall 3rd party firewall

As per some user reports, the issue might also occur if youre using an overprotective 3rd party firewall. Apparently, certain security suites will end up blocking the connection between the user computer and Googles servers.

If youre using a third-party antivirus, the only way to test if its responsible for the apparition of this error is to temporarily (or permanently) uninstall it from your system). Keep in mind that simply disabling the software will not be enough. Firewalls make certain changes that will remain in place even when the firewall is disabled or turned off.

If this scenario is applicable and you want to uninstall the external firewall, heres a quick guide on how to do so properly:

  1. Press Windows key + R to open up a Run box. Then, type appwiz.cpl and hit Enter to open up Programs and Features. If prompted by the UAC (User Account Control), click onYes.

    Something went wrong while the document preview was being created
    Run dialog: appwiz.cpl
  2. Inside Programs and Features, scroll down through the list of applications and locate your firewall suite. Once you do so, right-click on it and choose Uninstall.
  3. Follow the on-screen prompts to uninstall the suite from your system.
  4. Once the 3rd party firewall is uninstalled, use this guide (here) to ensure that there arent any leftover files behind that might still enforce the same rules.
  5. Restart your computer and see if the issue has been resolved at the next startup.

If the method is still not resolved, continue down with the next method below.

Method 4: Convert the document to a compatible format or size

Keep in mind that both Google Drive and Gmail arent compatible with all formats that might be used by the end users. Because of this, theWhoops! There was a problem previewing this documenterror might occur if the document youre trying to open is not supported by Google. Heres a list with compatible formats that are supported by Googles cloud service:

  • Adobe: PDF, PSD, AI
  • Video: FLV, MPEG4, MPEG, OGG, MOV, AVI, WMV
  • Image: JPEG, PNG, BMP, TIFF, WEBP, GIF
  • Text: TXT
  • Office: DOC, DOCX, XLS, XLSX, PPT, PPTX
  • Audio: MP3, M4A, WAV, OGG

If your the type of file youre trying to preview is not among this list, convert it to a supported format and try again.

Another potential problem that might interfere with the previewing feature of Gmail or Google Drive is the size of the document. Keep in mind that both Google Drive and Gmail have limits for documents and presentations. Because of this, they wont preview a document if its over 50 MB or a presentation that is over 100 MB.

If the file that is not previewed is larger than that, consider using a compression tool or splitting the tool into two (or more) documents.