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

Convert docx to pdf and autostart Workflow

Hello Nintex community,

I found a Thread that is related to an issue i have (https://community.nintex.com/community/build-your-own/blog/2016/06/13/having-a-working-and-published... from

I created a workflow that starts on "new item created". The workflow converts an uploaded docx to pdf.

In the regular Expression I create the Name for the new document:

After that I convert the document to PDF:

After the conversion the original *.docx file gets deleted.

Now to my Problem:

Because the workflow runs after am item is created, it starts when the converted pdf is stored in the library.

Now this started workflow Errors directly

...and the Workflow history is empty:

I made an "RUN-IF" at the beginning that checks if the document Ends with ".docx".

But the workflow still runs and Errors.

Any Ideas or hints?

Thank you.

David

Labels: (2)
0 Kudos
Reply
6 Replies
paul_crawford
Nintex Newbie

Re: Convert docx to pdf and autostart Workflow

Hi

In your workflow, use a query list action, filter where id = current item id, save the type field into a variable. this will give you the file type.

Now in your runif configure it to be the variable above, not equals pdf.

This should now olny run for non pdf documents

0 Kudos
Reply
dsimon
Nintex Newbie

Re: Convert docx to pdf and autostart Workflow

Thanks for the answer. I believe that this should work too, but why is no Workflow history visible? The StatusColumn says "Error" but i cabt see a runned workflow :-(

Reply
dsimon
Nintex Newbie

Re: Convert docx to pdf and autostart Workflow

Hello,

I tried your Suggestion, but i have the same mistake.

The Workflow History is empty. It seems that the workflow ignores everything

0 Kudos
Reply
Automation Master
Automation Master

Re: Convert docx to pdf and autostart Workflow

if you run your workflow manually on the .docx does it work as expected?

0 Kudos
Reply
dsimon
Nintex Newbie

Re: Convert docx to pdf and autostart Workflow

Yes, it runs as expected. No Problems. And also if i run it on the new converted pdf it works. But...why doesnt it work autonatically? Too less RAM?

0 Kudos
Reply
alanshane
Nintex Newbie

Re: Convert docx to pdf and autostart Workflow

Did anyone ever find a solution?  I am having same problem.  I have a workflow that converts file to PDF but after the conversion is complete the workflow ends with an error. I've tried running runif but this will not stop the error email. Is it possible to save the pdf to a different library in order to stop the error?

0 Kudos
Reply