Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Can not retrieve data #85

Open
etcetera33 opened this issue Jun 11, 2020 · 2 comments
Open

Can not retrieve data #85

etcetera33 opened this issue Jun 11, 2020 · 2 comments
Labels

Comments

@etcetera33
Copy link

etcetera33 commented Jun 11, 2020

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 etcetera33 added the bug label Jun 11, 2020
@amitsinhnakoom
Copy link

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
Copy link

Hello Poliit Dmytro

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

thank you
Amit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants