---
title: "Operations: How to Update ETL"
url: "https://docs.ravendb.net/6.2/client-api/operations/maintenance/etl/update-etl"
version: "6.2"
language: "java"
---

# Operations: How to Update ETL

> Client language: Java. Also available for [C#](https://docs.ravendb.net/6.2/client-api/operations/maintenance/etl/update-etl.md).
>
> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

You can modify ETL task by using **UpdateEtlOperation**.

## Syntax

```java
public UpdateEtlOperation(long taskId, EtlConfiguration<T> configuration);
```

| Parameters | | |
| - | - | - |
| **taskId** | Long | Current ETL task ID |
| **configuration** | `EtlConfiguration<T>` | ETL configuration where `T` is connection string type |

## Example

```java
//store.maintenance().send(new AddEtlOperation<RavenConnectionString>(...));

RavenEtlConfiguration etlConfiguration = new RavenEtlConfiguration();
etlConfiguration.setConnectionStringName("raven-connection-string-name");
etlConfiguration.setName("Employees ETL");
Transformation transformation = new Transformation();
transformation.setName("Script #1");
transformation.setCollections(Arrays.asList("Employees"));
transformation.setScript("loadToEmployees ({\n" +
  "                        Name: this.FirstName + ' ' + this.LastName,\n" +
  "                            Title: this.Title\n" +
  "                    });");

etlConfiguration.setTransforms(Arrays.asList(transformation));

UpdateEtlOperation<RavenConnectionString> operation = new UpdateEtlOperation<>(
  addEtlResult.getTaskId(), etlConfiguration);
UpdateEtlOperationResult result = store.maintenance().send(operation);
```

## See also

- [Basics](https://docs.ravendb.net/6.2/server/ongoing-tasks/etl/basics.md)
- [RavenDB ETL](https://docs.ravendb.net/6.2/server/ongoing-tasks/etl/raven.md)
- [SQL ETL](https://docs.ravendb.net/6.2/server/ongoing-tasks/etl/sql.md)
- [RavenDB ETL Task](https://docs.ravendb.net/6.2/studio/database/tasks/ongoing-tasks/ravendb-etl-task.md)
