As requested by biomaRt, I am reporting the issue.
library(biomaRt)
ensembl_mart <- useEnsembl(biomart = "ensembl",
dataset = "hsapiens_gene_ensembl")
attributes <- biomaRt::searchAttributes(mart = ensembl_mart, "coding|cds")
attributes <- attributes[attributes$page=="sequences","name"]
attributes
## [1] "coding_transcript_flank" "coding_gene_flank" "coding" "cdna_coding_start" "cdna_coding_end"
## [6] "cds_length" "cds_start" "cds_end" "cdna_coding_start" "cdna_coding_end"
##[11] "genomic_coding_start" "genomic_coding_end"
result <- biomaRt::getBM(attributes = attributes, filters = c("ensembl_transcript_id"), values = "ENST00000217305", mart = ensembl_mart)
## NULL
## Error in .processResults(postRes, mart = mart, sep = sep, fullXmlQuery = fullXmlQuery, :
## The query to the BioMart webservice returned an invalid result.
## The number of columns in the result table does not equal the number of attributes in the query.
## Please report this on the support site at http://support.bioconductor.org
sessionInfo()
# R version 4.0.0 (2020-04-24)
# Platform: x86_64-w64-mingw32/x64 (64-bit)
# Running under: Windows 7 x64 (build 7601) Service Pack 1
#
# Matrix products: default
#
# locale:
# [1] LC_COLLATE=Swedish_Sweden.1252 LC_CTYPE=Swedish_Sweden.1252 LC_MONETARY=Swedish_Sweden.1252 LC_NUMERIC=C LC_TIME=Swedish_Sweden.1252
#
# attached base packages:
# [1] stats graphics grDevices utils datasets methods base
#
# other attached packages:
# [1] biomaRt_2.44.0
#
# loaded via a namespace (and not attached):
# [1] Rcpp_1.0.4.6 compiler_4.0.0 pillar_1.4.4 dbplyr_1.4.4 prettyunits_1.1.1 tools_4.0.0 progress_1.2.2 digest_0.6.25 bit_1.1-15.2 RSQLite_2.2.0 memoise_1.1.0
# [12] BiocFileCache_1.12.0 tibble_3.0.1 lifecycle_0.2.0 pkgconfig_2.0.3 rlang_0.4.6 DBI_1.1.0 curl_4.3 parallel_4.0.0 stringr_1.4.0 httr_1.4.1 dplyr_1.0.0
# [23] rappdirs_0.3.1 generics_0.0.2 S4Vectors_0.26.1 vctrs_0.3.1 askpass_1.1 IRanges_2.22.2 hms_0.5.3 tidyselect_1.1.0 stats4_4.0.0 bit64_0.9-7 glue_1.4.1
# [34] Biobase_2.48.0 R6_2.4.1 AnnotationDbi_1.50.0 XML_3.99-0.3 purrr_0.3.4 blob_1.2.1 magrittr_1.5 ellipsis_0.3.1 BiocGenerics_0.34.0 assertthat_0.2.1 stringi_1.4.6
# [45] openssl_1.4.1 crayon_1.3.4
I should also note that querying online data can be sort of flaky, and Ensembl has been particularly flaky of late (evidently they are upgrading their systems?), so it is often easier to use downloaded sources. As a quick example (there are several vignettes you could read, in particular for the ensembldb package, AnnotationHub, BSgenome, AnnotationDbi).