Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to change data type to deicmal when using power query write data to dataverse

Hi,

I'm trying to write a table to Dataverse using power query.

My table has the "Value" column which is very large number (up to 100 billion).

On the ETL process, I set the "Value" 's data type as Decimal number.

 

Then on this window, its set to floating type and doesn't allow me to change back.

 

I tried to run that dataflow and got this error message

 

I tried create the destination table before run the flow, set the "Value" data type as Decimal (on dataverse), then re-run the flow but still got the same error.

 

Any advises? 😄

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous - it appears that to need to change your PowerApps (dataverse) table. The target column is set in INT.  This needs to be changed to BIG INT to accept larger numbers.  If this still doesn't work, the column will need to be set to TEXT.  Please note again, this change needs to be made on the Dataverse table not in the Power Query data type.

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous - rather than "Decimal Number" (per the first image) is the Data Type option for "Fixed Decimal Number" available.  This will force the Power Query to use Currency.Type, and this might make Dataverse treat the column as Decimal or Money Type instead of Floating (I know it seems illogical).  However, I would suggest using Whole Number data type if the numbers are larger than 100,000,000,000

     

    Column data types in Microsoft Dataverse (contains video) - Power Apps | Microsoft Learn

    Data Type Size Limits 

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks you for ur response, i tried to using Whole Number data type...

       

       

      but got this error T_T''

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous - it appears that to need to change your PowerApps (dataverse) table. The target column is set in INT.  This needs to be changed to BIG INT to accept larger numbers.  If this still doesn't work, the column will need to be set to TEXT.  Please note again, this change needs to be made on the Dataverse table not in the Power Query data type.