

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Neptune ML Gremlin 推論查詢的例外狀況清單
<a name="machine-learning-gremlin-exceptions"></a>

 這是執行 Neptune ML Gremlin 推論查詢時可能發生的例外狀況完整清單。這些例外狀況涵蓋一系列問題，從指定 IAM 角色或端點的問題，到每個查詢的 ML 推論查詢數量不受支援的 Gremlin 步驟和限制。每個項目都包含描述問題的詳細訊息。
+ **`BadRequestException`** – 無法載入所提供角色的憑證。

  *訊息*：`Unable to load credentials for role: {{the specified IAM Role ARN}}.`
+ **`BadRequestException`**   –   指定的 IAM 角色無權叫用 SageMaker AI 端點。

  *訊息*：`User: {{the specified IAM Role ARN}} is not authorized to perform: sagemaker:InvokeEndpoint on resource: {{the specified endpoint}}.`
+ **`BadRequestException`** – 指定的端點不存在。

  *訊息*：`Endpoint {{the specified endpoint}} not found.`
+ **`InternalFailureException`** – 無法從 Amazon S3 擷取 Neptune ML 即時歸納推論中繼資料。

  *訊息*：`Unable to fetch Neptune ML - Real-Time Inductive Inference metadata from S3. Check the permissions of the S3 bucket or if the Neptune instance can connect to S3.`
+ **`InternalFailureException`** – Neptune ML 無法在 Amazon S3 中找到用於即時歸納推論的中繼資料檔案。

  *訊息*：`Neptune ML cannot find the metadata file for Real-Time Inductive Inference in S3.`
+ **`InvalidParameterException`** – 指定的端點在語法上無效。

  *訊息*：`Invalid endpoint provided for external service query.`
+ **`InvalidParameterException`** – 指定的 SageMaker 執行 IAM 角色 ARN 在語法上無效。

  *訊息*：`Invalid IAM role ARN provided for external service query.`
+ **`InvalidParameterException`** – 在查詢的 `properties()` 步驟中指定多個屬性索引鍵。

  *訊息*：`ML inference queries are currently supported for one property key.`
+ **`InvalidParameterException`** – 在查詢中指定多個邊緣標籤。

  *訊息*：`ML inference are currently supported only with one edge label.`
+ **`InvalidParameterException`** – 在查詢中指定多個頂點標籤限制條件。

  *訊息*：`ML inference are currently supported only with one vertex label constraint.`
+ **`InvalidParameterException`** – `Neptune#ml.classification` 和 `Neptune#ml.regression` 述詞都存在於相同的查詢中。

  *訊息*：`Both regression and classification ML predicates cannot be specified in the query.`
+ **`InvalidParameterException`** – 已在連結預測查詢的 `in()` 或 `out()` 步驟中指定多個邊緣標籤。

  *訊息*：`ML inference are currently supported only with one edge label.`
+ **`InvalidParameterException`** – 已使用 Neptune\#ml.score 指定多個屬性索引鍵。

  *訊息*：`Neptune ML inference queries are currently supported for one property key and one Neptune#ml.score property key.`
+ **`MissingParameterException`** – 未在查詢中指定端點，或未將其指定為資料庫叢集參數。

  *訊息*：`No endpoint provided for external service query.`
+ **``MissingParameterException**   –   未在查詢中指定 SageMaker AI 執行 IAM 角色，或將其指定為資料庫叢集參數。

  *訊息*：`No IAM role ARN provided for external service query.`
+ **`MissingParameterException`** – 查詢中的 `properties()` 步驟遺失內容索引鍵。

  *訊息*：`Property key needs to be specified using properties() step for ML inference queries.`
+ **`MissingParameterException`** – 未在連結預測查詢的 `in()` 或 `out()` 步驟中指定任何邊緣標籤。

  *訊息*：`Edge label needs to be specified while using in() or out() step for ML inference queries.`
+ **`MissingParameterException`** – 未使用 Neptune\#ml.score 指定屬性索引鍵。

  *訊息*：`Property key needs to be specified along with Neptune#ml.score property key while using the properties() step for Neptune ML inference queries.`
+ **`UnsupportedOperationException`** – `both()` 步驟用於連結預測查詢中。

  *訊息*：`ML inference queries are currently not supported with both() step.`
+ **`UnsupportedOperationException`** – 未在 `has()` 步驟以及連結預測查詢中的 `in()` 或 `out()` 步驟中指定預測的頂點標籤。

  *訊息*：`Predicted vertex label needs to be specified using has() step for ML inference queries.`
+ **`UnsupportedOperationException`** – 未最佳化的步驟目前不支援 Gremlin ML 歸納推論查詢。

  *訊息*：`Neptune ML - Real-Time Inductive Inference queries are currently not supported with Gremlin steps which are not optimized for Neptune. Check the Neptune User Guide for a list of Neptune-optimized steps.`
+ **`UnsupportedOperationException`** – `repeat` 步驟內目前不支援 Neptune ML 推論查詢。

  *訊息*：`Neptune ML inference queries are currently not supported inside a repeat step.`
+ **`UnsupportedOperationException`** – 每個 Grinlin 查詢目前不支援多個 Neptune ML 推論查詢。

  *訊息*：`Neptune ML inference queries are currently supported only with one ML inference query per gremlin query.`