apache/dolphinscheduler · error · ServiceException
ALERT_GROUP_NOT_EXIST
ALERT_GROUP_NOT_EXIST
Error message
ALERT_GROUP_NOT_EXIST
What it means
Thrown by queryAlertGroupById after the permission check passes but alertGroupDao.queryById(id) returns null: no alert group exists with the given id. It is an existence check preventing a null object from being returned to the caller.
Source
Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/AlertGroupServiceImpl.java:98
/**
* query alert group by id
*
* @param loginUser login user
* @param id alert group id
* @return one alert group
*/
@Override
public AlertGroup queryAlertGroupById(User loginUser, Integer id) {
// only admin can operate
if (!canOperatorPermissions(loginUser, new Object[]{id}, AuthorizationType.ALERT_GROUP, ALERT_GROUP_VIEW)) {
throw new ServiceException(Status.USER_NO_OPERATION_PERM);
}
// check if exist
AlertGroup alertGroup = alertGroupDao.queryById(id);
if (alertGroup == null) {
throw new ServiceException(Status.ALERT_GROUP_NOT_EXIST, id);
}
return alertGroup;
}
/**
* paging query alarm group list
*
* @param loginUser login user
* @param searchVal search value
* @param pageNo page number
* @param pageSize page size
* @return alert group list page
*/
@Override
public PageInfo<AlertGroup> listPaging(User loginUser, String searchVal, Integer pageNo, Integer pageSize) {
Page<AlertGroup> page = new Page<>(pageNo, pageSize);
if (loginUser.getUserType().equals(UserType.ADMIN_USER)) {
IPage<AlertGroup> alertGroupIPage = alertGroupDao.queryAlertGroupPage(page, searchVal);View on GitHub (pinned to 02eac45a1b)
Solutions
- Confirm the alert group id; it may have been deleted by another user.
- Refresh the alert group list to see currently existing groups.
- If the group is needed, create a new alert group with the desired configuration.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/AlertGroupServiceImpl.java:98 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/dolphinscheduler@02eac45a1b (2026-09-06).
Data as JSON: /api/errors/d718f59fe85fe8ba.
Report an issue: GitHub.