I ran code with the start and end date with increments of 30 minutes.
DateTime startTime = new DateTime(2023, 3, 2, 20, 0, 00);
DateTime stopTime = new DateTime(2023, 3, 8, 13, 00,0);
The following code ran
ConversationAggregateQueryResponse res = apiInstance.PostAnalyticsConversationsAggregatesQuery(body);
but res.Results was null four times in this time period.
Does a null mean that no data was collected i.e. an empty string.
Might be the same problem we're seeing for month now. Not sure why it hasn't been fixed. We run conversation jobs and we've been seeing null in the results since Feb 14. We're being suggested a work around which requires to do more work to set up for a temporary solution.
Hi Gerald_Tobin
Could you please provide more information of the request body?
List<ConversationAggregationQuery.GroupByEnum> slist = new List<ConversationAggregationQuery.GroupByEnum>();
List<ConversationAggregationQuery.MetricsEnum> ulist = new List<ConversationAggregationQuery.MetricsEnum>();
string gran = "PT30M";
int yearStart = todayStart.Year;
int monthStart = todayStart.Month;
int dayStart = todayStart.Day;
int hourStart = todayStart.Hour;
int minuteStart = todayStart.Minute;
int yearEnd = todayEnd.Year;
int monthEnd = todayEnd.Month;
int dayEnd = todayEnd.Day;
int hourEnd = todayEnd.Hour;
int minuteEnd = todayEnd.Minute;
string gran = "PT30M";
string fromDate = yearStart + "-" + monthStart + "-" + dayStart + "T" + hourStart + ":" + minuteStart + ":00Z";
string toDate = yearEnd + "-" + monthEnd + "-" + dayEnd + "T" + hourEnd + ":" + minuteEnd + ":00Z";
slist.Add(ConversationAggregationQuery.GroupByEnum.Direction);
slist.Add(ConversationAggregationQuery.GroupByEnum.Queueid);
slist.Add(ConversationAggregationQuery.GroupByEnum.Mediatype);
slist.Add(ConversationAggregationQuery.GroupByEnum.Originatingdirection);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Nblindtransferred);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Nconsulttransferred);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Noffered);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Noutbound);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Noversla);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Ntransferred);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Oservicelevel);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Tabandon);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Tacw);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Tanswered);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Tflowout);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Thandle);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Theld);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Theldcomplete);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Tshortabandon);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Ttalk);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Ttalkcomplete);
ulist.Add(ConversationAggregationQuery.MetricsEnum.Twait);
body.Interval = fromDate + "/" + toDate;
body.Metrics = ulist;
body.GroupBy = slist;
body.Granularity = gran;
Hi Gerard_Tobin,
To reply your previous question, Does a null mean that no data was collected i.e. an empty string.
Correct, if the response is empty, then no aggregate data matched your query.
Will this bug be fixed soon? Or will I have to code a defensive code fix?
I'm not sure what bug you're referring to? Not getting results for an analytics query isn't a bug if no results matched the query. If you believe the data returned by the API is incorrect, please open a case with Genesys Cloud Care to investigate. Customer-specific data cannot be investigated via the forum.
@tim.smith
Getting a null is not the same as getting an empty string. A null means that res.Results is not pointing to an address in memory while a string object does.
@Gerard_Tobin Understood. If you believe the data returned by the API is incorrect, please open a case with Genesys Cloud Care to investigate. Customer-specific data cannot be investigated via the forum.
How do I access Genesys Cloud Care to open a ticket?
system
Closed
April 30, 2023, 4:37pm
12
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.