# Bulk changes: reviewing a program and following background jobs

> How to review the Lueira Agent's bulk changes card without reading code: the before-and-after table, the warnings, the changes left out, the second confirmation and how to follow the job in the background.

## When the agent uses bulk changes

For one or a few changes, the Lueira Agent prepares a normal card. When it has to touch **many rows at once** (changing the prices of a whole list, creating dozens of products or orders from a spreadsheet, adjusting calendars…), it uses a **bulk changes** card.

The agent analyses your file (or what you type in the chat) with a small helper program and turns it into a **closed list of changes**. You review that list, and only when you press confirm is it applied, in the background. The program is **not run again** when you confirm: exactly what you reviewed is applied.

Bulk changes can create and edit items in your account: customers and customer groups, shop and rental products and variants, bundles, brands, categories, seasons, partners, instructors, expenses, add-ons and add-on groups, and orders as drafts. **They cannot delete anything**, nor confirm, send or charge orders.

This guide explains how to review it without reading any code. If you have not read how a card works in general, start with [Making changes with the agent: the confirmation card](lueira-guide:adb4d3e1-2b0c-4694-b1c8-d0b4a8234ea8?locale=en).

## What you see on the card

The card ("Changes proposed by Lueira Agent") has, from top to bottom:

1. **The source**: "file · 240 rows · 238 planned changes", or "From your chat message · 3 planned changes". And the note "Prepared by an AI on your behalf from … with an AI-generated program."
2. **The counts**: **Rows read**, **Rows without a change**, **Will be applied**, **Already exist** (already in Lueira, skipped) and **With errors** (will not be applied).
3. **The summary** (**Summary of the changes**): how many change and how many do not, how many go up and down, the maximum increase and decrease in % and how many are a **large change**.
4. **The before-and-after table**: press **Show the details of the changes**. Each row shows the **Item**, the **Field**, **Before → after** and the **Change**. New items are marked "New". You can filter with **All**, **Large changes**, **Increases** and **Decreases**, and by type of change with **Filter by operation**. Press **Show more changes** to load more.
5. **Warnings** and **Changes left out** (explained below).
6. **The comparison date**: "Compared with your account on …". Anything that changes before applying will not be touched, and you will be told which.

When a change depends on another (for example, a new order with its lines), the card says so: "Depends on item 3", "New customer from item 5". You can jump to the item with "Go to item 3".

## How to review it well

1. **Start with the summary.** Is the number of changes what you expected? Does the maximum increase or decrease make sense? A "max. 400 %" on a 5 % price increase signals a problem.
2. **Filter by "Large changes".** These are the ones far from the current value. Each row carries the "Large change" tag. Check them one by one.
3. **Take a random sample** of the table and compare it with your original file: 5 or 10 rows from different parts of the file. If a column is wrong, the error usually repeats in all of them.
4. **Check a total** if you have one: the "Will be applied" count against the number of rows in your file.
5. **Read all the warnings.** Even if they are applied, some point to doubtful data.
6. **Look at "Changes left out".** These are rows the agent could not prepare and will not be applied.

💡 If something does not add up, do not confirm: ask the agent to correct the card ("the prices include VAT", "ignore sheet 2"). It prepares a new one.

## Warnings and changes left out

Under **Warnings** the card marks doubtful data that will be applied anyway, so you can decide whether it suits you. Some examples:

- "Possible duplicate: created anyway"
- "Date order inferred, with no unambiguous case"
- "Currency assumed: your account's"
- "Invalid email: it will not be saved"
- "Unverified phone: saved as is"
- "Value too long: it is shortened"
- "Full name hard to split" and "First and last name may be swapped"
- "Reference that does not exist in your catalogue"
- "The current value no longer matches the one in the review"

Under **Changes left out** are those that **will not be applied**: "They will not be applied. Ask Lueira Agent to fix the program." The reasons can be, for example: "Invalid change data", "The item to modify does not exist", "Your role does not allow this change", "Change repeated in the program" or "Type of change Lueira Agent cannot make yet".

If there are too many changes or too many errors, the card is blocked: "That is too many changes at once. Split the file into several." or "Too many changes have errors. Fix the file and attach it again."

## Confirming: the box and the second confirmation

To confirm you have to tick the box: "I confirm that I have reviewed the changes and that my company may process this data and apply it to my Lueira account." (If you typed the data in the chat: "The data I typed is correct and I may enter it.") Then press **Confirm and apply N changes**.

A batch accepts up to 5,000 changes (25 if you type them directly in the chat, without a file).

If the change is large, a **Confirm again** window appears. It tells you why:

- "That is a lot of changes at once."
- "Some changes are very large compared with the current value."
- "A significant part of the file has errors and will not be applied."

Tick "I have reviewed the table and I want to apply these N changes." and press **Apply the changes**, or **Go back and review** to return to the card.

Before applying, Lueira compares again with your account. If something changed since the review ("The data changed after the review was prepared"), press **Compare again** or ask the agent to prepare the changes again. The review also expires, up to 48 hours after it is prepared (and the original file after 24 hours): "The review has expired and nothing was changed. Attach the file again to prepare it once more."

## Background jobs: follow, stop and resume

After you confirm, the changes are applied in the background. The card goes through "Queued", "Applying changes… 40 of 238." and finishes. **You do not need to keep the window open**: we notify you in the notifications when it is done.

Under the chat the **Background jobs** strip appears (with "Show jobs" and "Hide jobs"). It lists the jobs of the conversation, with their type ("Bulk changes" or "Customer import"), their status (**Queued**, **Running**, **Stopping**, **Completed**, **Failed** or **Stopped**) and their progress. Press **Go to card** to jump to it.

- **Stop**: "Stop applying? The changes already made stay and you can resume later." Confirm with **Yes, stop** or carry on with **Keep applying**. The change in progress is finished.
- **Resume**: on a stopped card press **Resume**. What remains will be applied on your behalf.

Only one batch of changes is applied at a time: "A batch of changes is already in progress; wait for it to finish."

## The result and the report

When it finishes, the card tells you what happened with each change:

- **Applied**: done.
- **Already existed**: already in Lueira; not touched.
- **Changed before applying**: that value changed after your review. It is not touched and you are told ("Nothing was touched in them").
- **Failed**: could not be applied. Each gives the reason ("No permission", "The item no longer exists", "Exceeds your plan's limit", "Conflicts with other data"…).
- **Not applied**: those left undone because you stopped it.

You will also see a notification: "Changes applied: 230 done, 3 not applied because they changed, 5 failed."

Press **Download report (CSV)** to see the result row by row. The report depends on the original file, which expires: "The report is no longer available: the original file has expired."

## "View the program" (optional)

If you are curious about how the agent prepared the changes, press **View the program**. A read-only window opens ("Lueira Agent's program") with the program that read your file and prepared the changes, with a button to copy it.

You do not need to understand it to review. What matters is the before-and-after table, which is what will be applied. And remember: **the program is not run again when you confirm**.

## Undo

**Bulk changes have no Undo button and no screen to restore them in one go.** Before applying, the card shows the before and after value of each change. After applying, the card explains it like this: "The previous values of whatever was modified have been kept for about 90 days. There is no button to restore them: if you need that, contact the Lueira team as soon as possible." (They are not kept, for example, for what was newly created or for calendars and availability that are overwritten.)

And about whatever was created: "Whatever was created can be found by batch (reference …) in the admin and deleted from there. Lueira Agent does not undo or delete anything."

So review carefully before confirming. If you need help going back on a batch, write to us as soon as possible from **Support → Talk to us** and tell us the date and the file: the sooner you do, the easier it is to recover the previous values.

For changes that can be undone (for example, a bulk price change prepared with a confirmation card) see [Deleting, money and things that can't be undone: how the agent protects you](lueira-guide:a26cca99-c021-47d3-accc-2290843943e8?locale=en).

## What to do if…

- **"The data changed after the review was prepared.":** press **Compare again** or ask the agent to prepare the changes again.
- **"The review has expired and nothing was changed.":** attach the file again, or ask the agent again if you typed it in the chat.
- **"Tick the confirmation box to continue.":** tick the box above the button.
- **"You need to confirm again before applying.":** use the "Confirm again" window.
- **"Your role does not allow these changes. Ask an administrator.":** your role has no permission for those changes.
- **"This type of change cannot be made from the chat yet.":** that type of change is not available with the agent. Do it from the relevant screen.
- **"Lueira Agent cannot make changes right now." or "Lueira Agent's changes are switched off at the moment.":** try again later. Meanwhile you can follow progress and stop a job, but not confirm or resume it.
- **"Not all the changes could be applied: …":** see which items failed and why, download the report and ask the agent to prepare the missing ones.
- **It stopped halfway and I don't want to continue:** leave it stopped; the changes already made stay.

If none of this solves your case, write to us from **Support → Talk to us** and include a screenshot.

## Related guides

- [Making changes with the agent: the confirmation card](lueira-guide:adb4d3e1-2b0c-4694-b1c8-d0b4a8234ea8?locale=en)
- [Importing customers and files with the agent](lueira-guide:04a30668-07fb-48fd-a338-0e1d4b01da88?locale=en)
- [Updating prices and your catalogue with the agent (spreadsheet, PDF or photo)](lueira-guide:43f7faaf-0bff-49fa-bb14-8a00a621b009?locale=en)
- [Deleting, money and things that can't be undone: how the agent protects you](lueira-guide:a26cca99-c021-47d3-accc-2290843943e8?locale=en)
- [Troubleshooting: the agent doesn't appear, doesn't answer or stops](lueira-guide:a1d0fc5a-12b8-4bcb-88b5-e190d2e8651b?locale=en)

Source: https://help.lueira.com/en/articles/lueira-agent-cambios-en-bloque-y-trabajos-en-segundo-plano
