---
schema_version: "1"
id: d640b33481f5eac73c4a88330002e8e3dae2f7e9497f435989ff87fe7d30d750
title: NetSuite Connector 11.1 のトラブルシューティング
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/netsuite-connector/11.1/netsuite-troubleshooting.md
canonical_url: https://docs.mulesoft.com/jp/netsuite-connector/11.1/netsuite-troubleshooting
source_site: docs.mulesoft.com
content_type: documentation
content_hash: a79e508772588a71c53bb024f7e04f00e25da95e6f923dfedd832fc69e0935cb
description: MuleSoft Documentation Site
release: "11.1"
latest: false
---
# NetSuite Connector 11.1 のトラブルシューティング

NetSuite 用 Anypoint Connector (NetSuite Connector) を使用する場合、次の問題が発生することがあります。

- [アプリケーション起動中に接続テストが失敗する。](#connectivity-test-failure)
- [コネクタが要求と応答をログに記録しない。](#logging-request-responses)
- [メタデータを取得するときにコネクタが権限エラーを返す。](#permissions-error)
- [コネクタが特定の種別のオブジェクトを検索できない。](#search-entities)
- [**On Modified Objects**​ ソースで新規オブジェクトがトリガーされる。](#on-modified-object-triggers-new-objects)

## [](#connectivity-test-failure)アプリケーション起動中の接続テストの失敗

アプリケーションの起動中に接続テストが失敗し、スタック追跡に次のステートメントが表示された場合、コネクタの再接続戦略を設定します。

```xml
Caused by: java.lang.InterruptedException
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:998) ~[?:1.8.0_221]
```

Anypoint Studio (Studio) でコネクタの再接続戦略を設定するには、コネクタプロパティウィンドウの ​**\[Configure XML (XML を設定)\]**​ タブで次の行を追加します。

```xml
<reconnection failsDeployment="true">
	<reconnect count="2" frequency="5" />
</reconnection>
```

たとえば、再接続戦略を追加した後、コネクタの設定 XML は次のようになります。

```xml
<netsuite:config name="NetSuite_Config" doc:name="NetSuite Config" doc:id="8a4f73c2-e5e1-4f5d-8978-980069828ff0" >
    <netsuite:token-based-authentication-connection consumerKey="${netsuite.consumerKey}" consumerSecret="${netsuite.consumerSecret}" tokenId="${netsuite.tokenId}" tokenSecret="${netsuite.tokenSecret}" account="${netsuite.account}">
		<reconnection failsDeployment="true">
			<reconnect count="2" frequency="5" />
		</reconnection>
	</netsuite:token-based-authentication-connection>
```

Studio で、コネクタプロパティウィンドウの ​**\[Advanced (詳細)\]**​ タブを使用して再接続戦略を設定することもできます。これを行うには、次の項目を入力します。

<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">値</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Reconnection strategy (再接続戦略)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Standard</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Frequency (ms) (頻度 (ms))</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>5</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Reconnection Attempts (再接続試行数)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>2</code></p></td>
</tr>
</tbody>
</table>

## [](#logging-request-responses)ログ要求および応答のログ記録なし

コネクタを使用する場合に要求と応答をログに記録するには、次の XML ステートメントを ​`Log4j`​ 設定ファイルに追加します。

```xml
<AsyncLogger
  name="org.mule.module.netsuite.extension.internal.connection.HttpWithCookieMessageDispatcher"
  level="DEBUG"/>
<Root level="debug">
    <AppenderRef ref="Console" />
</Root>
```

## [](#permissions-error)メタデータ取得時の権限エラー

メタデータの取得時に権限エラーを受信しないようにするには、接続設定で使用するロールに対して NetSuite の ​`Control SuiteScript and Workflow Triggers in Web Services Request`​ オプションを有効にします。

## [](#search-entities)特定の種別のオブジェクトを検索できない

NetSuite の SuiteTalk API には、販売注文オブジェクトなど、特定の種別のオブジェクトを検索できないという制限があります。この制限のために、NetSuite Connector ​`Search`​ 操作を使用してこれらのオブジェクトを見つけることができません。

販売注文などのサポートされないオブジェクトの検索を実行するには、保存済み検索を作成して、コネクタからコールします。

## [](#on-modified-object-triggers-new-objects)On Modified Object で新規オブジェクトがトリガーされる

**On Modified Objects**​ ソースでは新規オブジェクトもトリガーされます。NetSuite ではオブジェクトの作成時に ​`lastModifiedDate`​ 項目に入力されます。すべての新規オブジェクトの ​`lastModifiedDate`​ 項目に入力されているため、​**On Modified Objects**​ ソースで ​`lastModifiedDate`​ に基づいてオブジェクトをポーリングする場合、​**On Modified Object**​ ソースですべての新規オブジェクトも取得されます。

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

[MuleSoft ヘルプセンター](https://help.mulesoft.com)