Is that on Windows or Linux endpoints, and what version of client? If I recall correctly the script I was using to cleanup operators worked on Windows but not on Linux, with the same error I think, and I didn’t have enough Linux clients in that deployment to continue working on it, just did a besdata reset on those.
The Session Relevance I’m using to find them is
unique values whose (it is not contained by set of masthead operator names of bes users) of values of results of bes properties whose (reserved flag of it and name of it = "Client Administrators")
That identifies operators that are deleted AND still subscribed by at least one endpoint. To take that a bit farther, I also have this that I use to create the Relevance that I use in the task to remove those operators -
Generate Fixlet Relevance for unsubscribing operators:
"exists administrators whose (not exists effective date whose (it > %22" & now as string & "%22 as time ) of it AND name of it is contained by set of (" & concatenation ";" of ("%22" & it & "%22" ) of unique values whose (it is not contained by set of masthead operator names of bes users) of values of results of bes properties whose (reserved flag of it and name of it = "Client Administrators") & ")) of client"
Results in:
exists administrators whose (name of it is contained by set of ("__op_157")) of client
And the following generates the ActionScript I used in my task:
("setting %22__Group___AdminBy_" & it & "%22=%22{ false }%22 on %22" & now as string & "%22 for client";"administrator delete %22" & it & "%22 on %22" & now as string & "%22") of unique values whose (it is not contained by set of masthead operator names of bes users) of values of results of bes properties whose (reserved flag of it and name of it = "Client Administrators")
results:
setting "__Group___AdminBy___op_157"="{ false }" on "Fri, 05 Apr 2019 08:55:41 -0500" for client
administrator delete "__op_157" on "Fri, 05 Apr 2019 08:55:41 -0500"
Edit: In case it’s not obvious, we are well into undocumented/unsupported territory here, so please do your own testing and use with care!