Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

summariseCodeUse() #222

Open
zcuccu opened this issue Oct 9, 2024 · 3 comments
Open

summariseCodeUse() #222

zcuccu opened this issue Oct 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@zcuccu
Copy link

zcuccu commented Oct 9, 2024

Error in summariseCodeUse() - conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AI" in UNION ALL operator.

To Reproduce
codes <- getCandidateCodes(cdm = cdm,
keywords = c("asthma", "eczema"),
exclude = "occupation",
domains = c("Condition", "Procedure", "Drug"),
standardConcept = "Standard",
searchInSynonyms = TRUE,
searchNonStandard = FALSE,
includeDescendants = TRUE,
includeAncestor = FALSE)

event_count <- summariseCodeUse(list("cd" = codes$concept_id),
cdm = cdm)

Screenshots
Uploading image.png…

ODBC failed with error 42000 from [Microsoft][ODBC SQL Server Driver][SQL Server].
x Implicit conversion of varchar value to varchar cannot be performed because the collation of the value is unresolved due to a collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AI" in UNION ALL operator.

@zcuccu
Copy link
Author

zcuccu commented Oct 9, 2024

summariseCodeUse

@edward-burn edward-burn added the bug Something isn't working label Oct 17, 2024
@edward-burn
Copy link
Collaborator

Hi @zcuccu, afraid I´m not sure what is going on here. Could you please try again with the latest 3.2.1 version on cran to see if you get the same error? If so, I will try to dig into this more

@zcuccu
Copy link
Author

zcuccu commented Oct 24, 2024

Hi @edward-burn have tested with version 3.2.1 and receive the same error. Could this be because the collation on our tempdb is SQL_Latin1_General_CP1_CI_AS and main database is SQL_Latin1_General_CP1_CI_AI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants