When you write data to flat files in Microsoft Fabric OneLake, the mapping fails with the following error: Caused by: java.io.IOException: Failed to rename VersionedFileStatus{VersionedFileStatus
To resolve this issue, perform the following steps:
1Under Spark Session Properties, click Add and select spark.custom.property in the Session Property Name field.
2In the Session Property Value field, specify the following property and set its value to DIRECT:
infaspark.flatfile.writer.committer.name
For example, infaspark.flatfile.writer.committer.name=DIRECT