{"record":{"id":"ff7958d90df7b9f4","repo":"apache/dolphinscheduler","slug":"datestr","errorCode":null,"errorMessage":"dateStr: [","messagePattern":"dateStr: \\[","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/BaseServiceImpl.java","lineNumber":138,"sourceCode":"        if (!StringUtils.isEmpty(startDateStr)) {\n            start = DateUtils.stringToDate(startDateStr);\n            if (Objects.isNull(start)) {\n                log.warn(\"Parameter startDateStr is invalid.\");\n                throw new ServiceException(Status.REQUEST_PARAMS_NOT_VALID_ERROR, Constants.START_END_DATE);\n            }\n        }\n        return start;\n    }\n\n    @Override\n    public boolean checkDescriptionLength(String description) {\n        return description != null && description.codePointCount(0, description.length()) > 255;\n    }\n\n    protected Date transformDate(String dateStr) {\n        Date date = DateUtils.stringToDate(dateStr);\n        if (date == null) {\n            throw new IllegalArgumentException(\"dateStr: [\" + dateStr + \"] is invalid\");\n        }\n        return date;\n    }\n}\n","sourceCodeStart":120,"sourceCodeEnd":143,"githubUrl":"https://github.com/apache/dolphinscheduler/blob/02eac45a1b6676e639fcbfb4be2243de5771b05d/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/BaseServiceImpl.java#L120-L143","documentation":"Thrown in transformDate when DateUtils.stringToDate cannot convert the given dateStr into a Date (returns null). It is a parse-failure guard: the caller passed a date string that is not in a recognized format, so the API layer rejects it as an invalid request parameter.","triggerScenarios":"Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/BaseServiceImpl.java:138 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass the date string in the format DolphinScheduler expects, e.g. yyyy-MM-dd HH:mm:ss.","Validate/normalize the date input on the client before sending the request.","Check for timezone suffixes or locale-specific formats that the parser cannot handle."],"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"}