File Cannot Open

Fix Word Mail Merge Not Opening a Linked CSV File

Amos GikundaAmos Gikunda Nov 20, 2026 868 views

Question details

The user needs a Word mail merge document to open its linked CSV data source.

Fix Word Mail Merge Not Opening a Linked CSV File
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the merge document

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.”

2
Review and respond to the prompt

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.

3
Check the recipient list

On the Mailings tab, select Edit Recipient List to check whether Word has connected to the expected CSV file.

Check the SQL command prompt when opening the merge document
If you are unsure about the command: Do not approve an unfamiliar command or an untrusted file. Record the prompt and your response for further investigation.
Free Microsoft Office alternative

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.

Work with Word documents in a familiar interfaceCompatible with Microsoft Word DOC and DOCX formatsUse Writer tools for document and mail merge workflowsFree and lightweight for everyday office tasks
microsoft office alternative - wps office

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.