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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Power_It_Up
Helper II
Helper II

Denodo causing ODBC error

Afternoon.

 

I have a Denodo script which has run perfectly well until I added this statement:

 

CAST(

CASE
WHEN g.caseid = '1234' AND r.priority = 'Y'
THEN '1234Y'
WHEN g.caseid = '1234'
THEN '1234N'
ELSE g.caseid
END
AS VARCHAR) AS "CASEID"

 

This is the error:

Power_It_Up_0-1768573931965.png

 

I've tried wrapping the CASE statement with TEXT, VARCHAR and tried other solutions, but to no avail.  The g.caseid field in Denodo is type text.

 

When leaving the statement as ' g.caseid AS "CASEID" ' it runs fine.  If I filter out id 1234 prior to applying the change, the script runs fine.  It deosn't seem to like me adding a Y or N after 1234 even though the field is text.

 

Help! lol

 

Regards,

P.

 

 

1 ACCEPTED SOLUTION

@cengizhanarslan Thank you for replying. I tried the refresh preview prior to executing the query but it still shows the same error.

 

Edit: I opened a fresh workbook and placed my query in that and it's working fine! I can't re-create the whole workbook, but this is interesting.

 

Edit2: I added a duplicate Denodo query in the existing problematic workbook and this one is executing fine.  So something is causing the original query to fail.

View solution in original post

3 REPLIES 3
cengizhanarslan
Super User
Super User

Power BI caches column metadata. After changing the Denodo view/query, in Power Query you may need to:

  • Clear cache / refresh preview

  • Or remove/recreate the step that defines the source schema

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

@cengizhanarslan Thank you for replying. I tried the refresh preview prior to executing the query but it still shows the same error.

 

Edit: I opened a fresh workbook and placed my query in that and it's working fine! I can't re-create the whole workbook, but this is interesting.

 

Edit2: I added a duplicate Denodo query in the existing problematic workbook and this one is executing fine.  So something is causing the original query to fail.

Hi @Power_It_Up,

Thank you for the update. We appreciate your efforts and are glad to hear that the issue has been resolved.

Your findings are valuable and will certainly help other community members who may encounter similar behavior related to cached metadata in Power BI.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.