Ingesting data with pipelines

By Hatnest · Reviewed by Saurav Raj Joshi · Updated Nov 30, 2026

A Fabric pipeline is a workflow of activities. For ingestion, the star is the Copy activity, which reads from a source, handles serialization, compression, column mapping and type conversion, and writes to a destination, with run logs and metrics for troubleshooting. This article covers when to use it, how to set it up, and what to wrap around it.

Pick the right movement tool first

Fabric has four ways to bring data in. The decision guide leans on the medallion layers.

  • Mirroring for curated, gold-level operational data when you simply want a continuously replicated, read-only copy. It is free and has minimal setup.
  • Copy job for raw (bronze) ingestion. It has native full, incremental (watermark) and CDC modes, scheduling, and table and column management, with no pipeline to build.
  • Copy activity in a pipeline when you need orchestration: parameterized, metadata-driven ingestion, custom logic around the copy, or several steps. You manage state for incremental loads yourself.
  • Eventstreams for real-time event data.

A Copy job can also run inside a pipeline through the Copy job activity.

Building a copy

You can start from the Copy assistant (source, destination, mapping, review) or add the Copy activity directly to the canvas and fill in its tabs. A connection holds credentials for each store. One Copy activity can use only a single on-premises data gateway; to move data between on-premises systems behind different gateways, land it in a cloud store first, then copy again with the other gateway.

Lakehouse destination

Copy writes tables in V-order by default. The table action is Append (add rows), Overwrite (replace data and schema) or Upsert (update rows that match on the key columns, insert the rest). You can enable partitioning on the target by one or more columns. When reading from a lakehouse table, an optional dynamic range partition enables parallel reads on an integer column.

Warehouse destination

The COPY statement is the main load path and reads directly from Azure Blob Storage and ADLS Gen2 when the source format qualifies. If the source or format is not directly compatible, turn on staged copy: the service converts data through interim storage and then runs COPY. A pre-copy script can clean the target before loading.

Activities around the copy

  • Control flow: ForEach (loop over tables or files), If condition, Switch, Until, Wait, Set variable, Append variable, Fail, Invoke pipeline.
  • Data helpers: Lookup (read a value or list), Get metadata, Filter, Script, Stored procedure, Delete data.
  • Transformation: Dataflow Gen2, Fabric notebook, Spark job definition.
  • Lakehouse maintenance and Refresh SQL analytics endpoint activities for housekeeping after loads.

A common metadata-driven pattern is Lookup (list of tables) then ForEach containing a parameterized Copy.

Reliability

Most activities support retries. In the General tab, enable retries, set the count (1 to 1000, default 1), and pick the interval: Fixed (default 30 seconds) or Increasing Delay, which backs off exponentially for longer outages. You can also deactivate an activity, for instance to stop retry storms against a failing source.

Starting a pipeline

A run starts three ways: on demand, on a schedule (start and end dates, frequency, time zone), or from event triggers such as new files arriving in a data lake.

Lookup(table list) -> ForEach -> Copy(source=@item().name, sink=lakehouse, Append)
                              -> on fail: Fail / notify

Common mistakes

  • Building a custom pipeline when a Copy job or mirroring already meets the need.
  • Using Append for a reloadable full extract, then getting duplicates; use Overwrite or an incremental design.
  • Copying between two on-premises sources that need different gateways in one activity.
  • Retrying a non-transient failure many times against a fragile source.

For the exam

  • Mirroring for simple replication, Copy job for bronze ingestion and incremental, pipeline Copy for orchestrated and parameterized loads, eventstream for streaming.
  • Lakehouse sink: Append, Overwrite or Upsert; warehouse sink uses COPY, with staged copy as fallback.
  • Retries: 1 to 1000, Fixed or Increasing Delay.
  • Triggers: on demand, schedule, event-based.
  • Lookup plus ForEach is the standard metadata-driven pattern.

Sources