ディスカッション

NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.

Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.

SuiteScriptを介して保存検索を作成する際のエラー解決:「SSS_INVALID_SEARCHOPERATOR」 

編集済:Jun 2, 2025 2:48PM SuiteCloud / カスタマイズ

適用

製品: NetSuite 2021.1

シナリオ

SuiteScriptを介して作成されたフィルターに値が含まれていない場合(nullや ""など)、エラーがスローされます。 " " 異なります。

エラー: "SSS_INVALID_SRCH_OPERATOR"、 "メッセージ": "nlobjSearchFilterに無効な演算子が含まれているか、適切な構文ではありません:x"

解決策

注:PO番号(ID:otherrefnum)は空白。
 require(['N/search', 'N/record'], function(search, record){ 
     var rec = record.load( 
     { 
      type: 'salesorder', 
      id: '235' //internalID of a Sales Order 
     }); 
     var a = rec.getValue( 
     { 
      fieldId: 'otherrefnum' 
     });  
        var Search = search.create({ 
                type: 'transaction', 
                columns: [], 
                filters: [ 
                        ['internalid', 'anyof', a]                         
                ], 
                title: 'Transaction Search Test' 
        }).run().getRange({start:0, end:100}); 
        console.log(a); 
        console.log(Search.length); 
    }); 



ようこそ!

サインイン

完全な詳細を表示するには、サインインしてください。

登録

アカウントがありませんか?ここをクリックして始めましょう!

リーダーボード

コミュニティの達人

第2四半期 (4月~6月 2026)

今週のリーダー

今月のリーダー

歴代リーダー