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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi guys, I've a question about the integration of ACL with Power BI, I'm new here, so I don't understand so much about the topic.
I do the connnection with ODBC and I find correctly the table I want, but, ever show me this error:
DataSource.Error: ODBC: ERROR [HY000] [ACL][AclDSI] (7) Error converting Acl Connector string data ('Boa tarde!) to SQL type LONGVARCHAR.
Details:
DataSourceKind=Odbc
DataSourcePath=dsn=ACL ODBC 64
OdbcErrors=Table
If I delete this column where has this string, show the error on another colum, and ever is about the convertion in LONGVARCHAR.
If you need something else about more information, I'll respond as soon as possible.
Thanks guys.
I took a picture about this error:
Solved! Go to Solution.
@mathdts,
The above error message indicates that ODBC driver is not properly converting ACL's string data into an SQL equivalent. You would need to find out these text values and clean them with REGEXREPLACE function in ACL before you import data to Power BI Desktop. For more details, please review Thomas's reply in the following similar thread.
https://community.acl.com/s/question/0D5C000003v6Tv2KAE/microsoft-power-bi-connector?language=en_US
Regards,
Lydia
@mathdts,
The above error message indicates that ODBC driver is not properly converting ACL's string data into an SQL equivalent. You would need to find out these text values and clean them with REGEXREPLACE function in ACL before you import data to Power BI Desktop. For more details, please review Thomas's reply in the following similar thread.
https://community.acl.com/s/question/0D5C000003v6Tv2KAE/microsoft-power-bi-connector?language=en_US
Regards,
Lydia
Thanks (@Anonymous) Lydia , I'll try this, and I'll get back in touch.
Hi @Anonymous
I already tried the solution of REGEXREPLACE(FieldName '\r|\n' ' ') to clean your text fields of these characters, but it didn't work, I'm still getting this error:
DataSource.Error: ODBC: ERROR [HY000] [ACL][AclDSI] (7) Error converting Acl Connector string data ('Margecca) to SQL type LONGVARCHAR.
I'd appreciate any help. Thanks in advance.
I got a solution. The non-printable TAB character also provoke this error, so the solution was to include it in the Regular expression, like this:
ALLTRIM(REGEXREPLACE(FIELDNAME; "\r|\n|\t"; ""))
Hello, could you show the example of query? I cannot find, how to apply this regulat expression
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 7 | |
| 6 |