PDF のエクスポートが「予期しないエラーが発生しました。詳細については、インスタンスログを参照してください。」エラーで失敗します。Issue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } ServiceNow からリストビューまたはフォームビューから PDF をエクスポートすると、エクスポートが次のエラーで失敗します。 予期しないエラーが発生しました。詳細については、インスタンスログを参照してください。 Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Cause<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } PDF のエクスポートは WHTP または PAREXPORT (PDF レンダリングサーバー) を使用します。システムプロパティ「glide.servlet.uri」は、レンダリングされた PDF とインスタンス間の通信のためにインスタンスに接続するためにデフォルトで使用される値です。 値が正しいインスタンス URL を指していない場合、接続は失敗し、エクスポートが失敗します。これは、テーブルが除外されていない本番インスタンスから準本番インスタンスへのクローンsys_properties見られます。クローン作成の問題に関連している可能性があります:ここで glide.servlet.uri が誤ったインスタンスに設定されています。 確認が必要なもう 1 つのプロパティは com.snc.whtp.host です。これには、使用されている PDF レンダラーのタイプ ( http://whtp または http://parexport) が含まれます。 Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } プロパティ com.snc.whtp.host に次の値が含まれているかどうかを確認します。 Rome 以前:「http://whtp」Rome アップグレード後:「http://parexport」 このプロパティが正しく設定されている場合: 値 com.snc.whtp.host が空の場合: エクスポートは一見成功したように見えますが、「要求された添付ファイルが存在しません」という結果になります。 この値が正しく設定されているにもかかわらず次のエラーが表示される場合は、「予期しないエラーが発生しました。詳細については、インスタンスログを参照してください" 次に、バックグラウンドスクリプトを使用して glide.servlet.uri の値を確認します。 var Property = gs.getProperty('glide.servlet.uri'); gs.print(Property); これにより、この特定のインスタンスの正しいインスタンス URL が返されます。 これがデフォルトのインスタンス URL とは異なる URL を返す場合は、次のようになります。 インスタンスへのアクセスに使用される URL が バニティプロキシ URL またはデフォルトのインスタンス URL (https://<instance-name>.service-now.com) を使用しているかどうかを確認します 非標準 (バニティ URL) が使用されている場合、 parexport サーバーからインスタンスへの要求が受け入れられない可能性があることに注意してください。「バニティ URL とプロキシ URL に関連する問題はサポートの範囲外です」。 ただし、この場合、PDF レンダラーからプロキシ URL に戻る接続がブロックされる可能性があります。(IP アクセス制御など)。PDF エクスポートでサポートされているのは、デフォルトの「インスタンス URL」、または「カスタム URL プラグイン」を使用するインスタンスです。 Related Links<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } カスタム URL をインスタンスに関連付ける