# Account Migration Error
source: https://developer.mastercard.com/open-finance-au/documentation/errors/institutionerrors/accounts-not-migrated/index.md

These errors occur when accounts cannot be migrated from legacy to OAuth connections.

## 20007 {#20007}

|           Title           |                                                                                                                                     Details                                                                                                                                     |
|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Error Code**            | 20007                                                                                                                                                                                                                                                                           |
| **Remediation Category**  |                                                                                                                                                                                                                                                                                 |
| **HTTP Status**           | 409                                                                                                                                                                                                                                                                             |
| **Data Connect Alert**    | No associated alert.                                                                                                                                                                                                                                                            |
| **Error Message**         | Accounts for the `institutionLoginId` in the request are not allowed to migrate to new institution.​​                                                                                                                                                                           |
| **Common Causes**         | This error occurs when there's an attempt to migrate accounts from the current financial institution (legacy connection) to an OAuth connection for the same financial institution. This could occur if migration is not permitted for the accounts or institution in question. |
| **Troubleshooting Steps** | Ensure you are using the correct `institutionLoginId` when calling the [Migrate Institution Login Accounts](https://developer.mastercard.com/open-finance-au/documentation/api-reference/index.md#MigrateInstitutionLoginAccounts) endpoint.                                    |
| **Retriable by End User** | No.                                                                                                                                                                                                                                                                             |
| **Access to Latest Data** | You will be unable to access the latest data for this user's account until the end user resolves the issue.                                                                                                                                                                     |

[Full Error List](https://developer.mastercard.com/open-finance-au/documentation/errors/error-list/index.md)

## 20009 {#20009}

|           Title           |                                                                                                                                     Details                                                                                                                                     |
|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Error Code**            | 20009                                                                                                                                                                                                                                                                           |
| **Remediation Category**  |                                                                                                                                                                                                                                                                                 |
| **HTTP Status**           | 500                                                                                                                                                                                                                                                                             |
| **Data Connect Alert**    | No associated alert.                                                                                                                                                                                                                                                            |
| **Error Message**         | Accounts could not be migrated​.                                                                                                                                                                                                                                                |
| **Common Causes**         | This error occurs when there's an attempt to migrate accounts from the current financial institution (legacy connection) to an OAuth connection for the same financial institution. This could occur if migration is not permitted for the accounts or institution in question. |
| **Troubleshooting Steps** | Ensure you are using the correct `institutionLoginId` when calling the [Migrate Institution Login Accounts](https://developer.mastercard.com/open-finance-au/documentation/api-reference/index.md#MigrateInstitutionLoginAccounts) endpoint.                                    |
| **Retriable by End User** | No.                                                                                                                                                                                                                                                                             |
| **Access to Latest Data** | You will be unable to access the latest data for this user's account until the end user resolves the issue.                                                                                                                                                                     |

[Full Error List](https://developer.mastercard.com/open-finance-au/documentation/errors/error-list/index.md)
