Overview
This article explains the cause of the following error while attempting to import a tenant.yaml file was exported from a different Auth0 tenant, which prevents the import from completing:
- error: Problem running command import during stage processChanges when processing type migrations
- error: Payload validation error: “Additional properties not allowed: legacy_mfa_phone_provider, legacy_passwordless_phone_provider on property flags”.
NOTE: The tenant.yaml file is a configuration file used in the Auth0 Deploy CLI to define various settings and resources for an Auth0 tenant.
The following deprecation notice was also generated in the export logs on the tenant side that is exporting:
“Allows use of legacy MFA phone provider: This feature is being deprecated. Please see details.feature of this log for more information.”
Applies To
- Import tenant.yaml File
- Export Tenant Configuration
- Import Tenant Configuration
- Import Tenant Error
- Auth0 Deploy CLI
Cause
This issue is caused by the presence of the “migrations” section in the tenant.yaml file. This section was configured to handle the migration of the legacy_mfa_phone_provider and legacy_passwordless_phone_provider properties.
Solution
Specify “migrations” in AUTH0_EXCLUDED in the config.json file during export, so that it is excluded from the tenant.yaml file.