エラーメッセージ

RayBarcodeを使ってSalesforce上でバーコードを生成するとき、指定したバーコードに無効な値が設定された場合、またはネットワーク通信によってエラーが発生する可能性があります。

GcBarcodeとGcBarcodeVFコンポーネントでは、以下のエラーが発生する場合があります。

Salesforceサーバーの通信エラー

JavaScriptコードがApexクラスと通信する場合、以下のエラーが発生します。括弧内は日本語の参照訳です。

  • Server Unavailable (サーバーが利用可能でない)
  • User session expired (ユーザのセッションが期限切れ)
  • The lightning platform met a serious error and could not resume (Lightningプラットフォームが致命的なエラーに遭遇し回復可能でない)

上記エラーが発生する場合、GcBarcodeコンポーネントは以下のようにエラーを通知します。

Error:[Error Message from Server]

バーコード生成サービスの通信エラー

RayBarcodeでは、Salesforceのデータを外部のサーバーに送信し、その外部のサーバーからバーコードの画像データを取得します。外部のサーバーとの通信に失敗すると、次のようなエラーが発生します。

エラーメッセージ 日本語の参照訳
Error:Unable to tunnel through proxy. Proxy returns “HTTP/1.0 404 Not Found” エラー:プロキシを経由して接続できません。「HTTP/1.0 404 Not Found」が返されます。
Error:Read timed out エラー:読み取りのタイムアウト。

バーコード設定エラー

バーコードの設定が正しくない場合は、以下のエラーが発生する場合があります。

エラー エラーメッセージ 日本語参照訳
The “type” parameter is incorrect. The specified barcode is incorrect. 指定されたバーコードが無効です。
The “imageWidth” parameter is not positive, or greater than 1000 when generating PNG format image. The specified Image width is invalid. 指定した画像の幅が無効です。
The “imageHeight” parameter is not positive, or greater than 1000 when generating PNG format image. The specified Image height is invalid. 指定した画像の高さが無効です。
The length of the “value” is geater than the capability of the specified barcode type, or cannot be presented by the specified type. The value is invalid. 値は無効です。バーコードで表現できるデータの上限を超えています。二次元コードの場合、連結機能を使うことも検討してください。
The “options” parameter is not in a json format. The options string is invalid. Options属性の文字列が無効です。
The “options” parameter contains an invaild or not-supported option name. The option name ‘[Option Name]’ is invalid. オプション名’[Option Name]‘が無効です。
The “options” parameter contains an valid option name with invalid value. The specified value: ‘[Value]’ for the ‘[Option Name]’ is invalid. ‘[Option Name]‘用の指定した’[Value]‘が無効です。
The ‘outputFormat’ parameter is incorrect. The specified output format ‘[Format]’ is invalid. 指定された出力形式’[Format]‘が無効です。
The structure append related settings on DataMatrix or QRCode is invalid. Structure append setting is incorrect. StructuredAppendの設定が正しくありません。
Copyright © 2023 MESCIUS inc. All rights reserved.