Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi @Anonymous
What is the completed error message?
This error may be caused for a distribution key or organizing key is changed at the same time.
Check if the similar thread would help.
or
https://community.powerbi.com/t5/Desktop/Error-when-trying-to-connect-to-IBM-DB2/td-p/69094
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
complete error :
DataSource.Error: Microsoft Db2 Client: Er is een uitzondering opgetreden van het type Microsoft.HostIntegration.Drda.Common.DrdaException. SQLSTATE=HY000 SQLCODE=-1039
Details:
DataSourceKind=DB2
DataSourcePath=as400:446;PRD
Message=Er is een uitzondering opgetreden van het type Microsoft.HostIntegration.Drda.Common.DrdaException. SQLSTATE=HY000 SQLCODE=-1039
ErrorCode=-2146233088
Dear Miss,
I have checked both proposed solutions. Not applicable in my case, since both solutions are correct in my settings. I have emptied the cache in the power BI. Is there any limit on cache or data ? In my excel, I download +/- 4 million data lines into a pivot table.
Yesterday, I have divide the PT into smaller pieces and it works (but it takes all day to download).
KR,
FHO
Hi @Anonymous
From the error message, it seems it takes time out when loading large data.
When you import large data from IBM DB2 database into Power BI, to get it connected quicklly,you could connect to the database in direct query mode.
In this way, it doesn't need to import data into Power BI, but keep a connection with database.
https://docs.microsoft.com/en-us/power-bi/desktop-directquery-about
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 15 | |
| 11 | |
| 11 | |
| 8 | |
| 6 |