Pete's Log: AD Error 8007202f

Entry #1435, (Coding, Hacking, & CS stuff)
(posted when I was 28 years old.)

Google offers a number of possible causes and solutions to error code 8007202f when scripting for Active Directory (though this is actually an LDAP provider error -- a constraint violation to be specific). However, none of those causes or solutions were applicable to the problem I was seeing.

So, if you see error 8007202f and you're positive your permissions and such are right, it might be something simpler like, in my case, trying to insert an invalid value into a field. In my case, I finally figured out, I was trying to insert a value into the department field that was longer than 64 characters. This turns out to be a constraint violation. So the solution may be as simple as to sanity check your data and make sure it will all fit into the fields you want it to fit into. Perhaps somebody else will find this useful.