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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ger
Frequent Visitor

Binary data Oracle data type

Hello,

 

We a have a problem accessing Binary data in Oracle. This is not image/blob data. Can see the columns while in query view. When the query is run the columns disappear from the report view and cannot be used. This happens in both import and direct query mode.

 

How to deal with Binary data types in Power BI?

 

Regards

 

Ger

9 REPLIES 9
steambucky
Helper III
Helper III

Yes...Any news on relsoving this? Did you manage to import a Oracle Blob? Or did you figure out some sort of work-a-round?

leed
Advocate II
Advocate II

Hi @ger

Are you still stucking in this problem or you know how to get out of this?

Thanks,

Dung Anh

Hello..

Any news on this, if this can be resolved?

 

We are trying to build our dataset, using the query builder, making relationships between tables where the PK is a binary raw type column. The problem, is Power BI, doesn't show this columns, so we can't make the relationships. We don't want to build the dataset with a predifined sql, as this is not performant.

 

Any help will be appreciate it.

 

Microsoft, never answer or help on this issue. Or even advised if this will be resolved in future versions of Desktop,

 

Regards

Pablo

v-qiuyu-msft
Community Support
Community Support

Hi @ger,

 

Which kind of Binary data type did you store on Oracle database? What do you mean " Can see the columns while in query view. When the query is run the columns disappear from the report view and cannot be used. This happens in both import and direct query mode."? Can you share some screenshots to clarify the issue?

 

By the way, make sure you are using the latest desktop version 2.43.4647.541.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

Desktop is the latest version 2.43.4647.541 64-bit (February, 2017)

 

The database is the backend of an off-the-shelf product.

This is the Query Editor view of one of the tables. The Binary data type is highlighted.

 

ora_bin_01.PNG

 

It cannot be expanded using the down arrows, as would be seen with a file.

 

To simply the example, two cols are chosen.

ora_bin_02.PNG

 

Close and apply the query. Look at the Feilds list in Report view, CATEGORY (alpha numeric type) is there, AFFECTED_RC is not.

 

ora_bin_03.PNG

 

This is direcy query mode. Its the same behaviour in import mode, which can't be used anyway because of volume of data.

 

The data in the fields, and there are many like this. The content is not an image or other binary type, is more like a alphanumneric string.

 

ora_bin_04.PNG

 

Does this help clarify?

 

 

hugoberry
Responsive Resident
Responsive Resident

You can apply a transformation for the Binary column as Text.FromBinary.

 

= Table.AddColumn(YourTable, "Text_CATEGORY", each Text.FromBinary([CATEGORY]))

 

 

ger
Frequent Visitor

@hugoberry

 

Unfortunately no, it gives a warning about adding a step that results in a query that is not supported

in DriectQuery mode.

 

Am trying something like this -

 

let
    Source = Oracle.Database("odsprd", [HierarchicalNavigation=true]),
    DTMRT_ADS = Source{[Schema="DTMRT_ADS"]}[Data],
    TRILL_CALL_REQ1 = DTMRT_ADS{[Name="TRILL_CALL_REQ"]}[Data],
    #"Removed Other Columns" = Table.SelectColumns(TRILL_CALL_REQ1,{"AFFECTED_RC", "CATEGORY", "ID", "ZCR_LOCATION"}),
    #"Duplicated Column" = Table.DuplicateColumn(#"Removed Other Columns", "AFFECTED_RC", "AFFECTED_RC - Copy"),
    #"Added Custom" = Table.AddColumn(#"Duplicated Column", "Custom", each Text.FromBinary([AFFECTED_RC]))
in
    #"Added Custom"

 

 

Interestingly, if the offending column is simply copied and no manual transform applied, it seems to work. I suspect the problem centres on trying to find the data type from the binary.

 

This does not feel like a solution, maybe I got lucky with the one piece of data where this will work.

 

hugoberry
Responsive Resident
Responsive Resident

What if you do Table.TransformColumnTypes and choose a different type then binary?

#"Added Custom" = Table.TransformColumnTypes( #"Duplicated Column",{ "AFFECTED_RC",type text})
ger
Frequent Visitor

Same as before - adding a step that results in a query that is not supported in DriectQuery mode.

 

Its not an error as such though its not much use either.

 

Copying the col does this (different field used for example) -

 

ora_bin_05.PNG

 

Can see the data type has been detected as Alphanumeric in the new field even if contetns not visible in query view.

 

Doing similar on the association Location dimension will allow a join between the two new copied columns.

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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