Hi, I've created a Loop with a Switch, which basically allows and approval process based on various logics to assign flexi-tasks (IE the decision making process is not linear and requires workflow logic)
the initial part of the loop is tested and working, which I then copied \ pasted into the 2nd part of the switch, and so on.
the short version of the logic is that if Manager 1 approves their flexi task, a field is updated in the list, which the Switch then looks at and passes it on to the next manager.
my problem seems impossible to me
1) the first manager receives and email, and then approves their Flexi Task
2) the workflow continues and correctly assigns the task to the second manager
3) However, the 2nd manager never receives an email to notify to them of step 2 above! I have even tried adding in "Send Email" randomly into the workflow, and it just does not process email
What am I doing wrong? how could it send emails in the first part of the switch, but not in the 2nd part?
I have tried deleting the flexi tasks and recreating them, and typing my personal email address directly into the flexi task (no lookup - direct email), and it still fails to send an email. There is definitely no syntax error within the flexi task. its almost as if the loop is causing the email to fail?
Solved! Go to Solution.
Hi, thanks for your reply
Interestingly, after hours of troubleshooting and eventually posting this question on the community, I had success for the first time - email was sent to my second manager. The only thing I did, was delete and recreate everything I could think of (EG flexi task)... but this isn't really the right way to be troubleshooting - there has to be a reason my workflow emails are not flowing
I now have it moving to the 3rd leg of the Switch, and have the same problem again... no email to the 3rd manager, although the flexi task has been assigned. See screenshots (the logic in line manager 1, and line manager 2, is identical to line manager 3)
as you can see below, the task has been assigned to me as Line Manager 3. However I never receive the flexi task email, which I have configured to send to me
Thanks in advance
can you show me the task notification config on that action please?
what is the reason for using the switch and update item instead of the state machine and change state out of interest?
Hi, I'm new to Nintex and been thrown in the deep end regarding our business requirements, so i'm doing a lot of googling to try and find ways to accomplish things. I found an article around Loops and Switches which seemed to fit my requirement so that's what I did. I've never used the State Machine, perhaps its better?
It may be that I'm using the wrong function or that there's an easier way, but in any event, I'm not understanding why the task notification is not being sent
The requirement is that an approval task may be approved, rejected, or pushed back to the previous person in the sequence. This must happen until such time as the approval is "Approved" or "Rejected". The recommendation was to use the Switch function to decide which "leg" of the workflow to run in the loop by updating a field which the Switch monitors, until status "Complete" (I hope that make sense)
this is the failed Flexi Task as seen in the workflow above
Hi, as a matter of interest, I also tried the State Machine but have exactly the same issue. (I dragged and dropped the boxes from the previous Switch to the State machine - maybe I copied the error??)
in the 2nd screenshot below, you can see it correctly assigned the task to Carl Taute in both step 1 and step 2, but I only received the first email.
OK if you use state machine you can delete the loop - drag the state machine about the loop action and then delete it.
I do not think your email problems are related to that but I think the state machine suits your needs better.
can you try running it again once you have removed the loop (note it can take a little while for the state machine to change states)
Thank you Cassy, I have removed the loop. Same problem - no email. (thanks for the tip on the State Machine, its much cleaner)
I'm going to try start an empty workflow tomorrow morning and see if that helps. I'm hoping it was my own fiddling that "broke" it, although I don't quite see how.
Any idea if there is a logfile on the server where I can see if the email was sent, and to where etc (to verify if the email left the SharePoint\Nintex server and hit my MS Exchange box)
OK great I am pleased you like the state machine.
I am inclined to agree that starting again and adding actions in step by step for testing is a good approach. I have found workflows don't cope very well at times when you change them drastically (!!!)
can you confirm that the action send notification does indeed work?
To be honest I don't know where you would look to check - I normally have to go to the exchange team to check, but I have no idea what they do to give me an answer.
Hi, as recommended, I have recreated a workflow from scratch using a State Machine, and it is working perfectly thus far.
I have not yet added any of the "Run Ifs" which we will need to, but the state changing with the various task assignment notifications is working perfectly
I can only assume that I tried too many weird and wonderful things in my previous workflow which somehow messed with the emailing.
thank you Cassie for your guidance and tips, I really appreciate it.