Why I am I getting an Expression Error when I try to refresh data in an Excel sheet with database connections?

Anonymous
2025-02-28T17:19:53+00:00

I have an Excel sheet with database connections to a folder on my computer, and I just recently started receiving an Expression Error when I try to refresh the data in the sheet. The folder contains six Excel sheets that are refreshed/replaced periodically. I have read other forums saying that changes to the source data might be causing the issue, but the columns/headers of my data sheets have not changed at all.

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2025-03-01T02:58:11+00:00

    Could you share a screenshot of that error?

    The quickest way is to reimport the data. Then you can copy code from original query.

    0 comments No comments
  2. Anonymous
    2025-03-03T14:24:54+00:00

    I tried to refresh the data in my sheet this morning, and I did not receive the Expression Error I previously mentioned, but now my data is incomplete. The first image shows the data that is loaded into my sheet with data connections. Once it reaches the 'Strain' column of the source labeled '250 INACTIVE', the columns are all blank. The second image is a screenshot of the source data in the file labeled '250 INACTIVE'. As you can see, those fields are not blank.

    0 comments No comments
  3. Anonymous
    2025-03-04T06:03:38+00:00

    Is it possible to share both files to check your issue?

    For sharing file, you may upload it to OneDrive or any other cloud drive and then post the link here.  *Please make sure you have removed any sensitive or private information in the sample file before uploading.

    0 comments No comments