How to fix [Microsoft]ODBC Driver Manager] Data source name not found and no default driver specified pivot table Excel 365 connecting to csv file

David Marjolin 30 Reputation points
2023-03-02T07:06:43.0333333+00:00

I have created a pivot table relying on data from .CSV files using Excel 2013 using the following connection string which has been saved in an .ODC file and refresh works perfectly well in Excel 2013:

DBQ=Q:\data;DefaultDir=Q:\data;Driver={Microsoft Text Driver (*.txt; *.csv)};DriverId=27;FIL=text;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=5;SafeTransactions=0;Threads=3;UID=admin;UserCommitSync=Yes;

However, refresh doesn't work when attempting to open the file in Excel 365 and gives the error message:

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.

followed by the following error message:

Problems obtaining data

Thanks to assist

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} vote

Accepted answer
  1. Emily Hua-MSFT 27,796 Reputation points
    2023-03-03T05:53:34.3066667+00:00

    Hi @David Marjolin

    Thanks for your sharing.

    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.", and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:


    Issue Symptom:

    In Excel for Microsoft 365 Apps, pivot table (relies on data from .CSV files) can not refresh data.

    It uses the connection string which has been saved in an .ODC file.

    Error message 1: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.

    Error massage 2: Problems obtaining data

    Current Status:

    Solved via David Marjolin self.

    Create a Data Source in the 64-bit of ODBC Administrator and prepend the Data Source Name in the connection string as follows: DSN=<the created DNS>


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. David Marjolin 30 Reputation points
    2023-03-02T07:51:24.99+00:00

    The solution I found was to simply to create a Data Source in the 64-bit of ODBC Administrator and prepend the Data Source Name in the connection string as follows: DSN=<the created DNS>;

    1 person found this answer helpful.
    0 comments No comments

  2. Grant, Jairzinio 0 Reputation points
    2023-07-26T21:31:09.0033333+00:00

    How to fix [Microsoft]ODBC Driver Manager] Data source name not found and no default driver specified pivot table Excel 365 connecting to csv file


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.