OData filtering by decimal column cause out of range exception - odata

I have decimal(6,2) column on my database. In my API I have OData endpoint to table with this column. When I send a request with filter whitch is out of range that decimal (for example 11111) I get out of range exception, but I want to receive just empty list, not error. Is there any setting on OData to achieve that or some other solution?

Related

Filter all rows in a column in body for API call using POSTMAN

I would like to know for a search filter what should be the ideal way to list all types of values from a column using the search term - (search.in(GameType,'Multiplayer' , ',')) from body in POSTMAN. From what I've seen boolean operators are used to filter multiple columns in a table, but for a single column there are implementations for specific values like above. Precisely, I want all the types from the column Gametype in my search. Can you share some thoughts/ideas on this?

Dataflow SQL - unsupported column type NUMERIC

I'm trying to set up a Dataflow-SQL job to run a query in BigQUery and publish the results to a PubSub topic. I'm not using a Dataflow template, I'm using the GCP's Dataflow SQL UI to write a query and configure the output - i.e. PubSub Topic.
The table I'm querying contains String, Date, Timestamp, and Numeric types.
Even if I don't select the column with 'Numeric' data type, I still get a validation error in the editor - unsupported column type NUMERIC.
Is there a way to get around this in Dataflow SQL? Or the source table just can't have columns of Numeric Type?
Numeric types in Dataflow SQL are INT64 and FLOAT64 (8 bytes) but not NUMERIC (16 bytes).
I reproduced your issue on my end and it certainly looks like the table cannot be loaded in the first place, even if you are not selecting the NUMERIC column.

Fixed Calculated Column in Reporting Service Header

I'm using Reporting Service in .net core
I want to display the total cost in the Report header, it calculated by the sum function
and it only get the right result be display in the table that view data
How to calculate this column and display the Result in Fixed header ??
You can use this expression:
=Sum(Fields!TotalCost.Value, "YourDataSetName")
This expression can also be used in a single textbox, which you put into your report.
And btw your TotalCost column has to be from type numeric. If this is the error source use a
CDbl(Fields!TotalCost.Value)
before the function.

Using period / dot when searching users by email on Microsoft Graph API and ODATA return no results

I'm using Microsoft Graph API to get all users from my directory that have their email address starting with a given value.
All is working well except when my value contains a period / dot. In this case, the Graph API returns no result.
How can I search all users with their email starting by a given value containing a period / dot.
Here's an example.
The following request works fine:
https://graph.microsoft.com/v1.0/users?$filter=startsWith(displayName, 'john')
The following request (containing a dot in the odata query) returns no results
https://graph.microsoft.com/v1.0/users?$filter=startsWith(displayName, 'john.d')
I already tried to encode the dot / period with %2E and it does not work:
https://graph.microsoft.com/v1.0/users?$filter=startsWith(displayName, 'john%2ed')
Does anybody know how I can do that ?
Thanks !
Based on my test, dot should work in this filter query.
If we want to search the users by email. we could $filter the field mail not the field displayName.
https://graph.microsoft.com/v1.0/users?$filter=startsWith(mail, 'john.d')

Microsoft Graph filter vs $filter

I am testing filtering using Microsoft Graph Explorer. I noticed odd behavior that I cannot figure out.
Using endpoint https://graph.microsoft.com/v1.0/me/events?filter=start/dateTime%20ge%20%272018-04-01%27 I get properly filtered data back.
However, using documented $ prefix, https://graph.microsoft.com/v1.0/me/events?$filter=start/dateTime%20ge%20%272018-04-01%27, I get nothing. There is no error, just no data coming back.
How do I query the data using the $filter?
You're not actually getting the results you think you are. When Microsoft Graph sees a query parameter it doesn't expect, it simply ignores it.
When you call /events?filter=start/dateTime ge '2018-04-01' it is simply ignoring the unknown filter parameter and returning you an unfiltered result.
When you call /events?filter=start/dateTime ge '2018-04-01', it is filtering out anything prior to April 1, 2018. If there are no events with a start after this date, you will get an empty array as a result.
I assume you're using the default dataset included with Graph Explorer? The default Graph Explorer data set's most recent event is 2017-11-16T08:00:00.0000000.
The reason you see results from the /calendarView endpoint but not the /events endpoint is that /events only returns single instance meetings and series masters while /celandarView shows everything within a date range. In order to avoid having to maintain a dataset with updated events, the demo data relies on a handful of recurring event entries.
Since events does not return individual occurrences of a meeting, you don't see any results from your query.
If you try this query, you'll see actual results:
https://graph.microsoft.com/v1.0/me/events?$filter=start/dateTime ge '2017-04-01'

Resources