Forum Discussion
Dataflows Gen2 – Import – Mashup - DataFormat Error
- 2 years ago
Thankyou for the suggestion of using keep rows -> keep errors.
All my other tests like importing into Excel did it "right". However DataFlows Gen2 had issues and mised up some columns.
Sharing the information below incase it helps someone else.
I went into the CSV import codeCsv.Document(...)
I changed the Quote Style to QuoteStyle.None and it fixed my issue
documetation
https://learn.microsoft.com/en-us/powerquery-m/csv-document- QuoteStyle: Specifies how quoted line breaks are handled.
- QuoteStyle.Csv (default): Quoted line breaks are treated as part of the data, not as the end of the current row.
- QuoteStyle.None: All line breaks are treated as the end of the current row, even when they occur inside a quoted value.
- QuoteStyle: Specifies how quoted line breaks are handled.
Keep the columns as numerical type. Inside the dataflow editor, try selecting all columns and then select keep rows -> keep errors.
See if any rows are returned. Those rows will contain the error values.
Probably some values in the column which are not formatted properly as number.
Perhaps it contains a wrong decimal symbol or some non-numeric character.
If the error is due to wrong decimal symbol, you can use 'change type using locale', or just use 'replace value' to replace a decimal symbol with another decimal symbol.
If there is some other reason for the error, handle the erroneous data accordingly.
If there are no error rows, then I don't know.