# 20007
source: https://developer.mastercard.com/open-finance-us/documentation/errors/error-codes/20007/index.md

This error occurs when accounts cannot be migrated from legacy to OAuth connections.

|             Title             |                                                                                                                                     Details                                                                                                                                     |
|-------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Error Code**                | 20007                                                                                                                                                                                                                                                                           |
| **Remediation Category**      | Verify Account or Data State                                                                                                                                                                                                                                                    |
| **HTTP Status**               | 409                                                                                                                                                                                                                                                                             |
| **Error Type**                | Institution Error                                                                                                                                                                                                                                                               |
| **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-us/documentation/api-reference/index.md#MigrateInstitutionLoginAccounts) endpoint.                                    |
| **Data Connect Fix Eligible** | No.                                                                                                                                                                                                                                                                             |
| **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-us/documentation/errors/error-list/index.md) \| [Institution Errors](https://developer.mastercard.com/open-finance-us/documentation/errors/institution-errors/index.md)
