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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

OLE DB or ODBC error Exception from Hresult: 0x80040E23

 

Hello, 

 

I am extracting data from Oracle databse using SQL code.I am aiming for an excel based control sheet which will be updated by the users and the data automatically gets pulled from Oracle through SQL code, for which, I have created parametres and subsequently  embedded the parametres in the SQL code using Invoke custom function .However, whenever I am trying to load the data in the model i am getting an error message ( in the subject line). below is one of the few codes that I am using 

 

let
Source = Oracle.Database("icanp1", [HierarchicalNavigation=true, Query="Select#(lf)#(lf)PERIOD_ID AS EARNED_PERIOD_ID,#(lf)PURCHASER_AGENT_ID AS CUSTOMER_ID, #(lf)DISTRIBUTOR_AGENT_ID AS DISTRIBUTOR_ID,#(lf)ORG_LEVEL2_ID,#(lf)ORG_LEVEL3_ID,#(lf)ORG_LEVEL4_ID,#(lf)category_id,#(lf)sub_category_id,#(lf)item_id,#(lf)cust_id,#(lf)manufacturer_agent_id #(lf)From GPO.TRANS_REPORTING #(lf)#(lf)where period_id between '"&Trans_FROM&"' and '"&Trans_to&"' and manufacturer_agent_id = '"&Manuf_id&"'"])
in
Source

 

"Trans_FROM", Trans_to, Manuf_id(in the code) are the parametres which I have declared in PBI . I am able to extract the required data in the model but whenever I wish to apply or ooad the same, I am getting this error. The control sheet(xls file for users) that I am using has the columns declared as 'text' for the parametres declared. Pls help URGENT!!!

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.