Hello!
I've been trying to threat a field using M functions, but, for some reason it just doesn't returns any values at the CUBE on the server.
If I try to run it using my machine in Visual Studio as working directory the data loads normally, but when I do deploy it on the server it does not for some reason.
The cube full process runs with success and there's no error messages at all, I've tried to drop the cube and redeploy it but nothing change
I think there's some package missing on the server side to support functions like Html.Table, I've tried other custom functions avoiding that one but none of then worked.
Cube compatibility Level: 1500
M query example:
let
Source = Value.NativeQuery(#"MyServer;MyDB", "
select * from MY_QUERY
"),
Custom1 = Table.ReplaceValue(Source,"#(cr)#(lf)","",Replacer.ReplaceText,{"Department"}),
RemoveTags = Table.AddColumn(#"Custom1", "Custom", each try Html.Table([#"Risk Comment"], { {"Column1", ":root"}}){0}[Column1] otherwise null),
#"Cleaned Text" = Table.TransformColumns(RemoveTags,{{"Custom", Text.Clean, type text}}),
#"Trimmed Text" = Table.TransformColumns(#"Cleaned Text",{{"Custom", Text.Trim, type text}}),
#"Removed Columns" = Table.RemoveColumns(#"Trimmed Text",{"Risk Comment"}),
#"Replaced Value" = Table.ReplaceValue(#"Removed Columns","-","",Replacer.ReplaceText,{"Custom"}),
#"Added Custom" = Table.AddColumn(#"Replaced Value", "Risk Comment", each Text.Start([Custom], 255))
in
#"Added Custom"