CSVDE not creating .csv "Unicode value to a non-unicode file"

Hello all!

I would like to ask you about CSVDE...

I was using ADMT to migrate some accounts from a domain to a new domain.
In this new domain, I had a task that collected all the attributes from all users inside the domain (that are NOT DISABLED), and exported that to a .csv file. The line executed, was:

CSVDE -f "c:\test.csv" -r "(&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2))"

This was working until I've migrated the users with ADMT (using SIDHistory, if it helps...).
It now shows an error:
"Error writing to file. This error happens when the entry cannot be written, it can be caused by writing a Unicode value to a non-unicode file.
An error has occurred in the program"

The CSV file is not generated...
When enabling the log, it appears that the CSVDE stops when reaching the OU that this migrated users were placed...

I saw some users, and found that they are members of groups that have "special characters", such as á é Ç and stuff...
I though that this was originating the error, but I've used the parameter -l "DN, sAMAccountname" to specify only this two fields to be added to the CSV... but I'm still getting the same error...

Any help would be appreciated.

have you all a nice day.
LVL 6
thiagotietzeAsked:
Who is Participating?
 
Michael KnightConnect With a Mentor Commented:
you are correct in your assumption regarding special characters.
I believe the -u parameter is used for non-latin characters, that should keep you in the right charset.
0
 
thiagotietzeAuthor Commented:
Oh god!!! It worked!!!

Just had no idea about this parameter... I should read more carefully the "help file..." :-D

Thanks, you helped me a lot!
0
 
thiagotietzeAuthor Commented:
Oh god!!! It worked!!!

Just had no idea about this parameter... I should read more carefully the "help file..." :-D

Thanks, you helped me a lot!
0
 
Michael KnightCommented:
hah! no prob.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.