Microsoft Graph 中的工作簿和图表 Api 的错误代码Error codes for Workbooks and charts APIs in Microsoft Graph

本文介绍当通过 API 发送的请求失败时,由 Microsoft Graph 中的工作簿和图表 Api 返回的错误代码。This article describes error codes that are returned by the Workbooks and charts APIs in Microsoft Graph when a request sent through the API fails. 有关 Microsoft Graph 中的错误响应和资源类型的更多详细信息,请参阅错误For more details about error responses and resource types in Microsoft Graph, see Errors.

错误代码Error code

下表列出了当前错误代码和消息。The following table lists the current error codes and messages. 服务可能会在任何时候添加新的错误代码。The service might add new error codes at any time.

代码Code 消息Message
accessDeniedaccessDenied 调用方没有执行该操作的权限。The caller doesn't have permission to perform the action.
冲突conflict 当前状态与请求预期的状态的冲突。The current state conflicts with what the request expects.
gatewayTimeoutgatewayTimeout 作为代理的服务器不会及时收到来自上游服务器的响应,因此无法完成该请求。The server, while acting as a proxy, did not receive a timely response from the upstream server in order to complete the request.
internalServerErrorinternalServerError 处理请求时出现内部服务器错误。An internal server error occurred while processing the request.
invalidRequestinvalidRequest 该请求格式有误或不正确。The request is malformed or incorrect.
methodNotAllowedmethodNotAllowed 请求中的 HTTP 方法在资源上不允许。The HTTP method in the request is not allowed on the resource.
notImplementednotImplemented 所请求的功能未实现。The requested feature isn’t implemented.
requestSizeExceededrequestSizeExceeded 请求的大小超出最大限制。The request size exceeds the maximum limit.
resourceNotFoundresourceNotFound 找不到资源。The resource could not be found.
serviceUnavailableserviceUnavailable 服务不可用。The service is not available. 请再次尝试你的请求。Please try your request again.
tooManyRequeststooManyRequests 应用或用户已被限制。The app or user has been throttled.
unauthenticatedunauthenticated 调用方未进行身份验证。The caller is not authenticated.

详细错误代码Detailed error code

以下是你的应用可能会在第一级嵌套对象中遇到的一些其他错误 innerErrorThe following are some additional errors that your app might encounter within the first level of nested innerError objects. 服务可能会在任何时候添加新的错误代码。The service might add new error codes at any time.

代码Code 消息Message
accessConflictaccessConflict 请求失败,因为与正在访问工作簿的其他客户端发生冲突。The request failed due to conflicts with other clients that are accessing the workbook.
accessDeniedaccessDenied 无法执行所请求的操作。You cannot perform the requested operation.
badRequestUncategorizedbadRequestUncategorized 该请求格式有误或不正确。The request is malformed or incorrect.
conflictUncategorizedconflictUncategorized 当前状态与请求预期的状态的冲突。The current state conflicts with what the request expects.
filteredRangeConflictfilteredRangeConflict 操作失败,因为它与筛选的区域冲突。The operation failed because it conflicts with a filtered range.
forbiddenUncategorizedforbiddenUncategorized 不允许该请求。The request is not allowed.
gatewayTimeoutUncategorizedgatewayTimeoutUncategorized 服务无法在时间限制内完成请求。The service wasn’t able to complete the request within the time limit.
generalExceptiongeneralException 处理请求时出现内部错误。There was an internal error while processing the request.
insertDeleteConflictinsertDeleteConflict 尝试的插入或删除操作导致冲突。The insert or delete operation attempted resulted in a conflict.
internalServerErrorUncategorizedinternalServerErrorUncategorized 发生未指定错误。An unspecified error has occurred.
invalidArgumentinvalidArgument 自变量无效、缺少或格式不正确。The argument is invalid or missing or has an incorrect format.
invalidReferenceinvalidReference 此引用对于当前操作无效。This reference is not valid for the current operation.
invalidSessionAccessConflictinvalidSessionAccessConflict 由于与正在访问工作簿的其他客户端发生冲突,请求中指定的会话无效。The session specified in the request is invalid due to conflicts with other clients that are accessing the workbook.
invalidSessionAuthenticationinvalidSessionAuthentication 由于身份验证错误,请求中指定的会话无效。The session specified in the request is invalid due to an authentication error.
invalidSessionNotFoundinvalidSessionNotFound 请求中指定的会话无效,因为找不到工作簿。The session specified in the request is invalid because the workbook can’t be found.
invalidSessionReCreatableinvalidSessionReCreatable 请求中指定的会话不存在或因暂时性错误而无效。The session specified in the request does not exist or is invalid due to a transient error.
invalidSessionRestrictedinvalidSessionRestricted 由于服务配置或限制,在请求中指定的会话无效。The session specified in the request is invalid due to service configurations or restrictions.
invalidSessionUnexpectedinvalidSessionUnexpected 由于意外问题,请求中指定的会话无效。The session specified in the request is invalid due to an unexpected issue.
invalidSessionUnsupportedWorkbookinvalidSessionUnsupportedWorkbook 请求中指定的会话无效,因为工作簿包含不受支持的功能或超出了大小限制。The session specified in the request is invalid because the workbook contains unsupported features or exceeds the size limit.
itemAlreadyExistsitemAlreadyExists 所创建的资源已存在。The resource being created already exists.
itemNotFounditemNotFound 所请求的资源不存在。The requested resource doesn't exist.
methodNotAllowedmethodNotAllowed 该资源上不允许请求中指定的 HTTP 方法。The HTTP method specified in the request is not allowed on the resource.
methodNotAllowedUncategorizedmethodNotAllowedUncategorized 该资源上不允许请求中指定的 HTTP 方法。The HTTP method specified in the request is not allowed on the resource.
nonBlankCellOffSheetnonBlankCellOffSheet 无法插入新单元格,因为它会将非空单元格推送到工作表的末尾。Can't insert new cells because it would push non-empty cells off the end of the worksheet.
notFoundUncategorizednotFoundUncategorized 找不到请求的资源。The requested resource cannot be found.
notImplementedUncategorizednotImplementedUncategorized 当前未实现请求的功能。The requested feature is not currently implemented.
payloadTooLargeUncategorizedpayloadTooLargeUncategorized 请求负载超过了大小限制。The request payload exceeds the size limit.
rangeExceedsLimitrangeExceedsLimit 范围中的单元格计数已超过支持的最大数量。The cell count in range has exceeded the maximum supported number.
requestAbortedrequestAborted 请求在运行时已中止。The request was aborted during run time.
serviceUnavailableUncategorizedserviceUnavailableUncategorized 服务暂时不可用或已重载。The service is temporarily unavailable or is overloaded. 请再次尝试你的请求。Please try your request again.
tooManyRequestsUncategorizedtooManyRequestsUncategorized 已限制客户端应用程序或用户。The client app or user has been throttled. 请再次尝试你的请求。Please try your request again.
transientFailuretransientFailure 由于暂时性错误,请求失败。The request failed due to a transient error. 请再次尝试你的请求。Please try your request again.
unauthorizedUncategorizedunauthorizedUncategorized 资源所需的身份验证信息缺少或无效。Required authentication information for the resource is either missing or invalid.
unsupportedOperationunsupportedOperation 不支持正在尝试的操作。The operation being attempted is not supported.
unsupportedWorkbookunsupportedWorkbook 请求失败。The request failed. 工作簿包含不受支持的功能,或超出大小限制。The workbook contains unsupported features or exceeds the size limit.

注意:****InnerError对象可能以递归方式包含更深的innerError对象,具有更多的更具体的错误代码。Note: The innerError object might recursively contain more deeper innerError objects with additional, more specific error codes. 为使开发人员能够阅读这些更深层的innerError代码 intented。These deeper innerError codes are intented for the developer to read.