Training guidance tools using the API

Hi,

For some strange reason, I’m not even getting this popup to input API and password →

I’m following the steps you laid out before:

  • Open a fresh copy of the sheet (don’t try to open the shared one! - download your own copy first) → Done, I’ve downloaded the file (1.6) from the Google Drive to a local copy, without even opening it online.

  • Dismiss the two errors → Done. I do also get another error about “Privacy levels”. I’ve read elsewhere on the forum to click “Ignore Privacy Levels check”, which I did

  • Enter your AthleteID in the highlighted cell and quit the cell to make sure the ID is saved → Done, even intermittently saved the file.

  • Then goto Data menu and hit refresh → Done

  • The Web Access dialog should now display → It does not, unfortunately. It does however display the “Microsoft.Mashup…” error again.

Running Microsoft Office 365.

Thanks in advance for any help :slight_smile:

Is your data coming from Strava or from the original device, eg. Garmin, Wahoo, etc.
Intervals is not allowed to retrieve data from the Strava API.

I’m not at my laptop, so can only check in about 2 hours.

I’m also running Office 365 and it all works.
The error message may indicate that the resource is forbidden from where you’re trying to access it??
Try this:
Data/Get Data/ Data Source Settings / Global Permissions / Clear all permissions. Then click on Refresh

Is anyone else having problems in Activity_icu v3.01, where the Zones are not being updated? @William_Barnes

Good spot @R_S1, I’ve just put an updated version (v3.02) here
that should address that issue.

1 Like

I found a few bugs in “Intervals_API_Tools_Office365_v1.6.xlsx” and came up with fixes for them. Hopefully this is the best spot for that.

Error importing via the API:
This was mentioned above but the number of columns for the two imported csv has changed. Currently in the Power Query Editor on the Source step the Columns should be set to 86 for activities and 42 for wellness.

Calendar week doesn’t rollover after 52
If you set the start date to something late in the previous year (e.g. 12/22/2025) the calendar week doesn’t start over at 1 with the new year. Fix this by setting cell F9=MOD(E9,52)+1 and copying this to cells F9:BD9. (note: cell E9 should not be changed.)

Hours/TSS not calculated correctly for Calendar Week 1
Fix (for the TSS row, fix for the Hours row is the same): Set E20=IFERROR(IF(E7=“Pa”,IF(E9<10,VLOOKUP(YEAR(E$5+6)&“-0”&E$9,Lookup!$B$2:$F$50000,5,FALSE),VLOOKUP(YEAR(E$5+6)&“-”&E$9,Lookup!$B$2:$F$50000,5,FALSE)),E15),E15).
Copy this for the entire row. The change is the “YEAR(E$5+6)”. For ISO Week 1 “YEAR(E$5)” will evaluate to the previous year (i.e. for 12/29/2025 the VLOOKUP will look up for the WeekNum “2025-01”). Adding 6 to date in E5 ensures it gets evaluated with the new year. (note: this is a slightly crude fix and can cause weird behavior if the start date is not a Monday as prescribed).

I’m no longer maintaining/updating this file because just about everyone uses the MatLab version known as ‘ImReady4’.
You’re free to grab your own copy of it, address the issues and share it.