# OH-Migrator-0002

## Description

When you encounter OH-Migrator-0002, then following error message will appear:

The following error occurred while executing this line: `<lines>`

OH-Migrator-0002: Upgradation failed.

For upgradation logs, please refer Migration.log file located at `<installation path\AppData\logs>`\
To restore the application to the previous state \[i.e. the state before upgradation], please restore the application folder and database backup that was taken before the upgrade started.

## Cause

This error occurs when the migration process fails to complete successfully.

## Solution

Following are the steps to recover from the failure, actual solution will be provided by <code class="expression">space.vars.SITENAME</code> support team.

**Send error details to** <code class="expression">space.vars.SITENAME</code> **Support**

These error details will be needed by support team to investigate the failure and provide solution.

1. Copy the data from <code class="expression">space.vars.SITENAME</code> installation folder to another location.
2. Share Migration.log file with <code class="expression">space.vars.SITENAME</code> support. This file will be located at `<installation_path>/logs` folder.

**Restore the application to earlier state**

Since the migration has failed, <code class="expression">space.vars.SITENAME</code> may not be in proper state to function. If you want to restore\
the previous state of the application till the solution is provided, follow the steps mentioned in section [How to Restore](/opstech-docs/manage/upgrade-index/taking-application-backup.md#how-to-restore).


---

# Agent Instructions: 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://opstech.gitbook.io/opstech-docs/help-center-index/troubleshooting-index/errors-index/migrator-error-solutions/oh-migrator-0002.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.
