Share via


Active directory response: 00000057: LdapErr: DSID-0C090B8A, comment: Error in attribute conversion operation, data 0, v1db1

Question

Thursday, July 7, 2016 10:49 AM

Dear All,

please help me to update the mail contact details by power shell. I am trying to update but giving error.

This error is not retriable. Additional information: The paramet
er is incorrect.
Active directory response: 00000057: LdapErr: DSID-0C090B8A, comment: Error in attribute conversion operation, data 0,
v1db1
    + CategoryInfo          : NotSpecified: (0:Int32) [Set-Contact], ADOperationException
    + FullyQualifiedErrorId : F5A27398,Microsoft.Exchange.Management.RecipientTasks.SetContact

SUNIL PATEL SYSTEM ADMINISTRATOR

All replies (5)

Saturday, July 9, 2016 3:58 AM ✅Answered

Something in the CSV is probably invalid.  Again, you haven't provided us with the key information.  What I'd recommend you do is split that big ugly one-liner into a multiple-line command and add some Write-Host statements so you can see which line is generating the error.  You may have to use Set-Contact in multiple lines with the properties one at a time.  That's how you debug a script.

Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Celebrating 20 years of providing Exchange peer support!


Thursday, July 7, 2016 10:52 PM

Correct the error.

That's all I can tell you based on the lack of information you provided.

You should post the complete unadulterated command.

Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Celebrating 20 years of providing Exchange peer support!


Friday, July 8, 2016 7:48 AM

Hi SKPATEL,

Welcome to our forum.

In addition to Ed’s suggestion, from this error, you may use incorrect parameter. The set-contact cmdlet could be referred by the following link:

https://technet.microsoft.com/en-us/library/bb124535(v=exchg.141).aspx 

Best Regard,

Jim Xu

Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].

Jim Xu
TechNet Community Support


Saturday, July 9, 2016 3:14 AM

i am using this command eceived over internet to create and modified the users

Import-Csv .sample_A.csv|%{New-MailContact -Name $_.Name -DisplayName $_.Name -ExternalEmailAddress $_.ExternalEmailAddress -FirstName $_.FirstName -LastName $_.LastName -OrganizationalUnit "My Imported Contacts"}

This will create the contacts with some information. Now that they’re created, you’d run the following command to populate each contact with all the other data in your CSV file:

$contacts = Import-CSV .sample_A.csv $contacts | ForEach {Set-Contact $_.Name -StreetAddress $_.StreetAddress -City $_.City -StateorProvince $_.StateorProvince -PostalCode $_.PostalCode -Phone $_.Phone -MobilePhone $_.MobilePhone -Pager $_.Pager -HomePhone $_.HomePhone -Company $_.Company -Title $_.Title -OtherTelephone $_.OtherTelephone -Department $_.Department -Fax $_.Fax -Initials $_.Initials -Notes $_.Notes -Office $_.Office -Manager $_.Manager}

SUNIL PATEL SYSTEM ADMINISTRATOR


Saturday, July 9, 2016 3:15 AM

i have receive below mentioned command to create and update user details.

Import-Csv .sample_A.csv|%{New-MailContact -Name $_.Name -DisplayName $_.Name -ExternalEmailAddress $_.ExternalEmailAddress -FirstName $_.FirstName -LastName $_.LastName -OrganizationalUnit "My Imported Contacts"}

This will create the contacts with some information. Now that they’re created, you’d run the following command to populate each contact with all the other data in your CSV file:

$contacts = Import-CSV .sample_A.csv $contacts | ForEach {Set-Contact $_.Name -StreetAddress $_.StreetAddress -City $_.City -StateorProvince $_.StateorProvince -PostalCode $_.PostalCode -Phone $_.Phone -MobilePhone $_.MobilePhone -Pager $_.Pager -HomePhone $_.HomePhone -Company $_.Company -Title $_.Title -OtherTelephone $_.OtherTelephone -Department $_.Department -Fax $_.Fax -Initials $_.Initials -Notes $_.Notes -Office $_.Office -Manager $_.Manager}

SUNIL PATEL SYSTEM ADMINISTRATOR