DearByDear isn’t out yet. Join the waitlist for 50% off your first year when it launches.

DearByDear
WORD ERROR · THE MAIL MERGE LIST

Word was unable to open the data source

“Word was unable to open the data source” means Word couldn’t connect to the spreadsheet or file you chose as the list for your mail merge. It isn’t a sign that the list is lost: what failed is Word’s connection to it, and Microsoft names the conditions that connection needs. The other messages on this page come from the same step.

Returned mail
Word

Word was unable to open the data source.

Also seen as
  • Word could not re-establish a DDE connection to Microsoft Excel to complete the current task.
  • Error has occurred: External table is not in the expected format.
  • Opening this document will run the following SQL command: SELECT * FROM … Data from your database will be placed in the document. Do you want to continue?
A Word message when you choose the list for a mail merge, or open a merge document linked to it.

Why it happens in a mail merge

Word doesn’t read a workbook the way Excel does: it connects to it, through OLE DB by default, and asks for a table. Microsoft’s conditions are the file saved on your computer or a file share, since “saving at an HTTP location isn’t supported for mail merge,” the list on the first sheet, and your changes finished before the list is connected. A workbook chosen from OneDrive or SharePoint online, or a list on a later sheet, can stop it.

Word has a second way to connect, DDE, which keeps the worksheet’s formatting; “Word could not re-establish a DDE connection to Microsoft Excel” comes from that one. “External table is not in the expected format” is Microsoft’s case of an .xlsx in a shared folder: Word opens the file exclusively, so a second person opening the merge document is refused. And a merge document asks to run a SQL command each time it opens; answering No opens it without its list.

How to fix it

  1. Keep the file on your computer

    Microsoft supports a list saved on your computer or a file share, not at a web address. If you chose it from OneDrive or SharePoint online, save a copy in a folder on your computer and choose that.

  2. Put the list on the first sheet

    All the data Word should merge belongs on the workbook’s first sheet, Microsoft says, with column names that match the fields in your email. Finish your changes and save the workbook before you connect it.

  3. Shared folder? Use a CSV copy

    For “External table is not in the expected format,” Microsoft’s workaround is to save the list as CSV Comma Delimited (*.csv) or Excel 97-2003 Workbook (*.xls) and use that file, because Word opens an .xlsx exclusively.

  4. Connect the list again

    Mailings → Select Recipients → Use an Existing List, and choose the file. If Select Table shows nothing to choose, answers on Microsoft’s Q&A forum suggest File → Options → Advanced → Confirm file format conversion on open, then OLE DB Database Files in Confirm Data Source (tick Show all to see it).

What DearByDear does

DearByDear doesn’t connect to your workbook through Word or Excel: it reads .xlsx and CSV files itself, and Excel doesn’t need to be installed. For a CSV, it works out the separator, the text encoding and the decimal separator from the file, and it finds the email column by itself: a mail merge from Excel without Word, one email per row.

A list you keep in OneDrive, SharePoint, Dropbox or Google Sheets works as a link, where Word wants the file on your computer: DearByDear reads it again before each merge, so the spreadsheet you keep updating is the one it sends to. Your lists, from files and links, are in the Mailing lists window.

Questions about this error

How do I fix “Word could not re-establish a DDE connection to Microsoft Excel”?

It comes from DDE, one of Word’s two ways to connect to Excel, used by a list connected as MS Excel Worksheets via DDE (*.xls). Answers on Microsoft’s Q&A forum point to an Excel setting: File → Options → Advanced → General, untick Ignore other applications that use Dynamic Data Exchange (DDE). Or connect the list again with OLE DB Database Files, Word’s default, which doesn’t keep Excel’s number formats.

What is “Opening this document will run the following SQL command”?

A security prompt Word shows when a merge document linked to its list opens: by design, Microsoft says, in every version since Office XP Service Pack 3, so that a document can’t run a harmful query unasked. Click Yes if you trust the document, and it opens with its list; No opens it without the list. Microsoft documents a registry value, SQLSecurityCheck, that turns the prompt off, and doesn’t recommend it.

What does “Error has occurred: Class not registered” mean in a mail merge?

Microsoft gives no cause for it in a mail merge: none of its pages connects the two. Its only fix is the general one for an Office app that isn’t working as it should, repairing Office: right-click Start, choose Installed apps (Apps and Features on Windows 10), then Microsoft 365 or Office, Modify, and Online Repair. Quick Repair is faster but only replaces damaged files. Answers on Microsoft’s Q&A forum give the same advice.

What does “Record 1 contained too few data fields” mean?

That Word read a row with fewer fields than it expected. Microsoft documents the message only for Office 2003 and 2007 lists read from a database through an .odc file. For a CSV or text list, Microsoft’s rule is fields separated by tabs or commas and each record on a line of its own, so check that every row has the same columns as the first.

Sources

Each provider’s own pages, read on November 5, 2026. The error texts and the fixes are the providers’ own: if they change their wording, theirs is right.

  1. Microsoft: data sources you can use for a mail merge
  2. Microsoft: mail merge using an Excel spreadsheet
  3. Microsoft: mail merge error when a data source is accessed by multiple users in Word · updated June 6, 2024
  4. Microsoft: the “Opening this will run the following SQL command” message
  5. Microsoft: date, phone number and currency fields are merged incorrectly from Access or Excel
  6. Microsoft: Excel data doesn’t retain its formatting in mail merge operations in Word · updated March 25, 2026
  7. Microsoft: repair an Office application

Coming soon, with 50% off your first year.

Join the waitlistNot out yet · Windows & Mac · the waitlist hears first