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

List workflow doesn't start on new item... sometimes

Jump to solution

I have a list workflow that is set to run on the creation of a new item.  I have seen a few items created in that list recently where that workflow never ran.  It works most of the time, but occasionally, it just doesn't start at all.  In the workflow history for those items, there is no record of an instance of the workflow as running, completed, cancelled, or errored.  I am not making much progress with the troubleshooting so far.  Anyone have ideas of things I can look at to figure out what is going on?  

Thanks in advance!

Brian

workflow options, start on new with no conditions

Labels: (2)
0 Kudos
Reply
8 Replies
cassymfreeman
Nintex Newbie

Re: List workflow doesn't start on new item... sometimes

Jump to solution

What does the start of your workflow look like? Have you added a pause as per ‌? 

0 Kudos
Reply
scalawagd
Nintex Newbie

Re: List workflow doesn't start on new item... sometimes

Jump to solution

Hi Cassy!  No I don't have a pause action at the beginning... here are the first few actions:

first few workflow actions

I wasn't sure if I should even be messing around with the actions since it doesn't seem to even try to start, but I could certainly add a pause in there if that might help.

Thanks for the speedy reply!

Reply
scalawagd
Nintex Newbie

Re: List workflow doesn't start on new item... sometimes

Jump to solution

Some things I have tried today so far are to purge the workflow history list... it was a little over 2000 items.  I also purged workflow data.  That was a bit over 2000.  Not sure if that was a worthwhile or if I am just guessing, but there was some good info in Defensive Workflow Design Part 1 - Workflow History Lists that made me think it wasn't a bad idea.

0 Kudos
Reply
cassymfreeman
Nintex Newbie

Re: List workflow doesn't start on new item... sometimes

Jump to solution

That whole series of blog posts are a serious gold mine!!  ‌ check me out promoting the pause at the beginning of the workflow

Reply
aaron_labiosa
Nintex Newbie

Re: List workflow doesn't start on new item... sometimes

Jump to solution

Love it!

Reply
scalawagd
Nintex Newbie

Re: List workflow doesn't start on new item... sometimes

Jump to solution

We're getting closer!  I was troubleshooting this with a peer, Ross Kovarik, today and we had a hunch it had something to do with the file attachments.  If a file is attached with invalid characters in the filename, the result is that the item is created (the submitter receives an error), and the workflows that were set to run on item create never initiate.  Yikes!  This one sets the item's permissions.

Here is the error received by the users when they submit using an invalid file name for the attachment(s).

invalid file name error

Here is a view showing that the workflow never ran on test2 with the invalid attachment file name (included the characters ' and &), but the item was created in the list successfully.

view showing the new item and no workflow

Is this expected behavior?  We're running an older version of Nintex workflow (v 3.1.5.0), so I was hoping this might be a bug that is corrected in a more recent version.  If anyone is up for trying it out and letting me know, that would be great!

As a workaround, Ross set the workflow up to write "Yes" to another column if permissions were set successfully.  It also runs when items are created AND when items are modified but that column is not "Yes".  A site workflow runs on a schedule to check for that indicator, and if it isn't there, it sets the column to "Pending" which will now cause the "set permissions" workflow to fire.  So, we at least have a safety net for this one, but overall, the situation isn't ideal.

Reply
rossk
Nintex Newbie

Re: List workflow doesn't start on new item... sometimes

Jump to solution

Hi All,

Brian Gullett‌ and I seem to have found a workaround as this issue relates to this:

Fix Attachment Validations – Customer Feedback for Nintex 


And this code allows us to put validation on the form so the problematic situation won't be created:

https://community.nintex.com/thread/11334#comment-58811 

But, we're still curious if this may be fixed in future releases? (or is it already and we're not aware?)


Thanks!

Reply
scalawagd
Nintex Newbie

Re: List workflow doesn't start on new item... sometimes

Jump to solution

That was a great find, Ross!  I was looking at it as a workflow issue and maybe a forms quirk instead of a forms issue that impacted the workflow.  Thanks for your help with this!

Reply