function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
yasuyasu 

INVALID_QUERY_LOCATORによるエラー

.NETによるバッチ処理にてSalesforceへのUpdateを行っていたのですが、INVALID_QUERY_LOCATORというエラーが発生しました。

 

無効なQueryLocatorと言われていますが、エラーの原因が分かりません。

 

解決方法について教えていただけないでしょうか。

 

よろしくお願いいたします。

ue123ue123

的をはずしていたらすみません。

 

クエリが2分以上かかるとタイムアウトしてInvalidQueryLocatorFaultのエラーを返すと下記ドキュメントに記載されてました。

 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_query.htm?SearchType=Stem&Highlight=InvalidQueryLocatorFault#topic-title

 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_concepts_core_data_objects.htm

 

 

バッチサイズを小さくしてみてはどうでしょうか?

(デフォルトは500のようです。)

 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_soql_changing_batch_size.htm