We are trying to migrate Azure SQL DBs from one tenant to the another tenant. We used below approaches but in all we are failing.
We are getting below error -
One or more unsupported elements were found in the schema used as part of a data package.
Error SQL71501: Error validating element [DM].[#######]: View: [DM].[#######] contains an unresolved reference to an object. Either the object does not exist or the reference is ambiguous because it could refer to any of the following objects: [DM].[#######].[#######], [DM].[#######].[#######], [DM].[#######].[#######], [DM].[#######].[#######] or [DM].[#######].[#######].
Approaches we have used -
- Using Azure portal we performed Export operation on our source location.
- We performed Tasks->Export data in SSMS, only data is migrated, the Primary key and constraints also didn't migrate with the table structure
- Performed Export Data-tier application approach in SSMS, but getting same error message.
- Used PowerShell, but getting same error message.
- Generated script in SSMS and ran it on destination DB with exclusion of the problematic views. Schemas and all the tables got created but no data found in the tables. Also tried to recreate excluded views in the destination server but getting some errors.
In all above approaches we are getting the same error.