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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JulBes
Frequent Visitor

Error with Table.TransformColumnTypes function on SAP HANA DB

Hi,

I have an DataSource on a SAP HANA DB with the DirectQuery mode.

The Power Query running well on the Power BI Desktop June 2022 version. But since the last upgrade (July 2022 Version), the query make an error by using the Table.TransformColumnTypes function. I try to convert a NUMC type from SAP HANA to an Integer.

 

Here the error Message (in French) :

 

JulBes_0-1659620666257.png

 

Could you please help me?

 

 

1 ACCEPTED SOLUTION
JulBes
Frequent Visitor

Hi,

I note that the Problem doesn't appaers anymore with the Version : 2.108.997.0 64-bit (aoรปt 2022). Here is a test from the same Table/DB as my previous message.

 

JulBes_0-1662968299352.png

 

The conversion STRING -> INTEGER works:

JulBes_1-1662968376462.png

 

 Does somebody know where is the correction documented?

 

Thanks in Advance

Regards

Julien

 

View solution in original post

9 REPLIES 9
ronrsnfld
Super User
Super User

In the list of Applied Steps on the right, please select steps previous to the TransformColumnTypes step and check for the First step returning that error.

The previous step doesn't return that error.

 

JulBes_0-1659959468007.png

JulBes_1-1659959667141.png

 

 

Unfortunately, at this point, without sufficient data and code to reproduce the problem, I will not be able to help you further. Perhaps someone else can.  If not, perhaps you could create a file, with sensitive information removed, that will reproduce the problem (with data AND code) and upload it to some sharing site (eg OneDrive; DropBox) and then post a link here.

I think that problem is linked with the source system SAP BW/4HANA.

 

We could reproduice de Bug on our Sandbox System, here the step.

Create an aDSO with 2 colums as following:

JulBes_0-1660124494601.png 

JulBes_1-1660124618806.png

With the "External SAP HANA View" Option, a Calculation View will be created on HANA DB

JulBes_3-1660125258907.png

 

Insert one "dummy" row with values 123 in both columns. Data Preview in BW4 look like this:

JulBes_2-1660124766214.png

 

In PowerBI Desktop:  import Data from the SAP HANA DB with the DirectQuery

stsaphdb04.

JulBes_4-1660125902918.png

 

Select the column

 

JulBes_5-1660125918416.png

Data Preview in PowerQuery before the transformation

JulBes_6-1660126031165.png

Try to convert the NUMC type to Integer

JulBes_7-1660126118629.png

And then the bug

 

JulBes_9-1660126190998.png

 

 

 

JulBes
Frequent Visitor

With the June 2022 Version, the transformation works well :

JulBes_0-1660133748258.png

 

JulBes
Frequent Visitor

Hi,

I note that the Problem doesn't appaers anymore with the Version : 2.108.997.0 64-bit (aoรปt 2022). Here is a test from the same Table/DB as my previous message.

 

JulBes_0-1662968299352.png

 

The conversion STRING -> INTEGER works:

JulBes_1-1662968376462.png

 

 Does somebody know where is the correction documented?

 

Thanks in Advance

Regards

Julien

 

lbendlin
Super User
Super User

And you don't have any transform in your Power Query that manipulates data based on the index column?

No, I don't have an index column.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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 Solution Authors