Welcome to the Microsoft Q&A forum.
It seems like you're dealing with a complex data integration task. Here's a step-by-step approach to dynamically construct and process your datasets in Dataflow:
Here's a more detailed breakdown of the steps:
Step 1: Read the Control File
- Use a Lookup activity to read the control file and store the result in a dataset.
Step 2: Parse the Control File
- In the Data Flow activity, use a Source transformation to read the control file dataset.
- Use a Derived Column transformation to split the
FILENAMEandROWScolumns.
Step 3: Filter Files by Type
- Use a Conditional Split transformation to create two streams: one for files starting with
providersand one for files starting withnetwork.
Step 4: ForEach Activity
- Use a ForEach activity to iterate over the list of files in each stream.
Step 5: Copy Activity
- Inside the ForEach activity, use a Copy Data activity to copy each file to its respective dataset.
Step 6: Union Activity
- Use a Union transformation to combine all the provider files into a single dataset and all the network files into another dataset.
Step 7: Sink to Destination
- Use a Sink transformation to write the combined datasets to your desired destination.
I hope the above steps will resolve the issue, please do let us know if issue persists. Thank you