---
schema_version: "1"
id: bf2c7b8a390d3ff2bf0009dbe1f16cdb8d617a65aed0ba3bbd1930d08053c6fa
title: API 自動検出設定時のデプロイメントエラー
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/api-manager/latest/troubleshooting-config-properties-apiid-error.md
canonical_url: https://docs.mulesoft.com/jp/api-manager/latest/troubleshooting-config-properties-apiid-error
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 21576d1acbfeb14540013887020ef0e826a9607ec379ba9e542ccaa82541087d
description: MuleSoft Documentation Site
release: 2.x
latest: true
---
# API 自動検出設定時のデプロイメントエラー

API 自動検出用に Mule ゲートウェイを設定すると、次の「failed to deploy artifact (アーティファクトのデプロイに失敗しました)」というエラーが表示される場合があります。

```text
org.mule.runtime.deployment.model.api.DeploymentException: Failed to deploy artifact [accounts]
Caused by: org.mule.runtime.api.exception.MuleRuntimeException: org.mule.runtime.deployment.model.api.DeploymentInitException: PropertyNotFoundException: Couldn't find configuration property
value for key ${apiId} from properties provider Domain properties - within
resolver Deployment properties trying to process key apiId - within
resolver global-properties configuration attributes trying to process key apiId - within resolver environment properties provider trying to process key apiId - within resolver Deployment properties trying to process key apiId - within resolver External files trying to process key apiId - within resolver Deployment properties trying to process key apiId
```

## [](#原因)原因

この問題は、​`config.properties`​ ファイルに ​`apiId`​ プロパティを追加せず、​`api-gateway:autodiscovery`​ 要素で ​`apiId`​ 属性の値の変更に失敗した場合に発生します。自動検出プロセスは、API Manager の特定のインスタンスで実行されます。そのため、​`long`​ 型の有効な ​`apiId`​ を指定する必要があります。

API Manager を介してプロキシアプリケーションをデプロイした場合、または自動生成されたプロキシをダウンロードした場合、この設定は自動的に定義されます。

## [](#解決策)解決策

この問題を解決する手順は、次のとおりです。

1. config.properties ファイルに移動し、次のプロパティと値のペアを追加します。
    
    ```text
    apiId=[your-specific-value]
    ```
2. <api-gateway:autodiscovery> 要素で、​`apiID`​ 属性を config.properties ファイルの ​`apiId`​ プロパティに設定します。
    
    ```text
    apiId=${apiId}
    ```

## [](#関連情報)関連情報

[設定プロパティの設定](https://docs.mulesoft.com/mule-runtime/latest/mule-app-properties-to-configure)​