cancel
Showing results for 
Search instead for 
Did you mean: 
rencygonzalez
Nintex Newbie

Run if error - cannot determine the condition

I have a workflow that uses a query action that queries items from an external content type and stores the ids in a collection variable.

After that I have another query action that queries from my second list that stores ids in another collection variable.

The next action is a ForEach that goes through the first collection variable and then a collection operation that checks to see if the id number exsits. I have a runif action that that runs if the item does not exist. If the id doesn't exists then the item gets created in my second list.

The issue is the runif action is showing an error of "cannot determine the condition" , yet it still runs the condition. The workflow is not failing however intermittenly the item doesn't get created in my second list.

The run if is configured as follows:

I don't know why the condition isn't working at times. Any help would be greatly appreciated.

Thanks!!

Labels: (2)
Tags (1)
Reply
12 Replies
jesse_mchargue
Nintex Employee
Nintex Employee

Re: Run if error - cannot determine the condition

Hello ‌ - 

Where are you setting yesno in the workflow? My suspicion is that it cannot evaluate the value of the workflow variable, but not 100% since there may be more I am unaware of.

Let us know.

Reply
rencygonzalez
Nintex Newbie

Re: Run if error - cannot determine the condition

Hi Jesse

Thanks for the response. Well, the yesno variable is being evaluated in the collection variable. So after the foreach action, I have the collection variable that contains the yesno variable:

Here is my Foreach

After that comes my collection variable

Reply
philipplucas
Automation Master
Automation Master

Re: Run if error - cannot determine the condition

Hi Rency,

did you try to log the value of your "yesno" variable directly before evaluating it? Maybe it isn't what we would expect. I have seen Nintex Workflow having issues evaluating true/false before. Solution for me was to switch from true/false to 1/0, which works more stable. But I'm not sure if this is applicable for you.

Cheers

Philipp

Reply
jesse_mchargue
Nintex Employee
Nintex Employee

Re: Run if error - cannot determine the condition

Rency Gonzalez‌ - 

Along the lines of what Philipp Lucas‌ stated; check to ensure that the results are what you are expecting. I would use a Log to history action or even email to yourself so you can check to see what is in the variable yesno and step through it that way. It could be as simple as syntax such as Yes/No vs yes/no.

Have you tried to change your Run If action to be Exists = No not no (uppercase vs lowercase)? 

Check those and let us know how things workout!

Hope this helps!

0 Kudos
Reply
rencygonzalez
Nintex Newbie

Re: Run if error - cannot determine the condition

Hi Philipp

I ended up rebuilding the run if again and republished my workflow now I am getting this new error. I also used the log in history to see if yes/no was being evaluated. It is crazy because this workflow was running fine before and it randomly stopped working.

0 Kudos
Reply
philipplucas
Automation Master
Automation Master

Re: Run if error - cannot determine the condition

Do you know what action inside your workflow is causing this error? Could you provide us a screenshot of this actions configuration please?

0 Kudos
Reply
rencygonzalez
Nintex Newbie

Re: Run if error - cannot determine the condition

So I ended up reconfiguring an action and adding a step to the workflow and that seemed to work! So this workflow is to run every hour to bring new items into my list. It worked fine at first but now I am getting the following errors:

0 Kudos
Reply
andrewg
Automation Master
Automation Master

Re: Run if error - cannot determine the condition

This may not be your issue because of the way the scheduler starts up from a timer job, but, I try to always remind myself to not be logged in as the system account or farm admin when building or configuring workflows. It will lead to issues. 

But again, the scheduler may be injecting the system account into the workflow history and this not be your problem.

A Shim execution is a new error to me. On the CMS Scheduled WF failed to start. Is this truly from a scheduled workflow or is that the name of the wf? Is it started from a start workflow action? I ask because it looks like other actions are running before this mark.

0 Kudos
Reply
rencygonzalez
Nintex Newbie

Re: Run if error - cannot determine the condition

Hi Andrew

I am not logged in as the system account, I am actually logged into my own account however it is showing as System Account which is very odd. I ended up doing the following in hopes to capture the errror. After implementing this my workflow has been working and hasn't failed.

http://vadimtabakman.com/nintex-workflow-restart-a-child-workflow.aspx

0 Kudos
Reply