You need to sign in to do that
Don't have an account?

What is timed out error & 'o' in SOQL query like Select o.OpportunityId
Hi Folks,
I am runnign a daily extract file however from yesterday onwards it is throwing 'TIMED OUT' error.
Belwo is the SOQL query:
"Select o.OpportunityId, o.OldValue, o.NewValue, o.IsDeleted, o.Id, o.Field,o.CreatedDate, o.CreatedById From OpportunityFieldHistory o where o.Field ='StageName'"/>"
Here I would like to know what action needs to be consider here if it throws such timed out error.exceptionMessage='Your query request was running for too long.''.
secondly I dont understand from above query what that 'o' represents here?
Regards
Syed
I am runnign a daily extract file however from yesterday onwards it is throwing 'TIMED OUT' error.
Belwo is the SOQL query:
"Select o.OpportunityId, o.OldValue, o.NewValue, o.IsDeleted, o.Id, o.Field,o.CreatedDate, o.CreatedById From OpportunityFieldHistory o where o.Field ='StageName'"/>"
Here I would like to know what action needs to be consider here if it throws such timed out error.exceptionMessage='Your query request was running for too long.''.
secondly I dont understand from above query what that 'o' represents here?
Regards
Syed
https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_alias.htm
You are getting timed out error because you SOQL is returning too much data probably crossing the Governance Limit, so in order to fix you can do any of the following.
- include LIMIT 49999 in the SOQL or whatever less than that
- Add another filter with AND operator like Id = :<IdListField>
Goal is to limit the SOQL as per the requirement.I hope this help.
Here we are receiving file daily and its size remains 47 MB...do you think its due to increase in size all of a sudden?
Anyhow bottom line try to run your process in different batches (possible based on dates) if you expecting increase of data daily.
I apologies , I was engaged with with some other activity.
I really appreciate your response on this, your solution really helped us.. Please go ahead and resolve this case.
Thanks again
Syed