function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
.NETによるバッチ処理にてSalesforceへのUpdateを行っていたのですが、INVALID_QUERY_LOCATORというエラーが発生しました。
無効なQueryLocatorと言われていますが、エラーの原因が分かりません。
解決方法について教えていただけないでしょうか。
よろしくお願いいたします。
的をはずしていたらすみません。
クエリが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
的をはずしていたらすみません。
クエリが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