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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Elage37
Frequent Visitor

CLR type

Hello I have a problem with the display of time type data. This is an OLE DB connection to an HFSQL database (windev). The error message I get when I try to view the data on power query is " 'We do not support CLR type 'Microsoft.Mashup.Engine1.Runtime.ValueException'".' ".. I'm stuck because all my analysis is going to be about the in and out times of the database
If anyone has faced this before please help me

 

 

 

 

Bonjour j'ai un problème avec l'affichage des données de type heure. Il s'agit d'une connexion OLE DB vers une base de données HFSQL ( windev). Le message d'erreur que j'ai quand j'essaye de voir les données sur power query est " 'Nous ne prenons pas en charge le type CLR « Microsoft.Mashup.Engine1.Runtime.ValueException ».' ".. Je suis bloqué parce que tout mon analyse va porter sur les heures d'arrivée et de descente de la base de données
Si quelqu'un a déjà été confronté à cela help me pleaseCapture d’écran (8).pngCapture d’écran (9).png

1 ACCEPTED SOLUTION

Most connectors for SQL style databases allow you to specify a "native query" when you create the connection.

 

lbendlin_0-1691051387047.png

For SQL Server the field is "SQL Statement".

 

Alternatively you can implement your SQL logic in a view at the data source, and then in Power BI you can consume the view as if it were a table.

View solution in original post

16 REPLIES 16
lbendlin
Super User
Super User

Instead of consuming the table can you run a SQL query that casts the values in a more agreeable format?

Hi,
in power query?? how to do?

 

Show your current code (sanitized)

let
Source = OleDb.DataSource("provider=PCSoft.HFSQL;initial catalog=IBP_DATA;data source=192.168.50.22"),
IBP_DATA_Database = Source{[Name="IBP_DATA",Kind="Database"]}[Data],
POINTAGE_Table = IBP_DATA_Database{[Name="POINTAGE",Kind="Table"]}[Data]
in
POINTAGE_Table

In the connection settings you can already specify a custom query.

 

lbendlin_0-1689602206043.png

 

in this case i want to use the table "pointage " already existing. 

What custom query can i use for changing perhaps for casting values?

That depends on the SQL flavor used by your data source.

What do you need right now for helping? 
what do i do for giving you the SQL flavor?Capture d’écran (11).png
i have this in this window. What do we write on the custom query?

 

I don't know how PCSoft.HFSQL works.  Something like

 

SELECT CAST([HEUREARRIVEE] as text) from POINTAGE

Bonjour,
toujours dans la méme optique . Ayant un fichier .sql , comment faire pour l'intégrer dans power query. Le but c'est de voir s'il va pouvoir enlever la "complexité" des colonnes de la base initiale en des colonnes de type heure simple et exploitable dans power query

Most connectors for SQL style databases allow you to specify a "native query" when you create the connection.

 

lbendlin_0-1691051387047.png

For SQL Server the field is "SQL Statement".

 

Alternatively you can implement your SQL logic in a view at the data source, and then in Power BI you can consume the view as if it were a table.

thank you for the beginning of track. I will test that and continue to look the solution. I will come back to you if this did not ^pass

Hi,Elage,

have you solve this issue? Have the same trouble unfortunatelly

nop unfortunatly. i was forced to export in excel for using the colums in the table 

Thx you i will try that and i will let you know! thx

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors