Fix Word Mail Merge Not Opening a Linked CSV File
Question details
The user needs a Word mail merge document to open its linked CSV data source.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Opening an existing mail merge document that is linked to a CSV recipient list.
- Observed behavior
- The linked CSV may not open with the document, although it opens when selected manually.
Locate the mail merge document and its CSV file, and confirm that you trust both files. Note the exact text of any prompt Word displays when you open the document.
Check the SQL command prompt when opening the merge document
Use this check if Word displays a security prompt before opening the linked CSV data source.
In Word, go to File > Open and select the mail merge document. Watch for a message beginning, “Opening this document will run the following SQL command.”
If the document and data source are trusted and the command refers to the expected CSV file, select Yes to allow Word to use the data source. Selecting No prevents Word from running the command.
On the Mailings tab, select Edit Recipient List to check whether Word has connected to the expected CSV file.

Reconnect the CSV data source manually
Use this approach if Word does not connect to the existing CSV link but the file can be selected manually.
Use WPS Office as an Alternative for Word Documents
WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility, making it easier to move existing documents into a different office suite. It does not fix Word's SQL security prompt.

Frequently Asked Questions
What does Word's SQL command prompt mean?
The prompt warns that opening the document will run a command to access its data source. Select Yes only if you trust the document and the command refers to the expected source.
What happens if I select No on the SQL prompt?
Word does not run the command, so the document may not connect to its linked recipient data. You can reconnect a trusted file through Mailings > Select Recipients > Use an Existing List.
How can I check whether the CSV is connected?
In Word, open the Mailings tab and select Edit Recipient List. Check whether the expected records are shown.
What should I provide if the CSV still does not open?
Record the exact prompt and the response you selected. Provide the Word document and CSV file to a trusted support contact for investigation, removing sensitive information where appropriate.




