My Source is the following JSON:
{
"stores": "test"
}
My Data Flow Script is the following:
source(output(
stores as string
),
allowSchemaDrift: true,
validateSchema: false,
ignoreNoFilesFound: false,
documentForm: 'singleDocument') ~> source1
When I run the data preview, I get the following error:
Error:
DF-DSL-001 DSL stream has parsing errors
Line 2 Position 2: no viable alternative at input 'output(\n\t\tstores' - RunId: 2f5e92eb-1d00-4b1e-ab1e-d56822f3d8aa
If I change the JSON field name to "store", and modify the data flow script accordingly, there is no issue.
I assume stores is a reserved word? I have tried escaping with backticks or single/double quotes but these are not accepted as valid scripts.