apache/dolphinscheduler · error · ServiceException
10001
10001
Error message
request parameter {0} is not valid What it means
Thrown by checkAndParseDateParameters, a generic validation helper in BaseServiceImpl, when a supplied date string cannot be parsed by DateUtils.stringToDate. The faulting input is the date parameter named by {0} (e.g., startDateStr or endDateStr) — it is empty, malformed, or in the wrong format.
Source
Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/BaseServiceImpl.java:124
public boolean canOperatorPermissions(User user, Object[] ids, AuthorizationType type, String permissionKey) {
boolean operationPermissionCheck =
resourcePermissionCheckService.operationPermissionCheck(type, user.getId(), permissionKey, log);
boolean resourcePermissionCheck = resourcePermissionCheckService.resourcePermissionCheck(type, ids,
user.getUserType().equals(UserType.ADMIN_USER) ? 0 : user.getId(), log);
return operationPermissionCheck && resourcePermissionCheck;
}
/**
* check and parse date parameters
*/
@Override
public Date checkAndParseDateParameters(String startDateStr) throws ServiceException {
Date start = null;
if (!StringUtils.isEmpty(startDateStr)) {
start = DateUtils.stringToDate(startDateStr);
if (Objects.isNull(start)) {
log.warn("Parameter startDateStr is invalid.");
throw new ServiceException(Status.REQUEST_PARAMS_NOT_VALID_ERROR, Constants.START_END_DATE);
}
}
return start;
}
@Override
public boolean checkDescriptionLength(String description) {
return description != null && description.codePointCount(0, description.length()) > 255;
}
protected Date transformDate(String dateStr) {
Date date = DateUtils.stringToDate(dateStr);
if (date == null) {
throw new IllegalArgumentException("dateStr: [" + dateStr + "] is invalid");
}
return date;
}
}View on GitHub (pinned to 02eac45a1b)
Solutions
- Supply the date in the expected format (yyyy-MM-dd HH:mm:ss).
- Ensure the parameter is not empty if it is required.
- Remove stray whitespace or invalid characters from the date string.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/BaseServiceImpl.java:124 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/aa4df7d6b7a3ae22.
Report an issue: GitHub.