SalmanZubairy
Novice

If And Else Condition execute together at same time

I am facing an issue of ( If & Else ) Rule, which is execute after parameter change. Conditions as below.

 

 

/--------------------------------------------------------------------------------------------------------------

 

if TempLinkNo does not contain a value

        then on Listname SmartObject, execute its Get List Items method ( configure )

else

   then transfer data (configure)

 

-------------------------------------------------------------------------------------------------------------/

 

1.)

 

if TempLinkNo contain value then only else is working And

if TempLinkNo does not contain value then both are working IF & Else

 

2.)

 

When i remove this rule and again create new same like this then condition is working properly Either TempLinkNo is contain Value or Not.

But After  1 or 2 Hours this condition will automatically stop working properly  and again it will be come same as before condition, mean IF & Else start working together Either  condition is True or False.

 

I am facing this Issue last 3 days and during these day i have minimum 8 time removed this rule and re-create it but its work for minimum 1 or 2 hours.

 

Please let me know why is happening...

 

 

 


condition_2458.png
0 Kudos
Reply
6 Replies
akumar
Apprentice

Re: If And Else Condition execute together at same time

Dude , you must be doing something wrong or in deta return as well . please check once again . you can drill one more label of validation ..

 

Else

  if TEmp LInk No Contain value then

    Data transfer

 

please check now whats appening .

 

0 Kudos
Reply
SalmanZubairy
Novice

Re: If And Else Condition execute together at same time

Thank you for your response.

 

Actually i have already check this condition that you suggest me. but the problem was same both condition work fine when ever i write the new rule but after 1 or 2 hours its again stop. and execute the both condition.

 

please suggest me what i do.?

0 Kudos
Reply
AhmadAbdullah
Apprentice

Re: If And Else Condition execute together at same time

Dear,

 

There is 1 scenario im thinking of, can you please add "show message" rule before the if condition?

i feel like you are calling this method 2 times, somehow in your get items list method you are returning a value to EmpID and since the event triggers when EmpID is changed, then you might be calling this method twice.

and the scenario is when you call it twice, i think that one of your "get list items" methods is retreiving a value for "TempLinkNo", so the first time this rule is triggered "TempLinkNo" is null, but the second time this rule is triggered "TempLinkNo" Has a value, thats why you might see that if and else conditions are both executed .

 

Please check them carefully and keep me updated if its solved.

Regards.

0 Kudos
Reply
SalmanZubairy
Novice

Re: If And Else Condition execute together at same time

Thank you dear for your reply..

 

that you mention regarding this scenario may be you are right.. But if i am passing same EmpID for change event, it is working fine.. My Question is why it is stopping the work end executing both at a time on same EmpID change event.

 

I have already removed the TransferData and SmartObject and instead of this i placed the Messagebox same problem is occurring.. Both Condition Executing..

 

Now i have recorded the video on this scenario in which you can seen what i did and what is happening..

 

But I can not Upload due to Size limit... but i am attaching some screen shoot.

 

Thank you


o1_2459.png
02_2460.png
03_2461.png
04_2462.png
0 Kudos
Reply
AhmadAbdullah
Apprentice

Re: If And Else Condition execute together at same time

Dear,

 

From the screen shots i can see that the if and else condition are both executing ... but i didn't mean it this way.

i need you to add a show message before the iff condition.

 

4816i6769CD5E2793C995.jpg

 

I want to see if this event is triggered 2 times, or is it triggered 1 time and if&else conditions both executed at the same time.

add the show message and please re read my comment up for more details.

because if the rule is executed 2 times, then the problem is solvable, the issue will be that first execution you have no value inside TempLinkNo and the second execution you will have a value inside TempLinkNo.

 

Regards.

0 Kudos
Reply
SalmanZubairy
Novice

Re: If And Else Condition execute together at same time

Thanks for comment.

 

I have checked every thing and now i am also attaching 4 screen shoot, in which you can see first message that is showing TempLinkNo is empty so according to this condition First if condition is executing but same as after if Else also is working..

 

If and Else works on the bases of true and false, and i should be execute only one either IF or Else.

 

Now Suggest me what kind of this bug. because yesterday it was working fine after create a new rule but today the problem is same as before.

 

Thank you.

 

 

 


01_2463.png
02_2464.png
03_2465.png
04_2466.png
Reply