The passcode cannot be cleared (-1) issue in iOS and iPadOS

Pre Note: This issue not reproducing so promisingly. We cant find its issue source. Its occurring randomly on devices

Step 1: After enrolling the device in MDM . try to send a clear passcode command to device .

Command :

There will be response from device with below format

Response:

On Checking the MDM Protocol Reference - Protocol Ref I can only able to see “5013 Cannot clear passcode” with respect to this issue. Other than it nothing can be seen in any apple docs too.

We dont know why this issue occurs and it is resolved after any pending os update or ReEnrolling devices to MDM. Is there any suggestion regarding this and why this happens for random devices.

The passcode cannot be cleared (-1) issue in iOS and iPadOS
 
 
Q