Share via

Can't Export Database since this database was made a Job Database for Elastic Jobs Agent.

Alex Stephens 6 Reputation points
2021-10-11T14:12:32.853+00:00

getting this error every time i try to export the DB:
One or more unsupported elements were found in the schema used as part of a data package.
Error SQL71501: Error validating element [jobs_internal].[visible_targets_formatted]: View: [jobs_internal].[visible_targets_formatted] 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].[database_credentials].[C], [jobs_internal].[database_credentials].[name] or [jobs_internal].[targets].

I have now uninstalled the elastic jobs agent but still getting this error, seems to have left loads of tables lying around in the db

I am on PAYG with no support plan, how do i go about fixing this mess that Azure has created?

Azure SQL Database

2 answers

Sort by: Most helpful
  1. Ahmed Samy Mahmoud 21 Reputation points Microsoft Employee
    2021-12-06T16:48:24.763+00:00

    Hi @Alex Stephens

    Welcome to Microsoft Q&A and thanks for your query.

    This export error seems to be related to a known issue wherein automated export doesn’t handle databases where elastic jobs were configured. You can create a database copy using
    https://learn.microsoft.com/en-us/azure/azure-sql/database/database-copy?tabs=azure-powershell

    Then, remove the elastic job related objects "jobs_internal.*" from the copied database, Export the database and then you can delete the copied database.
    SQL DB Product team already aware about this limitation and working on improvement.

    Please keep us updated on how it goes.

    Thank you!

    Was this answer helpful?


  2. Alex Stephens 6 Reputation points
    2021-11-04T12:24:51.383+00:00

    Still have the same issue, still unable to backup any SQL db.

    Anyone able to help?

    Was this answer helpful?


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.