> For the complete documentation index, see [llms.txt](https://docs.gaiodataos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gaiodataos.com/gaio-dataos-spanish/herramientas/tareas/etl/actualizacion.md).

# Actualización

<figure><img src="/files/EboLkTVWKf9C4AaDpUQq" alt=""><figcaption></figcaption></figure>

La tarea **Update** en Gaio DataOS permite modificar registros existentes en una tabla basándose en condiciones de filtro personalizadas. Es ideal para corregir datos, aplicar reglas de transformación o sincronizar valores dinámicamente durante flujos ETL.

{% hint style="warning" %}
**Importante:** Esta tarea solo puede utilizarse cuando una tabla está seleccionada en el flujo. Asegúrate de agregar y conectar una **Table** antes de configurar la actualización.
{% endhint %}

***

### Cómo usar

#### 1. Insertar y seleccionar un bloque de tabla

Agrega una **Table** a tu flujo y selecciona el conjunto de datos con el que deseas trabajar.\
La tarea **Update** solo estará disponible una vez que se haya seleccionado una tabla.

***

#### 2. Abrir la tarea Update

En el menú lateral izquierdo, ve a: **Tasks > ETL > Update**

***

#### 3. Configurar información básica

* **Task label:** (opcional) Agrega un nombre para identificar la tarea en tu flujo.
* **Table:** La tabla debe estar automáticamente vinculada desde el bloque seleccionado (ej.: `new_sales`).

***

#### 4. Seleccionar columnas a actualizar

En la sección **Columns**, elige los campos que deseas actualizar.\
Para cada columna seleccionada, define:

* **Type:** Define cómo se establecerá el nuevo valor:
  * **Value:** Entrada estática.
  * **Parameter:** Usa una variable previamente definida.
  * **Computed:** Acepta fórmulas (ej.: `now()`, `1 + 1`).
* **Value:** Ingresa el nuevo valor o expresión.

***

#### 5. Definir condiciones de filtro

En la sección **Filters**, especifica qué registros deben actualizarse.\
Configura uno o más filtros según sea necesario.

| Campo    | Descripción                                             |
| -------- | ------------------------------------------------------- |
| Column   | Selecciona la columna por la cual filtrar               |
| Type     | Tipo de entrada (ej.: `Value`, `Parameter`)             |
| Operator | Lógica de comparación (ej.: `Equal to`, `Greater than`) |
| Value    | El valor a comparar                                     |

**Ejemplo:**\
Actualizar `order_date` solo donde `order_id = 1001`.

{% hint style="warning" %}
Si no se definen filtros, todas las filas de la tabla serán actualizadas.
{% endhint %}

***

#### 6. Ejecutar o guardar

* **Run:** Ejecuta la actualización inmediatamente (una sola vez).
* **Save:** Guarda la configuración en tu flujo de datos.
* **Save and Run:** Guarda y ejecuta la actualización al mismo tiempo.

***

### Casos de uso

* Corregir valores desactualizados o incorrectos.
* Aplicar reglas de estandarización (ej.: reemplazar valores vacíos).
* Utilizar entradas dinámicas mediante parámetros.
* Actualizar timestamps o estados durante flujos automatizados.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gaiodataos.com/gaio-dataos-spanish/herramientas/tareas/etl/actualizacion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
