Unable to invalidate interval: no data source available error when fetching steps using HKStatisticsCollectionQuery

While attempting to read a user’s daily step history spanning backward to the last 7 days, a small but consistent subset of users encounter Error Code 3 with the underlying error description:

Error Code 3

"Unable to invalidate interval: no data source available."

When this error occurs, we are entirely unable to read their step history. We have received ~10 direct user reports of this within the last couple of weeks.

Thanks for reporting the issue. The error indicates that HealthKit lost the cached data source information, which is an implementation detail inside the framework.

Do you have a feedback report yet? If not, would you mind to file one with a sysdiagnose, and share your report ID here? You can following the instruction here to install the profile and capture a sysdiagnose from a device that reproduces the issue.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Unable to invalidate interval: no data source available error when fetching steps using HKStatisticsCollectionQuery
 
 
Q