Apex job failure

54 views
Skip to first unread message

Brian Goodyear

unread,
Oct 25, 2011, 11:15:57 PM10/25/11
to Force.com Toolkit For Google Analytics
Recieving following apex error during DataImportWorker class running
importData

First error: List index out of bounds: 2

confirmed remote site settings, correct profile id (in form of
ga.profileid), email (in form of ga.us...@gmail.com), password

Any suggestions?

Shashidhar Gurumurthy

unread,
Oct 25, 2011, 11:55:18 PM10/25/11
to forcecom-toolkit-f...@googlegroups.com
Hi Brian, 

The code throwing the error would be the following two lines: 
  private static List<Site_Metric_Settings__c> sites = [Select s.Name From Site_Metric_Settings__c s];
  private static String siteName = sites[0].Name;

Please confirm that you have set the site settings using the Manage Site Settings tab. Click on Search without entering any parameters. If you have the site settings data showing but still getting the error, I will have to do a detailed debugging.
Let me know if this helps. Thanks.

Regards,
Shashi

hania.m...@deliveroo.com

unread,
Mar 9, 2017, 12:04:19 PM3/9/17
to Force.com Toolkit For Google Analytics
Hi,

I've just downloaded this package and have set the scheduler - I'm getting the same error as Brian. I've checked manage site settings tab and am getting back data. Is this package still working?

Regards,
Hania

Matthew Botos

unread,
Mar 9, 2017, 6:11:19 PM3/9/17
to forcecom-toolkit-f...@googlegroups.com
Thanks for downloading the package, Hania. Sorry the scheduler isn't working for you. 

The first thing I'd check is profile permissions for the scheduler user - it should have at least read access to Site_Metric_Settings__c.

Did that help?

Matthew

--
You received this message because you are subscribed to the Google Groups "Force.com Toolkit For Google Analytics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to forcecom-toolkit-for-goo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hania Mangalore

unread,
Mar 10, 2017, 7:38:43 AM3/10/17
to forcecom-toolkit-f...@googlegroups.com
Hi Matthew,

Thanks for the quick response. I've checked the profile permissions and it seems to look okay.
The Site_Metric_Settings__c screenshot shows that the visibility is set to public. Is there anything else I could look into for this error?
Here are some screenshots for reference:

Inline image 1

Inline image 1

Inline image 2

Thanks!

Regards,
Hania Mangalore



Matthew

To unsubscribe from this group and stop receiving emails from it, send an email to forcecom-toolkit-for-google-analytics+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Force.com Toolkit For Google Analytics" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/forcecom-toolkit-for-google-analytics/qFZZhwbi9ZQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to forcecom-toolkit-for-google-analytics+unsubscribe@googlegroups.com.

Matthew Botos

unread,
Mar 14, 2017, 11:57:03 AM3/14/17
to forcecom-toolkit-f...@googlegroups.com
That all looks good, Hania, so we'd need to take a closer look at the errors. 

Would you like to see if our schedules align for some 1:1 debugging?

Matthew

To unsubscribe from this group and stop receiving emails from it, send an email to forcecom-toolkit-for-goo...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Force.com Toolkit For Google Analytics" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/forcecom-toolkit-for-google-analytics/qFZZhwbi9ZQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to forcecom-toolkit-for-goo...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Force.com Toolkit For Google Analytics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to forcecom-toolkit-for-goo...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages