When I first tried to import the file without any modification, I got this error: "Evaluating expression for path 'CashBalanceAmount'. Can't cast ... - to real" This error refers to the hyphen at the last line
To resolve this error, initially I think of 2 options:
1. Manually add an ending bracket } after the hyphen - on the last line of the import file to make it looks similar to Microsoft sample file.
So I derive the model mapping, then edit the formula
From
TRIM(FIRST(SPLIT(FIRST(SPLIT(FIRST(REVERSE(SPLIT(REPLACE(@.VALUE, "(\r\n|\r|\n):62.:", "?:62:", true), "?:62:"))).VALUE, ":")).VALUE, "-}")).VALUE)
To
TRIM(FIRST(SPLIT(FIRST(SPLIT(FIRST(REVERSE(SPLIT(REPLACE(@.VALUE, "(\r\n|\r|\n):62.:", "?:62:", true), "?:62:"))).VALUE, ":")).VALUE, "-")).VALUE)
Both of these 2 methods are working, and the 2nd method is preferred as it doesn't require user manual edit before importing.
So, the task is basically achievable for now. However, I'm thinking of a scenario where I not only need to remove characters from the file, but also need to add more characters, for example, an opening curly bracket { at the start of the file.
Is it possible to achieve that within ER? If yes, could you please give me some basic examples?
Thank you so much in advance!