Share via

Bacpac fails with error SQL71501

SQL_Dabbler 1 Reputation point
2021-05-11T10:39:30.827+00:00

Hi

I have been trying to backup an Azure SQL database. The size is precariously close to the Standard Tier limit of 1TB. I have been trying to backup to BLOB storage, but get the following error after only a minute.

One or more unsupported elements were found in the schema used as part of a data package.
Error SQL71501: Error validating element [jobs].[job_versions]: View: [jobs].[job_versions] 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: [jobs_internal].[job_versions].[job_version_number], [jobs_internal].[job_versions].[jv] or [jobs_internal].[visible_jobs].[jv].

Is this a BLOB Storage size issue? Also the error is referring to views which are system created and not ones that I have implemented

Azure SQL Database
Azure Blob Storage
Azure Blob Storage

An Azure service that stores unstructured data in the cloud as blobs.


1 answer

Sort by: Most helpful
  1. Alberto Morillo 35,506 Reputation points MVP Volunteer Moderator
    2021-05-11T22:22:36.647+00:00

    It seems to me you are making reference to SQL Server jobs or Elastic Jobs inside that database. It seems you make reference to them to know the status or results of scheduled job executions from inside that database. Please examine the programming objects and views making reference to those jobs and remove those references.

    Examine a view or object named [jobs].[job_versions]. To create a bacpac you need to eliminate external references (to objects not stored in this database)

    NOTE ADDED Dec 14, 2021:
    On Azure DevOps you may receive this error SQL71501 if the builds are targeting Azure SQL Database but they use a feature like File Table that is not supported on Azure SQL. Changing the target to SQL Server (if Production servers are SQL Server instances) can solve the issue.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.