> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateError

> 単一文書の Case 向けに CreateError Pega アクティビティを Configure します。ハンドルで Case を開き、Page-Set-Messages を使用して指定されたエラーメッセージを設定します。

アクティビティの作成について詳しくは、[Pega アクティビティの作成](/ja/flexi-capture/connectors/pega/pega-activity-create)を参照してください。

<div id="pages-classes">
  ## ページ & クラス
</div>

| **ページ名** | **クラス** |
| -------- | ------- |
| Case     | Work-   |

<div id="parameters">
  ## パラメーター
</div>

| **Name**     | **データ型** | **必須** |
| ------------ | -------- | ------ |
| CaseId       | String   | はい     |
| errorMessage | String   | はい     |

<div id="steps">
  ## 手順
</div>

手順 1:

**メソッド**: Obj-Open-By-Handle.

**ステップページ**: Case.

**InstanceHandle**: Param.caseId.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega125.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=95a0242ae3307fca188b0e251b4eb165" alt="Pega の CreateError アクティビティ のスクリーンショット。手順 1 では、Case のステップページで Obj-Open-By-Handle メソッドを使用し、InstanceHandle は Param.caseId に設定されています。" width="870" height="249" data-path="images/flexi-capture/connectors/Pega125.png" />
</Frame>

手順 2:

**メソッド**: Page-Set-Messages.

**メッセージ**: Param.errorMessage.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega126.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=b007e87eb4945eba9113a7a142fba012" alt="Pega の CreateError アクティビティ のスクリーンショット。手順 2 では、Page-Set-Messages メソッドを使用し、Message パラメーターは Param.errorMessage に設定されています。" width="895" height="195" data-path="images/flexi-capture/connectors/Pega126.png" />
</Frame>
