Hello @Jun Hao Goh
Based on the error message you provided, it seems like there is an issue with the file operation when uploading the file to the specified path.
The error message also indicates that the index is out of range, which could be related to the JSON file format. One thing to note is that when copying data from SQL Server to Azure Blob Storage as a JSON file with gzip compression, the data needs to be properly formatted as JSON.
If the table from the lookup activity is actually a view in SQL Server, it's possible that the data is not properly formatted as JSON, which could be causing the issue.
To resolve this issue, you can try the following steps:
- Check the data in the view to ensure that it is properly formatted as JSON. You can use a tool like JSONLint to validate the JSON format.
- If the data is not properly formatted as JSON, you can modify the view in SQL Server to ensure that it outputs properly formatted JSON. You can use the FOR JSON clause in SQL Server to format the data as JSON.
- If the data is properly formatted as JSON, you can try outputting the data as a CSV file instead of a JSON file to see if the pipeline succeeds. If the pipeline succeeds with a CSV file, there may be an issue with the JSON file format.
- If the pipeline still fails with a CSV file, you can try modifying the configurations for your COPY DATA Source and Sink to ensure that they are properly configured. You can refer to the Azure documentation for more information on configuring the COPY DATA activity.
I hope this helps further.
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.