Power BI
Troubleshooting

Error fetching data for this visual

2min

If you encounter an error message titled "Error fetching data for this visual" with the text:

Invalid column name 'Field name'.. The exception was raised by the iDbCommand interface.

this usually indicates that a field or column has been renamed, deleted, or otherwise modified in one of your storage tables in the Aimplan Portal. Power BI is attempting to reference the original field name, causing a mismatch in the data model.

Why this Error Occurs

Power BI stores metadata about the data structure it connects to. When a field (like "Field name") in the underlying database or table is altered, Power BI does not automatically update these references, resulting in the error.

Steps to Resolve

  1. Refresh the Data Model Start by refreshing the data model in Power BI. In many cases, a simple refresh will update field references, resolving the issue.
  2. If the Error Persists, Add a Temporary Step If the error remains after refreshing, add a temporary step in Power Query:
    • Go to Transform Data in Power BI to open the Power Query Editor.
    • Select the affected table.
    • Add a new applied step, such as a simple filter on an existing field. For instance, filter by a specific value in any column.
    • Click Apply to refresh the model with this new step. This can trigger Power BI to recognize updates in the schema.
    • Document image
      
  3. Remove the Temporary Step
    • Once the model updates successfully, go back to Transform Data and remove the temporary filter step.
    • Click Close & Apply to save the changes.
  4. Verify All Dependencies Ensure that all reports, calculations, and relationships using the modified column are updated and do not contain references to the old field name.

By following these steps, Power BI should recognize the structural changes and resolve the invalid column error.

This process should ensure that Power BI correctly synchronizes with the updated data structure and eliminates the error message.