Forum Discussion

Bi2thelly's avatar
Bi2thelly
Helper II
1 year ago
Solved

Tabular Editor 2 Error Occured during deployment: Type mismatch

Hi, I keep receiving the following error when trying to deploy my model to a workspace using Tabular Editor 2. I use this method because my current file is too big and exceeds the upload limit (Tabular Editor version 2.25.0; Power Bi version 2.137.1102.0 64-bit (October 2024)).

 

Just recently I started receiving this error Error occured during deployment: Type mismatch and it names three columns where the Datatype conversions have failed for the table "Datatype conversion fialed for [Table:"

 

I have checked Power Query datatypes and Tabular Editor datatypes and they match for those fields. Any idea on how to resolve this issue?

 

  • Ritaf1983 thank you for the information. Unfortunately, I didn't see a notification that you responded in order to apply to advice. What I eventually ended up doing is duplicating the columns in question and deleting the original columns and the error was resolved.

2 Replies

  • Hi Bi2thelly 

    The "Type mismatch" error in Tabular Editor typically indicates that there's a discrepancy between the data types in Power BI and the data model used by Tabular Editor, even if they seem to match visually. Here are a few steps to troubleshoot and potentially resolve this issue:

    1. Double-check Data Types: Even if the data types appear to match, sometimes a small mismatch can cause this issue. Verify the data types in both Power BI and Tabular Editor. For example:

      • Ensure that Whole Number in Power Query is truly interpreted as Int64 in Tabular Editor.
      • Check if Text fields are fully consistent and ensure no fields have mixed data types.
    2. Reapply Data Types in Power Query: Sometimes reapplying data types in Power Query and refreshing the dataset can fix underlying conversion issues. Select each column with a suspected mismatch, change its data type to something different, then switch it back to the intended type. Refresh and save the model.

    3. Column Names and Spacing: Make sure there are no extra spaces or formatting inconsistencies in the column names. Sometimes spaces or invisible characters can cause issues during deployment.

    4. Use Explicit Data Type Conversion in DAX Calculations: If there are any calculated columns or measures in Tabular Editor that rely on these fields, add explicit type conversion using DAX functions like INT, REAL, BLANK, etc., to ensure the correct data type.

    5. Check Tabular Editor Compatibility: Since you’re using an older version of Tabular Editor (2.25.0), consider updating to the latest version if possible, as some compatibility issues might be resolved in newer versions.

    6. Clear Model Cache: Occasionally, old cache files can cause unexpected errors. Try clearing the cache in Power BI and redeploying the model.

    If none of these steps resolve the issue, you may want to attempt a fresh deployment by saving a new version of the model with minor adjustments and trying again, or using Tabular Editor 3 if you have access to it, as it sometimes handles deployment issues more effectively.

    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

  • Ritaf1983 thank you for the information. Unfortunately, I didn't see a notification that you responded in order to apply to advice. What I eventually ended up doing is duplicating the columns in question and deleting the original columns and the error was resolved.