Home » Bulk AD Users » changing the "title" in AD Messages in this topic - RSS
|
3/25/2011 4:22:33 AM
lanky_bob
lanky_bob
Posts 1
My Rating:Vote Rating:Not Rated Views:3Source:www.wisesoft.co.uk
--------------------------------------------------------------------------------


Hi Folks,

I'm trying to update the job title using "title" in active directory using "Bulk password control" but i keep getting the error "Detail: A constraint violation occurred. (Exception from HRESULT: 0x8007202F)"

Can anyone throw any light on why this error is occuring? everything else updates fine.

Bob

Attachments:
title error.jpg


4/1/2011 3:37:36 AM
admin
admin
Posts 331
Hi,

I think the new value might be too long for the title attribute. I can see that you are replacing "Computer Services Technician" with a shorter string "it technician", but there could be some whitespace characters at the end of the string. I attempted the same update myself and it worked fine. I then added a number of whitespace characters to the end of the string and I was able to produce the same error.

Hope this helps,

David
10/27/2011 4:47:48 AM
aingham
aingham
Posts 2
I am getting the same error message when trying to change the 'Description' attribute.
All other attributes change ok. I have tried different string, but all fail. This is a Windows 2000 domain.
Any help would be greatly appreciated. Adam
10/30/2011 11:58:33 AM
admin
admin
Posts 331
aingham wrote:
I am getting the same error message when trying to change the 'Description' attribute.
All other attributes change ok. I have tried different string, but all fail. This is a Windows 2000 domain.
Any help would be greatly appreciated. Adam


Hi,

I don't have any problems updating the description attribute. What method are you using to update it - CSV Update, Edit In Excel or Bulk Modify? Also, can you post a sample value that is failing?

Thanks,

David
10/31/2011 4:14:02 AM
aingham
aingham
Posts 2
I have tried using 'Edit In Excel' and Bulk Modify, they both fail with the error:

(Error): description - Failure: A constraint violation occurred. (Exception from HRESULT: 0x8007202F)

I have tried using just a one letter string, just in case the string was too long, but this also failed, so its not the length of the string.

Thanks, Adam
11/1/2011 1:31:27 PM
admin
admin
Posts 331
Are you able to edit the attribute in Active Directory Users and Computers? Also have you tried updating a user account using a script like the one below:


set objUser = GETOBJECT("LDAP://CN=MyUser,OU=MyOU,DC=wisesoft,DC=co,DC=uk")

objUser.Put "Description","Test"
objUser.SetInfo

wscript.echo "OK"


Please change the bold text to point to a user in your domain. Let me know how you get on.

Thanks,

David
11/21/2011 8:23:32 AM
cybersaga
cybersaga
Posts 4
This may not be the issue, but in my own .NET development talking to AD, I found that the description attribute is multi-valued, but has a constraint saying it must only contain one value. So if you're going by what the schema says and treat it as a multi-valued attribute, things might not work depending on the environment. I had to make an exception just for the description field. I'm not sure how Bulk Modify implements it.

See here: http://msdn.microsoft.com/en-us/library/windows/desktop/ms675492(v=VS.85).aspx

Specifically this: "This value is restricted as single-valued for backward compatibility in some cases but is allowed to be multi-valued in others."
edited by cybersaga on 11/21/2011
pages: 1
|

Home » Bulk AD Users » changing the "title" in AD