|
| 1 | +--- |
| 2 | +title: "Troubleshoot export to Excel | MicrosoftDocs" |
| 3 | +description: "Troubleshoot export to Excel." |
| 4 | +ms.date: 06/30/2020 |
| 5 | +ms.service: |
| 6 | + - "dynamics-365-sales" |
| 7 | +ms.topic: article |
| 8 | +author: udaykirang |
| 9 | +ms.author: udag |
| 10 | +manager: shujoshi |
| 11 | +--- |
| 12 | + |
| 13 | +# Troubleshoot export to Excel |
| 14 | + |
| 15 | +## Data disappears after I refresh the imported Excel file |
| 16 | + |
| 17 | +**Problem** |
| 18 | + |
| 19 | +After I use the **Export to Excel** command to export a file to my local computer, I open the file and select **Refresh All** under **Data**. The data disappears and workbook appears blank. |
| 20 | + |
| 21 | +**Resolution** |
| 22 | + |
| 23 | +This issue occurs when the data that you're accessing is password-protected and the Excel file can't submit passwords to external data sources. To resolve this issue, you must edit and save the web query. |
| 24 | + |
| 25 | +1. In the Excel file, select **Data** > **Queries and Connections**. |
| 26 | + |
| 27 | + > [!div class="mx-imgBorder"] |
| 28 | + >  |
| 29 | +
|
| 30 | + The **Queries & Connections** pane opens on the right of the window. |
| 31 | + |
| 32 | + > [!div class="mx-imgBorder"] |
| 33 | + >  |
| 34 | +
|
| 35 | +2. On the **Connections** tab, right-click to select the **Query_from_Microsoft_CRM** query, and then select **Properties**. |
| 36 | + |
| 37 | + > [!div class="mx-imgBorder"] |
| 38 | + >  |
| 39 | +
|
| 40 | + The **Connection Properties** window opens. |
| 41 | + |
| 42 | +3. On the **Definition** tab, select **Edit Query**. |
| 43 | + |
| 44 | + > [!div class="mx-imgBorder"] |
| 45 | + >  |
| 46 | +
|
| 47 | +4. Select **Go**. |
| 48 | + |
| 49 | + > [!div class="mx-imgBorder"] |
| 50 | + >  |
| 51 | +
|
| 52 | +5. In the error message that appears, select **OK**, and then select **Import**. |
| 53 | + |
| 54 | +6. Close the **Edit Web Query** window, and refresh the data. |
0 commit comments