Hi A K,
Welcome to Microsoft Q&A Forum, thank you for posting your query here!
The issue you’re encountering with the output files being split into multiple parts is likely due to the default partitioning behavior in your data flow. To ensure that your output files retain their original names and are not partitioned:
1.Disable Partitioning in Data Flow:
- In your data flow, go to the Sink transformation.
- Under the Settings tab, look for the Partitioning section.
- Set the Partitioning option to Single partition. This will ensure that the data is not split into multiple files.
2.Set Output File Names:
- In the Sink transformation, under the Settings tab, you can specify the output file name.
- Use the data flow parameter filenameparam to set the output file name. You can do this by setting the Output to single file option and then using the expression @concat(filenameparam, '.json') to name the file.
3.Ensure Consistent File Naming:
- Make sure that the filenameparam is correctly passed from the ForEach activity to the Data Flow.
- In the ForEach activity, ensure that the Items property is set to @activity('Get Metadata1').output.childItems.
- Inside the ForEach activity, in the Data Flow activity, map the parameter filenameparam to @item().name.
Brief steps:
- Disable Partitioning: Set the partitioning option to single partition in the Sink transformation.
- Set Output File Names: Use the filenameparam to set the output file name in the Sink transformation.
- Ensure Parameter Mapping: Ensure the filenameparam is correctly mapped in the For Each activity.
By following these steps, you should be able to output the transformed data into 60 files with the same names as the original files, without the unwanted partitioning
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you,