cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

Re: brackets in an OData URL

Hi @ayoub_sardouk , 

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.

Highlighted
Frequent Visitor

Re: brackets in an OData URL

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

Highlighted
Frequent Visitor

Re: brackets in an OData URL

Up

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.