Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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:
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.
Solved! Go to 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.
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
@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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 6 | |
| 5 |