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
Anonymous
Not applicable

Error ODBC when added merged columns

Hi ,

I got this error ODBC: ERROR [42000] [SAP AG][LIBODBCHDB DLL][HDBODBC] Syntax error or access violation;257,  when I inserted step for merged columns.

Ex inserted step: = Table.AddColumn(#"Added Custom", "Sold To", each Text.Combine({[#"Sold To Key"], [#"Sold To Desc"]}, " "), type text)

This error appears only on some users laptop, and only since recently, in Excel and/or PoweBI.

I tried two different laptop with the same credentials, one was having the issue on PowerBI and the other has the issue in Excel.

We checked security and Drivers version (HDBODBC and SAP HANA for MS Excel) and still no clues about what causing this error.

The DataBase is SAP HANA.

 

Any ideas to what could cause the trouble and how to solve it?

 

4 REPLIES 4
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

you using a coustom made conector or a Hana Database conector from power bi?

also some example of the query steps before and after the problem could be usefull to find the issue if possible. 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Anonymous
Not applicable

I use Hana Database connector.

Steps before the probelm is Added items, works fine I can see the data from the Query,

then Inserted merged column = generate the error.

No steps after

Sardes_s_0-1611237341911.png

 

 

try a mor simply approach to see what happend instead of using the combine function use a costum column like this = Column1&"-"&Column2 

and lets see what error says over here. 

also try loading the query to the model an see the full table of data without any step.





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Anonymous
Not applicable

= Column1&"-"&Column2 give the same Error message,

I also tryed  =Column1&Column2  and thid works fine, Looks like it dosn't like the double quote " " and columns combination

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.