Power BI / Power Query troubleshooting

Power BI OLE DB or ODBC Error: Find the Fix

Seeing 0x80040E4E, 0x80040E1D, or a refresh error with no useful explanation? Match the detailed message to a real fix before changing your data model.

Updated November 22, 2026Real video examplesMicrosoft documentation checked

By A.J. · Documentation reviewed November 22, 2026 · Independent troubleshooting guide

Watch before rebuilding anything

Power BI OLE DB / ODBC: video fixes

Actual YouTube thumbnails. Tap one to load its player. Each video covers a different failure; the fix shown may not apply to yours.

Click to play · fast loading
Real YouTube thumbnail for Steve's OLE DB or ODBC Power BI troubleshooting video

Closest general match · Steve’s Tips · English

Actual Excel-folder OLE DB / ODBC refresh error

Steve reproduces a missing-column error when Power BI combines Excel files and shows the file-level change that made his refresh succeed. Inspect file structure before copying his workaround.

Real YouTube thumbnail for 0x80040E4E Power BI error demonstration

Exact HRESULT · Jessie Wang

Fix 0x80040E4E: one demonstrated scenario

Directly matches the code. Older, scenario-specific example—verify that your underlying error is the same before applying it.

Real YouTube thumbnail for Guy in a Cube Power Query tracing guide

Diagnostics · Guy in a Cube

How to trace the real failed refresh

Reputable English-language explanation of Power Query tracing and diagnostics. Useful when the wrapper hides the source of the failure.

Video accuracy: The Steve’s Tips walkthrough shows his specific Excel-folder case. Jessie Wang targets the exact 0x80040E4E code but not every possible cause. Guy in a Cube demonstrates diagnosis rather than a guaranteed one-click fix. If your workplace blocks YouTube, the written steps and Microsoft references below work without video.

Confirmed · Microsoft Community

0x80040E4E + duplicate key

A reported case also showed a duplicate on the one side of a relationship. The author confirmed a solution after adjusting query load and data grain. Use this branch only when duplicate-key details appear.

Read original resolution

Confirmed personal workaround · Microsoft Community

0x80040E4E + query evaluation

A user reported success after temporarily reducing Advanced Editor steps to Source, refreshing, then restoring the logic. The root cause was not established. Do not apply this destructively to production.

See the original report

Exact issue · different root cause

Queries refresh, model refresh fails

A community thread recommends checking stale hidden query references or unused model tables. The answer is marked solved, but the thread does not prove a specific root cause for other models.

Read thread and limitations

Find the right repair

What does your detailed error say?

You do not need to upload your PBIX or share credentials. Choose the closest exact message, not the code alone.

First: find the earliest real failure (not the final wrapper)

1. Source / provider

Which endpoint, authentication identity or driver actually fails?

2. Power Query

Which navigation, transformation or value first returns an error?

3. Model / service

Does full load reveal relationship constraints or environment differences?

  1. Save a diagnostic PBIX or project copy. Keep the working version and capture parameters, current source and storage mode. Do not edit the production model during initial isolation.
  2. Desktop: expand See details or the detailed error; note the query name, provider text, DataFormat.Error/Expression.Error and any native code. Open Home → Transform data and inspect the Applied steps in order. A step that previews successfully may still fail on unsampled rows.
  3. Service: open the workspace, find the semantic model → Refresh history, then open the failed run. Record timestamp, gateway/connection ID if shown, query/partition names and details. Match that run to the actual semantic model and environment.
  4. Identify independent failures: when several tables report errors, the first specific error may be in a single query while the rest say operation canceled. Work from the informative message, not the highest number of errors.
  5. Power Query error cells: click the whitespace within an error cell for the details pane. In a diagnostic copy, select the affected column and use Home → Keep rows → Keep errors to isolate rows. This is inspection—not advice to filter them out in production.
Success criterion: identify a reproducible failing step, source field, full-load constraint or service credential. Avoid generic actions such as deleting relationships, turning off privacy or reinstalling every driver when no evidence points there.

Microsoft: Step-level and cell-level error details · Power BI refresh troubleshooting.

Advertisements

Fix 1. 0x80040E4E plus duplicate-value / relationship error

This is a high-value branch because a second error message often tells you the actual cause. For example, a detailed refresh may state that a particular column contains a duplicate and cannot be used on the one side of a many-to-one relationship. That needs a data-grain decision, not a generic ODBC reinstall.

  1. From the error, copy the exact table, column and sample duplicate value to private notes. Do not publish real customer data.
  2. Open Model view and inspect the affected relationship and cardinality. The one-side key must be unique; understand whether the table represents customers, orders, order lines or another grain.
  3. In Power Query, inspect the full key column including blank/null values, duplicates and upstream merges or appends that unexpectedly multiply rows. A preview of a few hundred or thousand records is not enough for a uniqueness guarantee.
  4. If the data is legitimately one-to-many, model a valid dimension or fix the aggregation level and relationship design. If the source promises unique keys, ask the owner to correct broken records. Do not indiscriminately Remove Duplicates or switch to many-to-many simply to silence the message.
  5. For staging/helper queries not intended as model tables, review Enable load only after checking their dependencies. A community author confirmed solving their model after reconciling query load and data grain—this does not make disabling load universally correct.
  6. Refresh the full model; verify expected key counts, measures, filter direction and business totals.
Real case: in this Microsoft Fabric Community thread, the user included the duplicate-key detail and marked a data-grain/load adjustment as the solution. The HRESULT itself did not diagnose the relationship.

Official reference: Relationships and cardinality.

Choose another symptom

Fix 2. Missing column, sheet, table or navigation key

Messages such as Expression.Error: The column 'Column8' of the table wasn't found and The key didn't match any rows in the table indicate references that no longer resolve. They are not evidence that an ordinary data join should be changed to a left join.

Single Excel or database source

Check the Navigation step against the actual workbook sheet/table name or database schema/object. Compare exact spelling, Kind, parameters, file location and effective user permissions.

Folder of Excel / CSV files

Compare the newest files with the sample-file transformation. Look for changed header rows, sheet names, sheet types, missing columns, delimiters and extra files matched by the folder filter.

  1. In Power Query, click the step immediately before the red error. Inspect the columns and objects it actually returns; do not assume Excel displays raw schema exactly.
  2. For a combined-file query, check both the main query and its Transform Sample File / helper function, plus the newest source file. One failing file can break an otherwise good folder query.
  3. Fix a stale navigation identifier or restore the agreed source schema. If the upstream column was renamed, adjust subsequent type/rename/expand steps only after checking downstream dependencies.
  4. Refresh the combined input and compare file counts, first and last data rows, column names and totals with the source contract.
What the real video proves: Steve reproduced this class of missing-column failure and found that copying the originally downloaded Excel file, rather than re-saving it, worked for his feed. That does not prove all Excel Save As files are broken. Investigate the real schema change first.

Microsoft: Column not found · Common Power Query authoring issues. Related: Miss Microsoft — navigating missing columns and keys (video).

Choose another symptom

Advertisements

Fix 3. DataFormat.Error, type conversion or incorrect locale

The detailed message may identify a date, numeric or text conversion problem. A column that looks fine in the sample can fail when the full data contains N/A, a blank marker, a text percentage, an unexpected date, or a different decimal separator.

  1. Find the first Changed Type or conversion step that returns an error, then inspect the error record’s Reason, Message and Detail.
  2. Select the affected column and use Keep errors in a diagnostic copy. For the distribution rather than only a preview sample, open the View → Column quality tools and switch to profile the entire data set when supported and practical. Large sources may be expensive to profile.
  3. Determine the intended data contract. If US and UK date formats are mixed, confirm what a value like 03/04/2026 actually means; guessing a locale changes business data.
  4. For consistent text input, use Change Type → Using Locale and select the actual source culture and destination type. Keep IDs containing leading zeroes as text, not numeric.
  5. Where a source value is invalid, repair it upstream or introduce a documented quarantine/error-reporting rule. Do not replace every error with null or delete rows without approval.
  6. Re-run the complete refresh and reconcile row totals and affected-value counts.
Optional read-only M diagnostic pattern (for advanced users)

In a separate diagnostic reference, after the relevant step, inspect error rows. Replace #"Changed Type" and OrderDate with your actual step and column. Do not paste this over the production query or assume the column exists in every model.

// Example for a copied diagnostic query only.
let
    SourceStep = #"Changed Type",
    ErrorRows = Table.SelectRowsWithErrors(SourceStep, {"OrderDate"})
in
    ErrorRows

This code returns rows with an existing error in the named column; it does not tell you whether the conversion rule is correct or fix the source values.

Official: Inspect errors · Types and locale · Data profiling.

Fix 4. “We couldn’t fold the expression to the data source”

This is not interchangeable with a generic ODBC credential error. Power BI DirectQuery typically requires supported folding for the table’s transformations; Import can often run nonfolding operations locally, but still faces source/runtime limits.

  1. Confirm whether the affected table uses Import, DirectQuery or a composite model.
  2. Inspect the applied step immediately before the folding error. Test whether the source connector supports the operation and whether the expression can be translated.
  3. Where supported, use View Native Query. Its absence is not universal proof of broken folding; not all connectors expose that action. Power Query Online also offers folding indicators and query-plan diagnostics.
  4. Rewrite the transformation to a supported source-side operation, or ask the database owner to create an appropriate view after performance and governance review.
  5. Retest the full model and report freshness. Avoid switching storage mode or adding buffering as a reflexive workaround.

Microsoft: DirectQuery guidance · Query folding examples · Folding indicators.

Fix 5. ODBC driver, data source login, provider or TLS error

Use this branch only when the detailed message names the driver/provider, credential, DSN, source endpoint, certificate or SQLSTATE. The generic phrase alone does not prove your machine has an ODBC driver problem.

Error detailCheck next
Driver or provider is not registeredSupported connector; installed 64-bit provider/runtime; version and Office compatibility; gateway host.
DSN or driver mismatchActual DSN architecture/name and configured properties on the machine performing refresh.
Login failed / 401 / access deniedCurrent connection identity and permitted source object; token or credential validity (without exposing secrets).
SSL / TLS / certificate chainTrusted CA, correct host name, expiry, driver TLS requirements. Never disable validation as a generic repair.
Timeout / connection closedSource load, networking, gateway logs and query behavior, correlated with UTC failure time.
  1. Note the connector type, DSN/driver/provider version and host. With an on-premises gateway cluster, confirm required drivers are present and correctly configured on every node eligible to execute the refresh.
  2. Use a minimal authorized source read under the same account and host as the failing refresh. A successful connection on the author’s laptop does not validate the gateway.
  3. For Access databases or legacy XLS, review Microsoft’s Access Database Engine/runtime compatibility guidance. Do not install conflicting Office components blindly. If permitted, test an XLSX copy and reconcile workbook data.
  4. For SQLSTATE/native provider errors, let the provider-specific message determine the next diagnostic. Don’t automatically disable encryption, privacy controls, IPv6 or certificate checks.

Microsoft: ODBC connector · Access/XLS engine problems · Gateway source troubleshooting. Also see the gateway runbook.

Fix 6. Query preview succeeds, but Close & Apply or full refresh fails

Power Query’s preview does not establish that the entire source, relationships and model processing can succeed. If queries refresh but the final model load fails, isolate which layer is different.

  1. Check all query errors: is the earliest useful failure a conversion, missing column, provider issue, duplicate key or memory error? A canceled sibling query may be a consequence, not the origin.
  2. Inspect full-data constraints: unsampled conversion failures, duplicate or blank one-side relationship keys, model memory limits, source timeouts and unexpected append/merge multiplication.
  3. Review dependency chain: in a diagnostic copy, inspect helper queries and Advanced Editor references to renamed/deleted queries. In Model view, check any genuinely orphaned tables before removing them.
  4. Test a minimal copy: temporarily reduce the failing copied query to its Source and incrementally restore steps. This is a diagnostic technique; retain the original M, relationship definitions and recovery copy. Do not delete production steps or relationships to force a green result.
  5. Validate the model: review visuals, dependent measures, key uniqueness and business totals after complete Close & Apply and Refresh.
Reported but not a guaranteed fix: one community member temporarily stripped and restored query steps and reported success. The cause remained unclear. Prefer controlled reproduction and source/query validation to blindly deleting steps.

Fix 7. Power BI Desktop refresh works, service refresh fails

This usually indicates a difference in execution environment, connection identity, parameters, query volume or provider dependencies—not automatically a failed gateway.

  1. Open the semantic model’s Refresh history and capture the detailed failed run. Compare it with the same refresh in Desktop rather than an unrelated local preview.
  2. Under semantic model settings, inspect Gateway and cloud connections, the mapped connection and Data source credentials, where applicable. Cloud-only sources may have no on-premises gateway.
  3. If using an on-premises gateway, check the host actually executing the refresh: installed drivers, DSN (if used), provider version, file/network path and source network access. A user-scoped local DSN might not exist under a gateway service account.
  4. Compare source parameters, incremental-refresh partitions, refresh window, privacy boundaries, source throttling and model size. The service may read different data or run different resource limits.
  5. Retest using the intended service principal/credential and production-like volume, then confirm the next scheduled refresh succeeds.
Know when to hand off: If the failed error explicitly names an on-premises gateway host, mapping or driver, open the Power BI Gateway Error guide. If it names a Power Query conversion or navigation problem, return to that branch with service credentials.

Official: Refresh scenarios · Refresh behavior and schema changes.

How to tell whether the repair actually worked

Do not accept a refresh-success banner without validating data. One user’s working workaround may still yield missing rows, altered keys or broken measures.

Checkboxes are local only and reset when the page reloads. No data is transmitted or saved.

Still stuck with 0x80040E4E or 0x80040E1D? Prepare useful evidence

If your dialog shows only an HRESULT, collect the missing details instead of guessing the repair. The code by itself does not establish whether source navigation, a conversion, a relationship or a driver failed.

Power BI OLE DB / ODBC - private support report
Exact error including HRESULT and detailed message:
UTC time and refresh/activity/request ID:
Power BI Desktop version:
Connector/provider/driver and storage mode:
Data source type (redact host, database and secrets):
Failing table/query and first informative Applied Step:
Native error / SQLSTATE if supplied:
Power Query preview: pass / fail / not tested
Desktop full refresh: pass / fail / not tested
Power BI service refresh: pass / fail / not tested
Gateway cluster/version and execution account, if relevant:
Source schema or data changes since last success:
Approved diagnostic action tried and observed result:
Row/key count and business total checks:
Rollback version and next owner:

Share through your organization’s secure Microsoft Support path. Avoid public PBIX uploads, customer data, connection strings, tokens, passwords and unredacted diagnostic traces. A gateway or source admin can correlate the timestamp with host and source logs.

Questions people ask about Power BI OLE DB or ODBC errors

Does 0x80040E4E mean a corrupt model or relationship?

No. A related duplicate-key detail may reveal a relationship problem, but the HRESULT alone is not sufficient. Collect the underlying error and find the failing layer before deleting relationships or source queries.

Does 0x80040E1D have a single universal fix?

No. It appears in different refresh reports. Isolate the actual provider or Power Query error, compare full refresh with preview, then apply the cause-specific branch. Do not copy a single forum workaround without matching its context.

Why does Power Query preview succeed while Close & Apply fails?

Preview can examine only part of the input. Full model processing can reveal later conversion errors, duplicate relationship keys, memory constraints or provider behavior. Test the full model and reconcile counts after any fix.

Is “The key didn’t match any rows in the table” solved by changing an inner join to a left join?

Not generally. It commonly indicates a navigation record or source object lookup failed. Check the previous applied step’s actual catalog or worksheet names and effective parameters. A join change affects data semantics without restoring a missing source object.

Should I remove every error row to get a successful refresh?

No. Use Keep errors to diagnose on a copy. Remove or replace rows only under a documented data-quality rule, and confirm how totals, keys and downstream reporting are affected.

Does disabling IPv6, privacy or TLS validation fix ODBC errors?

Not as a general method. Troubleshoot the actual host, driver, authentication and network requirements. Do not lower security protections just because a community member fixed a different environment.

Are these fixes tested against my PBIX or gateway?

No. This independent guide reviews Microsoft documentation and real community reports; no private model, gateway or data source has been executed. Use a diagnostic copy and validate the result against your own data contract.

Official Microsoft references and research notes

Reviewed November 22, 2026. Microsoft product UI and service behavior can change. The links below are stronger evidence for supported functions than third-party videos; individual community fixes are clearly labeled as reported outcomes, not Microsoft-endorsed repairs.

  1. Dealing with errors — Power Query (step and cell errors, Keep errors).
  2. Power Query data profiling (quality, distribution and profiling scope).
  3. Data types and using locale.
  4. Common Power Query authoring issues.
  5. Power BI model relationship cardinality.
  6. Query folding examples and folding indicators.
  7. DirectQuery model guidance.
  8. ODBC connector and Access/Excel provider errors.
  9. Power BI refresh troubleshooting and refresh data overview.

More useful Power BI troubleshooting

UltimateInfoGuide — Practical Technology. Clear Answers. Useful Tools. Videos are click-to-load and optional; the written fixes, actual community reports and Microsoft documentation remain available without them. No production report, personal data or user file is uploaded to this page.
Scroll to Top