Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Error when editing column names in Advanced Query Editor

Two columns were added to the source table which have the same names that columns already loaded were changed to. So I went into the Advanced editor and changed the names of the already loaded columns again to be different from the new columns added to the table. The preview showed the new columns added to the table. But then when close and apply, I get an error saying "Something went wrong: An error occurred while rendering the report" with no additional info other than a "Copy details" option and a "Report this issue". What is the problem? Is there something else I need to do in order to change the column names?

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous 

    I don't see any issues with the M code no that you have suffixed the names with "old".

     

    I was in a similar situation and I did create a new connection to the file and on the new connection I replaced the M code shared by you.

     

    Can you give it a try If it doesn't work you have to give the file used in it with only one row and you can replace all the values in that row with test data.

9 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    You need to modify the step which initially changed the name of the two previously added column to the non coinciding name.

     

    If it still doesn't help. Copy the M Code and recreate the table as new. Make sure the steps are corrected as mentioned above.

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous I modified that step by changing the new names to something other than the column names being added. So then in the preview it had both the new columns and the old columns, which is what I am looking for. But then when I close and apply I get that error. 

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous 

        Can you send me the file or the M Code for the same.

  • Anonymous's avatar
    Anonymous
    Not applicable

    HI Anonymous 

    Yep, create a new connection.

     

    you can try the approach of changing the name in datasource itself if it will be consistent for later refreshes.