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

brackets in an OData URL

Hello,

 

I'm trying to get data from an oData URL.  There is a huge amount of data, so i want to filter on specific column in my request.

The problem is that my column name contain brackets "ShortcutDimCode[4]".

 

This is my url :

 

http://xxxxxxxxxx.com:7088/xxxxxxxxx/OData/DEVIS_ACHATSPurchLines?$filter= ShortcutDimCode[4] eq 'xxxx'

 

image of the error :

https://ibb.co/Q6njkYn 

 

Is it possible to filter with a column name that contain brackets ?

 

Thanks for your help

3 REPLIES 3
Anonymous
Not applicable

Up

dax
Community Support
Community Support

Hi @Anonymous , 

It seems that you have specific charater in column name, you could try to use x005B_Column_x005D to see wether it work or not. In addition, it seems that your value also have "[", "]", right? You could remove it or use above suggestions to see whether it work or not.

You could refer to Filter a report using query string parameters in the URL  for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

DataSource.Error: Microsoft.Mashup.Engine1.Library.Resources.HttpResource: Request failed: 
OData Version: 3 and 4, Error: The remote server returned an error: (400) Bad Request. (Type 'NAV.DEVIS_ACHATSPurchLines' does not have a property 'ShortcutDimCode0x005B_4_0x005D'.)
OData Version: 4, Error: The remote server returned an error: (415) Unsupported Media Type. (Unsupported media type requested.)
OData Version: 3, Error: The remote server returned an error: (400) Bad Request. (Type 'NAV.DEVIS_ACHATSPurchLines' does not have a property 'ShortcutDimCode0x005B_4_0x005D'.)
Details:
    DataSourceKind=OData
    DataSourcePath=http://xxxxxxxxx.com:7088/xxxxxxx/OData/DEVIS_ACHATSPurchLines

 

column name : ShortcutDimCode[4]

value don't contain any special character

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