Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

append queries (mysql)

Hello, 

 

I think I have found an issue with "append queries" with mysql: 

* If I add a new column to the original queries before appending the queries it fails with the following message "

« Erreur OLE DB ou ODBC: [DataSource.Error] MySQL : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'union all select `_`.`server` as `server`, `_`.`nom' at line 37.  ».

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    I am sorry, some errors in my testing, I need to revise my testcase : 

    The issue occurs in "append queries", but it occurs when trying to append 3 tables, I can append 2 different tables but with 3 I get the error. 

     

    GF

     

    • v-yuta-msft's avatar
      v-yuta-msft
      Community Support

      Anonymous ,

       

      This issue seems to be a sql syntax error, are you trying to input sql query in the advanced option when you connect to the mysql? Or you just append tables in query editor after importing the data source? Could you please share more details about what you have done before this issue occurs?

       

      Regards,

      Jimmy Tao

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hello v-yuta-msft 

         

        Thanks for getting back at me. 

        The issue seems related to : https://community.powerbi.com/t5/Desktop/mysql-append-query-error/m-p/376476/highlight/false#M171077 

        I did not input sql query I used the standard function of powerbi. It can be reproduce with the following steps : 

        1) load 3 different tables in powerbi from mysql 

        2) append 2 (any of the 3) tables into a new table -> it works (in query editor and dashboard editor)

        3) append 3 (or more) tables into a new table -> it seems to work in the query editor, when I get back to dashboard editor and try to apply the changes I get the error message mentionned above

         

        I hope it's clear. 

         

        Thank you

        gaful