Forum Discussion

Jher12's avatar
Jher12
Frequent Visitor
7 months ago
Solved

Warning When Attempting to Dynamically Name the Destination File During Export

Hi, I am using a Copy activity to extract data from a Lakehouse table by executing a SQL query in the Source section, and I am exporting the results as a CSV file. When I attempt to dynamically ass...
  • Vinodh247's avatar
    7 months ago

    In Fabric pipelines Copy activity currently does not support building a single dynamic file name directly in the File Name box, because that field expects an object, not a raw string expression. The supported pattern is to write into a dynamically named subfolder and let copy activity create the default file name or use a ForEach with a Set Variable plus a Dataflow/Notebook as the sink to write a fully custom name. If you must control the file name, the practical approach today is to push the naming logic into a Notebook (df.write.csv with your generated name) or into a DataflowGen2 because Copy activity does not yet allow explicit dynamic file naming.

  • deborshi_nag's avatar
    deborshi_nag
    7 months ago

    Hi Jher12 

     

    The File Share sink uses a fixed path, so this won't work. Either use Dataflow Gen2 to write to on-premise or write to OneLake and make files available using OneLake Explorer.