Forum Discussion
DataSource.Error: Microsoft SQL: Error handling external file: 'Invalid: Parquet file size is 0 byte
I think I know why this was happening
When Notebook writes the Parquet files, e.g. using the line:
1. Original Gen2 Dataflow (80%)
2. Notebook Pyspark (for the remaining 20% - it's super quick!, only 30 seconds - a short time on complex steps)
3. Delete the _SUCCESS file only (before the Copy Activity)
4. A Copy Activitiy to pick up the Parquet files from the Files space, and destination as a Delta Table in Lake House (here I can actually set the name of Delta Table as UPPER CASE - which is what I wanted)
5. A Delete file steps to delete the temporary Parque files that the Notebook loaded into the File space
Not ideal, but its a workaround for me! SPARK should really support UPPER CASE table names.
- ajarora3 years agoMicrosoft Employee
You can exclude the SUCCESS file during copy, by using wild card to specify the files to be copied. Something like this:
If you used "file path" option, there too if you specify the "file format" as parquet, it shouldnt have copied the success file. If that happens, it looks like a bug, please let me know if that was the case.
- st_09993 years agoHelper II
Thank you. I will try it. It never occured to me to use a WildCard Copy.