Forum Discussion
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 :
Is it possible to filter with a column name that contain brackets ?
Thanks for your help
3 Replies
- daxCommunity 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 ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- AnonymousNot 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_ACHATSPurchLinescolumn name : ShortcutDimCode[4]
value don't contain any special character
- AnonymousNot applicable
Up