HKStatisticsCollectionQuery and activeEnergyBurned/basalEnergyBurned

Hello

With iOS 14, HKStatisticsCollectionQuery returns HKError.Code.errorInvalidArgument when querying for activeEnergyBurned or basalEnergyBurned

It works perfectly fine with iOS 13.

Any idea?

Thanks

Stéphane
Have you printed the error's description? That should provide a hint as to what is wrong.
Here is the error's description:

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

No sure what it means?
Please file a radar with the feedback assistant. If you can provide a sample project, that would be even better.
Any update on this? I am also seeing this error; not sure if it is querying that data type or not, but I am seeing this error. Please advise. Thanks.
HKStatisticsCollectionQuery and activeEnergyBurned/basalEnergyBurned
 
 
Q