|
| 1 | +--- |
| 2 | +title: "Troubleshoot export to excel | MicrosoftDocs" |
| 3 | +description: "Troubleshoot export to excel." |
| 4 | +ms.date: 06/26/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 | +# Troubleshooting export to excel |
| 14 | + |
| 15 | +## Data disappears after I refresh the imported Excel file |
| 16 | + |
| 17 | +**Problem** |
| 18 | + |
| 19 | +After I export the Excel file through **Export to Excel** to my local computer, I open the file and select **Refresh All** under **Data**, the data disappears and worksheet appears blank. |
| 20 | + |
| 21 | +**Resolution** |
| 22 | + |
| 23 | +This issue occurs when the data that you're accessing is password protected and Excel file can’t submit passwords to external data sources. To resolve this issue, you must edit and save the Web query. Follow these steps: |
| 24 | + |
| 25 | +1. On 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. In the **Connection** tab, right-click 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. Go to **Definition** tab and select **Edit Query**. |
| 43 | + |
| 44 | + > [!div class="mx-imgBorder"] |
| 45 | + >  |
| 46 | + |
| 47 | + The **Edit Web Query** window opens. |
| 48 | + |
| 49 | +4. Select **Go** and the following error message displays. |
| 50 | + |
| 51 | + > [!div class="mx-imgBorder"] |
| 52 | + >  |
| 53 | + |
| 54 | +5. Select **Ok** and then select **Import**. |
| 55 | + |
| 56 | +6. Close the **Edit Web Query** window and refresh the data. |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
0 commit comments