← All posts
October 20, 2026·healthkittroubleshootinggoogle-sheets

HealthKit Error: Unable to Invalidate Interval, No Data Source Available

If you searched for “Unable to invalidate interval: no data source available”, you have probably met this error in an app or in your own HealthKit code. It comes from Apple’s HealthKit framework, with the error domain com.apple.healthkit and code 3. This post explains what it means, who gets it, and what to do.

What the error means

The error is returned by a statistics query, typically HKStatisticsCollectionQuery, when HealthKit cannot resolve part of the requested time range to a data source. The wording says there is no data source for the interval, but the range often does have data. The query simply fails.

This is a known problem inside HealthKit, not a sign that your data or your device is broken. Developers have reported it to Apple, and there is no code-level fix on the app side.

Who sees it

Reports cluster around people whose Health store has a long history from several devices, for example Apple Watch together with Oura, WHOOP and Withings. The more sources that have written to Health over the years, the more likely some stretch of time trips the query.

Why it can stop a whole sync

An app that asks for a long range in one query gets one error for the whole range. If the app treats that as a failure, the sync fails on every pass, and everything after the refused day never arrives. That is what health4ai did before version 1.0.4: in one support report the Workouts tab kept syncing while the Daily tab stopped at an old date.

What developers can do

Developers report that a shorter range with the same anchor often succeeds even when the long range fails. So the practical approach is to split the range and retry the pieces, down to single days, and report the days that still fail instead of treating them as a total failure.

How health4ai 1.0.4 handles it

health4ai 1.0.4 is in App Review and is not available yet. When it ships, Google Sheets sync does this:

If you hit this error in 1.0.3 or earlier, nothing is wrong with your Sheet or your Health data. Updating to 1.0.4 once it is live is the fix.

What you can check today

See also the 1.0.4 release notes and the general sync troubleshooting guide.