attribute type undefined (ITS#1011)

Full_Name: Ian Steel
Version: 2.0.7
OS: Redhat 7
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (193.133.92.239)
Hi,
Apologies for this but I've hunted around and can't find the answer.
When doing a bulk load into openldap from an ldif file, using ldapadd, I get
this error :
ldap_add: Undefined attribute type
additional info: attribute type undefined
How do I find out which attribute type the problem is with? All I can see at the
moment is that I have to look at all objectclass definitions which the item is
using and check each attribute off. Surely this cannot be the correct way of
doing this?
I've tried switching on debug on both ldapadd and slapd but it still doesn't
tell me which objectclass and attribute it is having problems with.
Many thanks,
Ian Steel.
ian@bilstone.co.uk