Hello all,
We are using Synapse Link to export Dynamics CRM data to ADLS Gen2. The CRM entities are exported in CSV format in CDM folders. They don't have headers. The records are splitted into multiple CSV files. I am not sure if all of the CSVs for the same entity follow same table structure & they have all the columns given in the model.json file.
There is also a subfolder called "Snapshot" . I am not sure whether we should include it into our external table location definition. If we shouldn't, I am not sure how to exclude it.
When I try to query , I receive below error. I need to confirm whether my external fileformat is appropriate for reading data from CDM folders
Msg 107090, Level 16, State 1, Line 1
HdfsBridge::recordReaderFillBuffer - Unexpected error encountered filling record reader buffer: HadoopExecutionException: No closing string delimiter.
Completion time: 2022-07-17T13:33:46.6246351+03:00
CREATE EXTERNAL FILE FORMAT [CDMCSVFileFormat] WITH
(FORMAT_TYPE = DELIMITEDTEXT, FORMAT_OPTIONS (
FIELD_TERMINATOR = N',',
STRING_DELIMITER = N'"',
FIRST_ROW = 1,
USE_TYPE_DEFAULT = False))
Thanks Mehmet Başerdem