• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5722
  • Last Modified:

LDIFDE import error Add error on line 1: No Such Attribute

I'm trying to import some contacts into our AD structure using the following command line and ldf file. Getting the error at the bottom of this post

the names have been changed to protect the innocent.

ldifde -i -f testimp.ldf -j c:\wccexport\

dn: CN=davesmith,OU=WCC Staff,OU=Recipients,OU=ExchangeResourceAccounts,OU=IT,DC=cwh,DC=pri
changetype: add
objectclass:contact
sn: davesmith
title: solicitor
physicaldeliveryofficename:  City Hall
telephonenumber: 2222
givenname: Dave
Display Name: Smith, dave
Department: CEX LegServs
Company: Our Business
streetaddress: 15th Floor, City Hall
targetaddress: SMTP:dsmith@wcaddress.gov.uk
mail: dsmith@wcaddress.gov.uk

getting this error:

Connecting to "********"
Logging in as current user using SSPI
Importing directory from file "testimp.ldf"
Loading entries.
Add error on line 1: No Such Attribute
The server side error is "The parameter is incorrect."
0 entries modified successfully.
An error has occurred in the program

I have tried variations of the Dn line, no change. I could always use csvde, I suppose...
0
TonyStanley
Asked:
TonyStanley
  • 4
  • 4
1 Solution
 
Netman66Commented:
According to your first line, this is what you to do:

Add user DaveSmith (note - it's all one)
to

CWH.PRI (Domain level)
     >IT Organizational Unit
          >ExchangeResourceAccounts Organizational Unit
               >Recipients Organizational Unit
                    >Staff Organizational Unit
                         >WCC Organization Unit

You need to work from bottom to top of the structure as you move left to right.  Spaces do not need to be enclosed in quotes.  So, if your first line is indeed what you want then this is the syntax:

dn: CN=Smith Dave,OU=WCC Staff,OU=Recipients,OU=Exchange Resource Accounts,OU=IT,DC=cwh,DC=pri

Advise.
0
 
Netman66Commented:
Sorry one, typo.  The line should read:

dn: CN=Dave Smith,OU=WCC Staff,OU=Recipients,OU=Exchange Resource Accounts,OU=IT,DC=cwh,DC=pri

I reversed the name fields.
0
 
TonyStanleyAuthor Commented:
Thanks for the reply.

OK I tried with the name Dave Smith and the file contents below, and still get the same message below. Am I missing something obvious. I notice you've given the OU Exchange resource accounts, but our OU is definitely without spaces:

C:\WCCExport>ldifde -i -f testimp.ldf -j c:\wccexport\

dn: CN=dave smith,OU=WCC Staff,OU=Recipients,OU=ExchangeResourceAccounts,OU=IT,DC=cwh,DC=pri
changetype: add
objectclass:contact
sn: smith
title: solicitor
physicaldeliveryofficename:  City Hall
telephonenumber: 2222
givenname: Dave
Display Name: Smith, dave
Department: CEX LegServs
Company: Our Business
streetaddress: 15th Floor, City Hall
targetaddress: SMTP:dsmith@wcaddress.gov.uk
mail: dsmith@wcaddress.gov.uk

Logging in as current user using SSPI
Importing directory from file "testimp.ldf"
Loading entries.
Add error on line 1: No Such Attribute
The server side error is "The parameter is incorrect."
0 entries modified successfully.
An error has occurred in the program
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Netman66Commented:
Ok then, let's hit this from another angle.

Export your current OU to file.  Let's see what it is expecting for line # 1.

...

Try this file:

DN: CN=Dave Smith,OU=WCC Staff,OU=Recipients,OU=ExchangeResourceAccounts,OU=IT,DC=cwh,DC=pri
changetype: add
objectClass:contact
sn: Smith
title: Solicitor
physicaldeliveryofficename:  City Hall
telephonenumber: 2222
givenname: Dave
Display Name: Smith, Dave
Department: CEX LegServs
Company: Our Business
streetaddress: 15th Floor, City Hall
targetaddress: SMTP:dsmith@wcaddress.gov.uk
mail: dsmith@wcaddress.gov.uk
0
 
TonyStanleyAuthor Commented:
Thanks again

this is what the export returned
dn: CN=xxxxxx\, xxxxxx,OU=WCC Staff,OU=Recipients,OU=ExchangeResourceAccounts,OU=IT,DC=cwh,DC=pri
changetype: add
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: contact
cn:xxxxx, xxxxx
sn: xxxxx
givenName: xxxxx
displayName: xxxxx, xxxxx
targetAddress: SMTP:xxxxx@xxxx.gov.uk
mail: xxxxx@xxxx.gov.uk

tried your suggested line and got the same old response....

ta

0
 
Netman66Commented:
Ok, now use the exported file as a template.  Plug one new user into the template file and change the switch to import and see what happens.

I notice a difference in line one from our files:

dn: CN=xxxxxx\, xxxxxx,OU=WCC Staff,OU=Recipients,OU=ExchangeResourceAccounts,OU=IT,DC=cwh,DC=pri

Difference ----^

dn: CN=Dave Smith,OU=WCC Staff,OU=Recipients,OU=ExchangeResourceAccounts,OU=IT,DC=cwh,DC=pri
0
 
TonyStanleyAuthor Commented:
Hi again

the syntax below works
dn: CN=smith dave,OU=WCC Staff,OU=Recipients,OU=ExchangeResourceAccounts,OU=IT,DC=cwh,DC=pri
changetype: add
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: contact
cn: smith dave
sn: smith
etc

Is it not possible to import/modify to CNs with commas?


0
 
TonyStanleyAuthor Commented:
I'll give you the points anyway, as your suggestion worked

thanks a lot.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now