---
title: "Update Amplia Reg from 3.x to 4.0"
description: "Steps to update on-premises Amplia Reg from 3.x to 4.0: update to version 4.0.7 and run migrate-data, plus a pre-update check for Brazil."
canonical: "https://docs.lacunasoftware.com/en-us/articles/amplia-reg/on-premises/update-40"
locale: "en"
product: "Amplia Reg"
last_updated: "2026-07-14"
---

# Update Amplia Reg from 3.x to 4.0

## 1. Before updating (Brazil only)

This command checks if reverse geolocation validation is enabled in order to set the IBGE validation code in previous orders. If you want to enable this behavior, make sure to activate the configuration before migrating the data, and ensure that Google Maps is properly configured.

## 2. Update Amplia Reg

Update AmpliaRegNg to version `4.0.7`. Previous versions should **not** be used. Further versions are **not** recommended.

## 3. Migrate data

Follow steps from [migrate-data](https://docs.lacunasoftware.com/en-us/articles/amplia-reg/on-premises/tool/migrate-data) with version `4.0.7` and options `--to 2`.

On Linux:

```sh
dotnet Lacuna.AmpliaRegNg.Site.dll -- migrate-data --to 2
```

On Docker:

```sh
docker run -i lacunasoftware/ampliareg:4.0.7 -- migrate-data --to 2
```

Make sure you follow the steps described on the aforementioned article to ensure no errors occurred during the data migration.
