FuelSDK-CSharp icon indicating copy to clipboard operation
FuelSDK-CSharp copied to clipboard

Can not retrieve data

Open etcetera33 opened this issue 4 years ago • 2 comments

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();

etcetera33 avatar Jun 11 '20 17:06 etcetera33

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();

amitsinhnakoom avatar Apr 19 '22 03:04 amitsinhnakoom

Hello Poliit Dmytro

Do you find any workaround ..I have similar issues with the filtering

thank you Amit

amitsinhnakoom avatar Apr 19 '22 03:04 amitsinhnakoom