{"record":{"id":"a07ef26f448613be","repo":"alibaba/nacos","slug":"20002-a07ef2","errorCode":"20002","errorMessage":"invalid dataId : {}","messagePattern":"invalid dataId : (.+?)","errorType":"validation","errorClass":"NacosApiException","httpStatus":400,"severity":"error","filePath":"config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java","lineNumber":87,"sourceCode":"        return true;\n    }\n    \n    private static boolean isValidChar(char ch) {\n        for (char c : validChars) {\n            if (c == ch) {\n                return true;\n            }\n        }\n        return false;\n    }\n    \n    /**\n     * Check the parameter for [v1] and [v2].\n     */\n    public static void checkParam(String dataId, String group, String datumId, String content)\n        throws NacosException {\n        if (StringUtils.isBlank(dataId) || !isValid(dataId.trim())) {\n            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(),\n                ErrorCode.PARAMETER_VALIDATE_ERROR,\n                \"invalid dataId : \" + dataId);\n        } else if (StringUtils.isBlank(group) || !isValid(group)) {\n            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(),\n                ErrorCode.PARAMETER_VALIDATE_ERROR,\n                \"invalid group : \" + group);\n        } else if (StringUtils.isBlank(datumId) || !isValid(datumId)) {\n            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(),\n                ErrorCode.PARAMETER_VALIDATE_ERROR,\n                \"invalid datumId : \" + datumId);\n        } else if (StringUtils.isBlank(content)) {\n            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(),\n                ErrorCode.PARAMETER_VALIDATE_ERROR,\n                \"content is blank : \" + content);\n        } else if (content.length() > PropertyUtil.getMaxContent()) {\n            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(),\n                ErrorCode.PARAMETER_VALIDATE_ERROR,\n                \"invalid content, over \" + PropertyUtil.getMaxContent());","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java#L69-L105","documentation":"Error \"invalid dataId : {}\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java:87 when the library encounters an invalid state.","commonSituations":"A config request used a dataId containing illegal characters.","solutions":["Correct the invalid value for invalid dataId to match the expected format or allowed set, then retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b989acdf181d00898f2e8839257bb2b2a3cefe3","analyzedAt":"2026-08-14T07:17:31.569Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}