Periodically you should run a check on the attribute map files and correct any problems that might exist. attradmin provides options that allow you to check a file, correct entries with syntax errors, and sort entries that are out of order.
To check the consistency of the file, enter:
attradmin -A attrname -c
where attrname is the name of the attribute.
If the file contains errors, the command displays output similar to the output shown below:
Error on line number 2: Mandatory field missing Error on line number 4: Duplicate entry Error on line number 5: Line out of order Error on line number 7: Mandatory field missing Error on line number 8: Line out of order Error on line number 9: Bad transparent mapping Error on line number 10: Bad transparent mapping Error on line number 15: Line out of order 8 error(s) found in attribute mapTo correct the problems in the file, use the -f option, as follows:
When the -f option is entered, attradmin gives you the opportunity to replace entries that contain syntax errors. It then sorts entries that are out of order.
Entering attradmin with the -c option again will verify that all errors were fixed correctly.