Hi,
I’m trying to run this bit of code below, but on the last line I get the error;
“‘Invalid Approval Request note.’ (4564) on line 26 occurred in”
I read somewhere that if you have the correct rights, you shouldn’t need to execute the ApproveReplicaDeletion method and that the request should be processed automatically. However this is not the case, and the agent is signed with my ID which has Admin rights to the server and the AdminP database.
The records for the deletion are created in the AdminP database however, they just sit there until I manually approve them.
Anyone know what to do with this!?
Thanks
------------------------------CODE------------------------------
Set adminP1 = session.CreateAdministrationProcess(nameServer.Abbreviated)
adminPNote1 = adminP1.DeleteReplicas(nameServer.Abbreviated, dbTemplate.FilePath)
Call adminP1.ApproveReplicaDeletion(adminPNote1)
Call session.SendConsoleCommand(nameServer.Abbreviated, “Tell Adminp Process New”)
------------------------------EOF------------------------------