Forum Discussion

monojchakrab's avatar
monojchakrab
Resolver III
3 years ago
Solved

expression error "field-name" already exists while renaming column headers

Hey good people,

I am getting a strange error as captioned above, in the query which was working fine till some time ago.

Here is a table, with a column of tables, in which I am trying to insert a column of the same tables, but with renamed headers :

Table.AddColumn(SourceTables, "Custom", each Table.RenameColumns([Data],RenameHeaders,MissingField.Ignore))

The RenameHeaders is a list of list

The table is as below :

and the field structure in one the tables for illustration is as below :

 

 

Strangely enough I am getting the following error :

 

Am i getting something wrong : most surprisingly the same exact code in another query is not returning any error

ANy help appreciated

regds.,

1 Reply