I have created a system DSN with oracle BI server driver adding a excel as source data. I was able to create a RPD. Once I logged in to analytic I was able to see the RPD in analysis. But if I select any column and check for the result I get an error like mentioned below. Please help me sort out this issue.
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 16001] ODBC error state: IM002 code: 0 message: [DataDirect][ODBC lib] Data source name not found and no default driver specified. (HY000)
SQL Issued: SELECT 0 s_0, "New"."Sample"."Customer Name" s_1 FROM "New" FETCH FIRST 65001 ROWS ONLY
Related
I am trying to set up Data Source Name for Snowflake database connection using ‘ODBC Data Sources (64 bit)’. I have downloaded and installed Snowflake ODBC driver. I do see ‘SnowflakeDSII Driver’ in the ODBC driver list. When I try to setup Data Source Name, I am running into the following error …
[SIMBA][DSI] An error occurred while attempting to retrieve the error message for key 'DSN Error' and Component ID 102:
Invalid source component ID: 102
Appreciate your help in resolving this issue.
Thanks.
Venkat.
The issue is now resolved.
After specifying value for 'Data Source', it allowed me to create the DSN.
Thanks.
Venkat.
We have access databases (.accdb) for metadata from really old processes that are trying to die. I am trying to connect to these databases with R RODBC. When I navigate to the file path, I can open the database in Access without entering any credentials. When I try to load it in R, I am prompted a user authentication dialogue Box (R in Windows), and I can't seem to authenticate. There is a DSN file in the same directory, but when I try to connect to it, I get the following error:
ch <- odbcConnect("this.dsn")
Warning messages:
1: In RODBC::odbcDriverConnect("DSN=this.dsn") :
[RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
2: In RODBC::odbcDriverConnect("DSN=this.dsn") : ODBC connection failed
and ch returns -1
I have a MarkLogic ODBC server for a tableau connection. I have created the view and is already accessible. However, I am having problems manipulating Date elements in Tableau. I've encountered the following error:
An error occurred while communicating with the Other Databases (ODBC) data source 'database (new.database) (__MarkLogic)'.
Bad Connection: Tableau could not connect to the data source.
ERROR: XDMP-CAST: (err:FORG0001) Invalid cast: () cast as xs:date;
Error while executing the query
SELECT SUM("database"."amount") AS "sum_amount_ok",
SUM("database"."offered") AS "sum_offered_ok",
"database"."type" AS "type"
FROM "new"."database" "database"
WHERE (CAST({fn TRUNCATE(EXTRACT(YEAR FROM CAST("database"."date_of_permit" AS DATE)),0)} AS INTEGER) = 2014)
GROUP BY 3
Running this query (removing the {fn} tag) in qconsole results in the same casting error. How do I resolve this?
Thanks!
Update:
As grtjn commented, there is a null entry in my data that is causing this casting error.
I'm using Microsoft R Open version 3.5 and the most recent packages
for odbc and dbi as of December 19, 2018 downloaded via CRAN. I'm able to connect to the source, list tables, and confirm that the table exists per dbExistTable. The driver is an oracle driver that connects to an OBIEE database. I'm able to confirm that the driver, dsn, and query work independently from both Excel and SAS.
tbl_id <- DBI::Id(catalog="Human xxx", table="xxx")
dbExistsTable(con,tbl_id)
[1] TRUE
However I'm unable to read or query the tables, due to the error below.
dbReadTable(con,tbl_id)
Error: 'SELECT * FROM "Human xxx"."xxx"'
nanodbc/nanodbc.cpp:1581: S1092: [NQODBC] [SQL_STATE: S1092]
[nQSError: 10071] The option type is out of range.
Also get the same error with a query:
dbGetQuery(con,'SELECT Seg FROM "Account xxx"."Accounting xxx"')
Error: 'SELECT Seg FROM "Account xxx"."Accounting xxx"'
nanodbc/nanodbc.cpp:1581: S1092: [NQODBC] [SQL_STATE: S1092] [nQSError: 10071] The option type is out of range.
Where "Seg" is a simple text column of 10 characters.
I am trying to fetch records of a hive table into R console.
I have successfully created the connection. However, when I try to access the hive table weblogs, it indicates that the table can't be found.
I have already created the weblogs table in HIVE and I have granted the permission on this table to the user from which I'm logged in.
I am using derbydb metaphore
weblogs <- dbReadTable(conn,"weblogs")
Error in .verify.JDBC.result(r, "Unable to retrieve JDBC result set
for ", : Unable to retrieve JDBC result set for SELECT * FROM
weblogs (Error while compiling statement: FAILED: SemanticException
[Error 10001]: Line 1:14 Table not found 'weblogs')