Forum Discussion
Column Matches
- 6 years ago
Hi HasanK
Sure, its because I forgot to mention a rather imported thing, the function is using one of the columns in the columns mapping table, to fix the error you can rename the column names or adjust the function.
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Hi HasanK
Please see the attached with a solution, it can be set as per below.
You can create an extra table with all the possible column names and translations, in the attached example table name is columnsMapping.
Create a function that will check names in the given file against your mapping table and rename the column accordingly, in my example the function name is renameColumns and it's applied as a step in the data table, but if you work with folders that could be adjusted to a column and invoked as "Invoke Custom Function" that way you could expand all columns together without extra step to append.
let me know if anything isn't clear.
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
Hi Mariusz ,
Thanks for sharing, this is my first experience, I am rookie... I have got an error,
An error occurred in the ‘’ query. Expression.Error: The field 'find' of the record wasn't found.
Details:
Find=Disty
Replace=01_Disty
- Mariusz6 years agoCommunity Champion
Hi HasanK
Sure, its because I forgot to mention a rather imported thing, the function is using one of the columns in the columns mapping table, to fix the error you can rename the column names or adjust the function.
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn