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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / dataflow sqlserver num...
Power Apps
Answered

dataflow sqlserver number format error

(0) ShareShare
ReportReport
Posted on by 18

i am trying to create a dataflow from a sql server table through on premises gateway to a CDS table.

 

everything works if a table has text data only but if I have a numeric field the import is not successful. an example of error from CSV file is:

 

}","{""error"":{""code"":""0x80044330"",""message"":""A validation error occurred for crf40_fielddashboard3.crf40_cc_field_perc. The value 2.29708417551787E+16 of type System.Double is outside the valid range(0 to 1000000000).""}}"

 

seems that there is a number format issue as the value of this record is 0,229 (italian format with comma separating decimals). i tried to fix using transformations but seems the root cause is on the data import. anyone knows how to solve it?

I have the same question (0)
  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    HI @muratorin ,

    Did you validate the definition of your field in the Dataverse?  You should make sure that you have a Decimal Number type defined for the field you are importing into.  Also a link that might be helpful if you don't have (https://docs.microsoft.com/en-us/powerapps/maker/data-platform/add-data-power-query

     

    Hope this helps.


    Thanks,

     

    Drew

  • muratorin Profile Picture
    18 on at

    Thanks for your reply. I followed all the steps in the link you sent. However is not clear to me what is the validation you mentioned. Can you explain with an example or a link to an article?

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @muratorin,

     

    What I mean is the column definition for your data in your Dataverse table should be set as a Decimal Number type.  

    See this article for creating custom tables in Dataverse (https://docs.microsoft.com/en-us/powerapps/maker/data-platform/data-platform-create-entity).

     

    Thanks much,


    Drew

  • muratorin Profile Picture
    18 on at

    It is decimal, that is the reason why the error occur. The error message means that a source number like 2,3456789 (two with 7 decimals) is seen as 23456789 and with more decimals it overflows. Seems that the international formats are not understood. 

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    HI @muratorin ,

     

    Some thoughts here...

    1.  In your PowerQuery configuration, do you have your regional settings set to Italian?  

    Query-Options-Window.jpg

    2. Make sure your formats are setup correctly in the Dataverse environment as well.   

    Screen Shot 2021-02-28 at 6.37.32 AM.png

     

    Hope this helps, sorry if not...

     

    Thanks,


    Drew

  • muratorin Profile Picture
    18 on at

    I cannot find the screen in point 1, how can i reach it? I strongly suppose it's the issue..

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    I just setup a dataflow for testing this and went into the Project Options (in Options from menu) and you will see the Locale.  

    Screen Shot 2021-02-28 at 7.07.20 AM.png

    Please let me know if this helps.  


    Thanks,

    Drew

     

  • muratorin Profile Picture
    18 on at

    Hi Drew

     

    unfortunately it's already in italian 😞

     

    2021-02-28 16_05_46-Window.png

     

    i've also checked the system settings, it's italian as well..

     

    2021-02-28 16_08_29-Window.png

     

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Bummer.  

     

    Can you verify the integration user you are utilizing, personal options, to verify that that user is setup in Power Apps as Italian as well?  This is the last thing I can thing of to check...

    https://docs.microsoft.com/en-us/powerapps/user/set-personal-options 

     

    Thanks,


    Drew

  • Verified answer
    muratorin Profile Picture
    18 on at

    solved! 

     

    Root cause was that I designed a flow AND creating the data table. this had nothing to do with international settings 😞

    The table generated was creating, for the numeric fields, a 'floating point number' field (sorry that my interface is italian but it's locked by my organization) with minimum value 0 and maximum 10.000.000.000:

     

    2021-03-01 12_13_27-Power Apps.png

    this was blocking the import. instead, i deleted all these columns and replaced with 'decimal' fields:

     

    2021-03-01 12_14_05-.png

     

    and it worked! 🙂

     

    Now, the question are:

    - why the automatic table generator creates datatypes that are not working for the dataflow with arbitrary limits? 

    - why having this error message that made me losing one weekend and led to wrong path? I had to be really creative to find another root cause..

     

    And as an old style (C++/Java) programmer, i still don't understand the difference between those two datatypes...

     

    https://docs.microsoft.com/en-us/powerapps/maker/data-platform/types-of-fields#using-the-right-type-of-number

     

    "When choosing the correct type of number column to use, the choice to use a Whole Number or Currency type should be straightforward. The choice between using Floating Point or Decimal numbers requires more thought.

    Decimal numbers are stored in the database exactly as specified. Floating point numbers store an extremely close approximation of the value. Why choose extremely close approximation when you can have the exact value? The answer is that you get different system performance.

    Use decimals when you need to provide reports that require very accurate calculations, or if you typically use queries that look for values that are equal or not equal to another value.

    Use floating point numbers when you store data that represents fractions or values that you will typically query comparing to another value using greater than or less than operators. In most cases, the difference between decimal and float isn’t noticeable. Unless you require the most accurate possible calculations, floating point numbers should work for you."

     

    Anyway, thanks for your help!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard