{"record":{"id":"d718f59fe85fe8ba","repo":"apache/dolphinscheduler","slug":"alert-group-not-exist","errorCode":"ALERT_GROUP_NOT_EXIST","errorMessage":"ALERT_GROUP_NOT_EXIST","messagePattern":"ALERT_GROUP_NOT_EXIST","errorType":"error_code","errorClass":"ServiceException","httpStatus":null,"severity":"error","filePath":"dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/AlertGroupServiceImpl.java","lineNumber":98,"sourceCode":"\n    /**\n     * query alert group by id\n     *\n     * @param loginUser login user\n     * @param id        alert group id\n     * @return one alert group\n     */\n    @Override\n    public AlertGroup queryAlertGroupById(User loginUser, Integer id) {\n\n        // only admin can operate\n        if (!canOperatorPermissions(loginUser, new Object[]{id}, AuthorizationType.ALERT_GROUP, ALERT_GROUP_VIEW)) {\n            throw new ServiceException(Status.USER_NO_OPERATION_PERM);\n        }\n        // check if exist\n        AlertGroup alertGroup = alertGroupDao.queryById(id);\n        if (alertGroup == null) {\n            throw new ServiceException(Status.ALERT_GROUP_NOT_EXIST, id);\n        }\n        return alertGroup;\n    }\n\n    /**\n     * paging query alarm group list\n     *\n     * @param loginUser login user\n     * @param searchVal search value\n     * @param pageNo    page number\n     * @param pageSize  page size\n     * @return alert group list page\n     */\n    @Override\n    public PageInfo<AlertGroup> listPaging(User loginUser, String searchVal, Integer pageNo, Integer pageSize) {\n        Page<AlertGroup> page = new Page<>(pageNo, pageSize);\n        if (loginUser.getUserType().equals(UserType.ADMIN_USER)) {\n            IPage<AlertGroup> alertGroupIPage = alertGroupDao.queryAlertGroupPage(page, searchVal);","sourceCodeStart":80,"sourceCodeEnd":116,"githubUrl":"https://github.com/apache/dolphinscheduler/blob/02eac45a1b6676e639fcbfb4be2243de5771b05d/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/AlertGroupServiceImpl.java#L80-L116","documentation":"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.","triggerScenarios":"Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/AlertGroupServiceImpl.java:98 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"02eac45a1b6676e639fcbfb4be2243de5771b05d","analyzedAt":"2026-09-06T17:43:00.555Z","contentChangedAt":"2026-09-06T17:43:00.555Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}