FuelSDK-CSharp
FuelSDK-CSharp copied to clipboard
Can not retrieve data
Description I`ve struggled with this error for a long time now. So, when I request ETSentEvent data for the first time (with specific filter) everything works just fine. Changing the filter also seems to be working properly.
BUT, if I request ETSentEvent the second time with the same filter - 0 data returned. I am not sure if it is cached or anything, but can you help me, please, on this one?
var sentEvent = new ETSentEvent()
{
AuthStub = _client,
Props = DefaultEventProps,
SearchFilter = new ComplexFilterPart
{
LeftOperand = new SimpleFilterPart()
{
Property = "EventDate",
SimpleOperator = SimpleOperators.greaterThanOrEqual,
DateValue = new[] { from }
},
RightOperand = new SimpleFilterPart()
{
Property = "EventDate",
SimpleOperator = SimpleOperators.lessThanOrEqual,
DateValue = new[] { to }
},
LogicalOperator = LogicalOperators.AND
}
};
var getReturn = sentEvent.Get();
Description I`ve struggled with this error for a long time now. So, when I request ETSentEvent data for the first time (with specific filter) everything works just fine. Changing the filter also seems to be working properly.
BUT, if I request ETSentEvent the second time with the same filter - 0 data returned. I am not sure if it is cached or anything, but can you help me, please, on this one?
var sentEvent = new ETSentEvent() { AuthStub = _client, Props = DefaultEventProps, SearchFilter = new ComplexFilterPart { LeftOperand = new SimpleFilterPart() { Property = "EventDate", SimpleOperator = SimpleOperators.greaterThanOrEqual, DateValue = new[] { from } }, RightOperand = new SimpleFilterPart() { Property = "EventDate", SimpleOperator = SimpleOperators.lessThanOrEqual, DateValue = new[] { to } }, LogicalOperator = LogicalOperators.AND } }; var getReturn = sentEvent.Get();
Hello Poliit Dmytro
Do you find any workaround ..I have similar issues with the filtering
thank you Amit