powered by simpleCommunicator - 2.0.53     © 2025 Programmizd 02
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Ошибка во всех заданиях агента
4 сообщений из 4, страница 1 из 1
Ошибка во всех заданиях агента
    #39988899
L_argo
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Предистория: был рабочий сервер в ДЦ. Потом его отключили. Прошло время. Решили опять включить и продолжить с ним работать.
Свиду сервер работал ОК. Джобы выполнялись (бекапы).
Вчера отресторили свежие базы.
Сегодня не работает ниодин джоб. Дает ошибку:
ОшибкаMessage
Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility Version 12.0.6024.0 for 64-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 9:37:16 Error: 2020-08-12 09:37:17.37 Code: 0xC002F210 Source: {60116182-0FEB-4495-8E12-2A64209730C4} Execute SQL Task Description: Executing the query "DECLARE @Guid UNIQUEIDENTIFIER EXECUTE msdb..sp..." failed with the following error: "The INSERT statement conflicted with the FOREIGN KEY constraint "FK_sysmaintplan_log_subplan_id". The conflict occurred in database "msdb", table "dbo.sysmaintplan_subplans", column 'subplan_id'. The statement has been terminated.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. End Error Warning: 2020-08-12 09:37:17.37 Code: 0x80019002 Source: OnPreExecute Description: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. End Warning Error: 2020-08-12 09:37:17.74 Code: 0xC0024104 Source: Back Up Database (Transaction Log) Description: The Execute method on the task returned error code 0x80131501 (An exception occurred while executing a Transact-SQL statement or batch.). The Execute method must succeed, and indicate the result using an "out" parameter. End Error Error: 2020-08-12 09:37:17.79 Code: 0xC0024104 Source: {B9AD530F-5427-4B08-8633-EFB64CFDF24C} Description: The Execute method on the task returned error code 0x80131501 (An exception occurred while executing a Transact-SQL statement or batch.). The Execute method must succeed, and indicate the result using an "out" parameter. End Error Warning: 2020-08-12 09:37:17.79 Code: 0x80019002 Source: OnPostExecute Description: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. End Warning DTExec: The package execution returned DTSER_FAILURE (1). Started: 9:37:16 Finished: 9:37:17 Elapsed: 0.875 seconds. The package execution failed. The step failed.
Удалить джоб тоже не дает. Дает похожую ошибку.

Админы с сервером ничего не делали. MSSQL2014
...
Рейтинг: 0 / 0
Ошибка во всех заданиях агента
    #39988913
Гавриленко Сергей Алексеевич
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
У вас все джобы -- Maintenance Plan?
...
Рейтинг: 0 / 0
Ошибка во всех заданиях агента
    #39988924
L_argo
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Гавриленко Сергей Алексеевич
У вас все джобы -- Maintenance Plan?
Да.

При удалении конкретного Maintenance Plan-а ошибок не дает, но его степ остается с списке джобов агента.

При попытке удалить степ:
авторTITLE: Microsoft SQL Server Management Studio
------------------------------

Drop failed for Job 'BackupLog.Subplan_1'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft SQL Server&ProdVer=12.0.6024.0 ((SQL14_PCU_Main).180907-0056)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Drop Job&LinkId=20476

The DELETE statement conflicted with the REFERENCE constraint "FK_subplan_job_id". The conflict occurred in database "msdb", table "dbo.sysmaintplan_subplans", column 'job_id'.
The statement has been terminated. (Microsoft SQL Server, Error: 547)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft SQL Server&ProdVer=12.00.6024&EvtSrc=MSSQLServer&EvtID=547&LinkId=20476
Допустим это из-за того, что удалился его соответствующий Maintenance Plan. Но как такое могло получиться ?

Попытка пересоздать МП с тем же именем степа дает ошибку сохранения, т.к. такой степ уже есть.
Хотя переименование степа позволяет сохранить МП, но все равно проблема с выполнениями МП.
...
Рейтинг: 0 / 0
Ошибка во всех заданиях агента
    #39988980
L_argo
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Выяснилось, что делали манипуляции с вводом в домен.
И где надо поправить ? )
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Ошибка во всех заданиях агента
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]