Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Randyr
Frequent Visitor

ODBC Error with Cache DB

Hello,

 

I am brand new to Power BI and I am trying to pull data in from Avaya Aura Contact Centre which is an Intersystems Cache DB.  I am able to see the tables however when I select one of the tables to actually view the data, I am getting the following error.

 

DataSource.Error: ODBC: ERROR [42000] [Cache ODBC][State : 37000][Native Code 1]
[C:\Program Files\Microsoft Power BI Desktop\bin\Microsoft.Mashup.Container.NetFX40.exe]
[SQLCODE: <-1>:<Invalid SQL statement>]
[Location: <Prepare>]
[%msg: < IDENTIFIER expected, LITERAL ('') found^select "Timestamp" , "ApplicationID" , "Application" , "CallsAbandoned" , "CallsAbandonedAftThreshold" , "CallsAbandonedDelay" , "CallsAnswered" , "CallsAnsweredAftThreshold" , "CallsAnsweredDelay" , "CallsAnsweredDelayAtSkillset" , "CallsConferencedIn" , "CallsCo
Details:
    DataSourceKind=Odbc
    DataSourcePath=dsn=CCMS)CACHE

 

 

I am able to look at this data using Crystal Reports so I am not sure what what I am doing wrong.  I updated the ODBC driver (x64) but that did not work. I appreciate any assistance you can provide.

 

Thank you! 

 

RR

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Randyr,

Glad to hear the issue is solved. You can accept your reply as answer, that way, other community members would benefit from your solutions once they get same issues.

Thanks,
Lydia Zhang

View solution in original post

12 REPLIES 12
Randyr
Frequent Visitor

Hello,

 

When you are setting your data source, under 'advanced options' you can add an SQL statement. I simply added

 

select * from iAgentPerformanceStat  

 

or

 

select * from mApplicationStat  

 

Depending on what data you are looking for. (Agent or Application data)

 

I hope this is helpful

 

RR

kmilus
New Member

I have de same problem.

How did you solve?

kmilus
New Member

I have de same problem.

Haw did you solve?

hugoberry
Responsive Resident
Responsive Resident

Try replacing " in your select query...

select "Timestamp" , "ApplicationID" , "Application" , "CallsAbandoned" , "CallsAbandonedAftThreshold" , "CallsAbandonedDelay" , 

Thank you Hugoberry, this makes perfect sense to me however I do not see anywhere in the Query editor where I can change this select query??

 

Sorry for being a newbie

hugoberry
Responsive Resident
Responsive Resident

It is hard to tell without having access to your query.

If you loaded the data from Get Data>ODBC  there is an Advanced option which you can use

ODBC.PNG

Thank you, yes that is what I am doing.  The Advanced options are blank, and if I leave them that way it will show me the tables but I get the error when I try to preview the data.

 

odbc2.png

 

If I go back and start again and try adding 

 

select "Timestamp" , "ApplicationID" , "Application" , "CallsAbandoned" , "CallsAbandonedAftThreshold" , "CallsAbandonedDelay" ,  as you suggested, I see this now....before getting to the 'Navigator" window.

 

odbc.png

hugoberry
Responsive Resident
Responsive Resident

What happens if you escape the quotes?

select ""Timestamp"" , ""ApplicationID"" , ""Application"" , ""CallsAbandoned"" , ""CallsAbandonedAftThreshold"" , ""CallsAbandonedDelay"" ,

Thank you, adding escape quotes did not work unfortunately.

Randyr
Frequent Visitor

I got it!   I just changed it to a simple SQL query.   SELECT * from iAgentPerformanceStat

 

Thank you for the help!!

Anonymous
Not applicable

Hi @Randyr,

Glad to hear the issue is solved. You can accept your reply as answer, that way, other community members would benefit from your solutions once they get same issues.

Thanks,
Lydia Zhang

hugoberry
Responsive Resident
Responsive Resident

Aha, so probably using the query without quotes would have worked as well:)
Glad that you've sorted this

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors