AvailableOSUpdates command failure

When we issue the AvailableOSUpdates MDM command on a device running iOS 11.3 beta we get the following error back:


<key>ErrorCode</key>

<integer>3</integer>

<key>ErrorDomain</key>

<string>com.apple.softwareupdateservices.errors</string>

<key>LocalizedDescription</key>

<string>The operation couldn’t be completed. (com.apple.softwareupdateservices.errors error 3.)</string>


Is this just because we're running a beta OS? Will this be fixed in the release of iOS 11.3? Just looking for confirmation.


Thanks.

I can confirm this is the case in the final 11.3 release (15E216) as well as the current 11.4 Beta (15F5037c). I'm pretty sure it was not the case in the 11.3 Beta (15E5216a) release, because I never got that error prior to the final 11.3 release.


Apr  4 11:46:50 Device-1 mdmd(MDM)[300] <Notice>: Could not check for available iOS updates - Error Domain=DeviceManagement.error Code=2213 "" UserInfo={NSDescription=, NSLocalizedDescription=Kein Update verf\M-C\M-<gbar., NSUnderlyingError=0x100a4acc0 {Error Domain=com.apple.softwareupdateservices.errors Code=3 "(null)"}}


I will open a bug at bugreport.apple.com and I suggest you do the same, because it does not seem anyone from Apple cares about these forums too much. 😟

I did happen to log a defect with Apple, but they closed it citing it was a change in behaviour. I don't see this behaviour change reflected in any iOS MDM documentation.


This is the actual response:


This is a follow-up to Bug ID# 38757618 - AvailableOSUpdates command fails in iOS 11.3 beta

Engineering has provided the following feedback regarding this issue:

This is correct behavior as of iOS 11.3 betas. When no updates are available we return 2213, “No update available.”. This is a behavior change since pre-iOS 11.3, when we just returned an empty array.

The description of the underlying error from software update services could be better. Error code 3 is indeed “update not found”, but the description “The operation couldn’t be completed.” could be misleading.

We consider this issue closed. If you have any questions or concern regarding this issue, please update your report directly (https://bugreport.apple.com).

Thank you for taking the time to notify us of this issue.

Best Regards,

Developer Bug Reporting Team

Apple Worldwide Developer Relations

Thank you for the feedback! I find their reply most unfortunate, as it does not make sense to return an error when no data (update in this case) is available. That is not an error at all from my point of view. 😕

Anyway, I guess we have no choice but to live with it. In any case, they still haven't replied to my report.

AvailableOSUpdates command failure
 
 
Q