Forum Discussion

Micgig's avatar
Micgig
Frequent Visitor
4 years ago
Solved

'Input string was not in a correct format' when importing using MySQL database connector

Dear all,   hope you are well. Wish to thank you in advance for the help. I have been trying to import a few tables from a database hosted on Alibaba cloud/AnalyticDB/MySQL instance, using the MyS...
  • v-zhangti's avatar
    v-zhangti
    4 years ago

    Hi, Micgig 

     

    Maybe it has something to do with the "Chengdu - Pmia" field in your table.

    - + $ ( ) Display a literal character. To display a character other than one of those listed, precede it with a backslash () or enclose it in double quotation marks (" ").

     

    The most important thing is that the "-" is for characters in numeric format. You can try replacing this string before connecting.

     

    Please refer to the following document for character formatting requirements.

    https://docs.microsoft.com/power-bi/create-reports/desktop-custom-format-strings 

     

    Best Regards,

    Community Support Team _Charlotte

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