Closed filipmaljkovic closed 4 months ago
I'm afraid I'm getting the same error message after updating DbDiagnostics and rerunning executeDbProfile and then rerunning the "upload" code
hi @filipmaljkovic usually when I get an error like this it is when I am running executeDbDiagnostics
and I have duplicates in my dbProfile extract. There is a weird bug where if you set appendAchilles = FALSE but then the writeTo schema as the Achilles schema it will pull the Achilles results twice. Is it possible there are duplicates in your file?
If you mean db_profile_results_dist.csv, there don't appear to be duplicates there.
Looking at db_profile_results.csv, there don't appear to be duplicates there either.
cat db_profile_results.csv | sort | uniq -c | sort -nr
returns all "ones", meaning that there are no exact duplicate rows.
I do however have "NA" values for several strata. Dunno if that's expected or not, i.e. whether that would account for an error like this. Prolly not, since the breakage appears on stratum 1, which does appear to have values (except for the first data row in the csv -- but even if I remove it, the error persists).
I ran the code from the section 2. Upload results to a local database and here's the output I'm getting: