|===================================================================== | 50%Error in nchar(object, type = “chars”) :
invalid multibyte string, element 4
@SCYou cohort table havs 4 colums and their names are Person_id, cohort_definition_id, start_date amd end_date. All of these variables are consist of numeric numbers…
perhaps the number is not an actual half-width number, but it is a number that is full-width in UTF-8 or korean. i have cases where there is a hidden character in the middle of the string where it is not displayable in English computer, but it is there to block me from copying data onto the database.
we do not know unless you post the raw data. don’t. likely you have to figure it out yourself.
a way to figure it out is to go to that part of the source code and print the data line by line.
@SCYou The main problem was the name of each columns. As you said, the cohort table has 4 columns: ‘subject_id ’(and not person_id ), ‘cohort_definition_id’, ‘start_date’, and ‘end_date’. So I changed all of the names from person_id, cohort_definition_id, start_date, end_date
to subject_id, cohort_definition_id, cohort_start_date, cohort_end_date