web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dataflow cannot cast d...
Power Apps
Suggested Answer

Dataflow cannot cast double to decimal

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I'm quite an error in a previously working dataflow that is absolutely vexing.

 

"There is a data type mismatch between the dataflow's source query column and the destination table column. The Dataverse cr434_transaction table's cr434_value column requires DecimalType data type but the dataflow contained Double data type that cannot be casted to DecimalType data type."

 

I'm not doing anything fancy, just combining multiple excel sheets in the dataflow with the goal of having everything recorded in a single table. I'm using an alternative key to ensure unique values. For the life of me I can't figure out why I'm getting this error.

  • I've double and triple checked that the datatype for all sources in the table is decimal and that they match the column datatype in dataverse.
  • I tried this with and without locales formatting
  • I then tried removing individual tables 1 by 1 to find the culprit and whichever table (or combination of tables) I use i get the same  error
  • I can't use the currency datatype as my "cr434_value" column is  part of the alternate key and that only works with decimals figures.

Is it my table that's broken?

 

Worst of all there isn't even a type called double in power query (Data types in Power Query - Power Query | Microsoft Learn),

 

I'm at my wits end. If it were a small table then I'd honestly just rebuild it, but this is an integral transaction table that already holds ~0.5M rows. and that's linked with a bunch of other tables.

 

Any advice is most appreciated!


Thank you

  • BenKraft Profile Picture
    218 on at
    If it's any consolation, it looks like this issue is still present. The most aggravating thing is that this is not an issue in other flows with seemingly identical scenarios (Dataflow decimal number going to Dataverse decimal number). Maybe the dataflow behind the scenes formats the number differently based on how many significant digits there are?
  • Suggested answer
    M Bilal Khan Profile Picture
    1,172 on at

    I don't think the Dataverse table is necessarily broken. The important part of the error is that the final dataflow query is being sent as Double, regardless of what the Excel columns appear to be.

    Power Query has numeric types such as Decimal Number, while the underlying Mashup/Dataflow engine can represent numeric values as a Double. That's why the error can mention Double even though you don't see "Double" in the Power Query data type menu.

    I'd check the type at the very last step before the Dataverse destination, rather than only checking the individual Excel queries.

    Try adding an explicit type conversion as the final transformation:

    Table.TransformColumnTypes(
        PreviousStep,
        {{"cr434_value", type number}}
    )
    

    If that still produces the same error, try explicitly using the fixed decimal type:

    Table.TransformColumnTypes(
        PreviousStep,
        {{"cr434_value", Currency.Type}}
    )
    

    However, because your Dataverse column is part of an alternate key, I would not change the Dataverse column to Currency just to get the dataflow working.

    I'd also temporarily remove/disable the automatic Changed Type steps in the individual Excel queries and apply the type conversion after the final Append/Combine step. With multiple Excel sources, one query can cause the combined column to be inferred differently.

    So the structure would be roughly:

    Excel queries
       ↓
    Normalize column names/types
       ↓
    Append/Combine
       ↓
    Explicitly set cr434_value type
       ↓
    Dataverse
    

    Since this was previously working, another useful test is to open the dataflow's Power Query/M script and compare the final query with an older working version if you have one. A change in schema/type inference can cause exactly this kind of failure without any obvious change to the Excel data.

    Also, the fact that removing individual source tables doesn't change the error points more toward the final combined query/type conversion or destination schema than one particular Excel file.

    I would avoid rebuilding the 500k-row Dataverse table until you've isolated the type being produced by the final query.

  • Suggested answer
    11manish Profile Picture
    6,456 Super User 2026 Season 2 on at
    Dataverse table is very unlikely to be “broken.” Diagnose and correct the dataflow's final schema/mapping first.

    Because the dataflow previously worked, and changing/removing individual Excel sources doesn't change the error, I would focus on:

    final query schema → dataflow destination mapping → Dataverse connector metadata

    rather than the Excel files.

    And do not change Decimal to Currency just to bypass the error. Your use of cr434_value in the alternate key is a valid reason to retain the
     
    Decimal design.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard