Hello Sathya/All,
I'm facing the same issue while running the same script for removing all roles of mass user ids in ECC 6.0 EHP 6.0 also.
I'm also following the same steps which sathya has mentioned above.
Please share if there is any resolution for it.
Regards,
Amit Bharti