Make sure you escape line feeds with \n. The actual string parameter you pass should have a literal \n (2 characters in it).
The dataflow DSL script does not accept strings with line feeds unless escaped.
Parsing Error
Puneet Kumar
1
Reputation point
Hello experts,
- I am reading txt files (which has sql queries) and concatenating it to a array variable.
- Then I convert it back to a string variable using the following expression
@replace(replace(join(variables('sql_query'),' '), '\n', ' '), '\r', ' ') - Then I pass this variable to a Mapping Data Flow
- But it fails there telling me that there's Parsing error.
I have tried all the expressions from different links but nothing seems to work out.
Please advise, Thanks a lot in advance...
1 answer
Sort by: Most helpful
-
Kiran-MSFT 691 Reputation points Microsoft Employee
2021-02-04T05:52:12.56+00:00