Solved

Debugging a sharepoint designer 2010 workflow

Posted on 2014-09-04
3
147 Views
Last Modified: 2015-03-19
Could anyone  suggest me how to debug the sharepoint designer 2010 workflows.
Like in visual studio we have break points option to debug a .net code.
0
Comment
Question by:asrithap
3 Comments
 
LVL 19

Accepted Solution

by:
Iammontoya earned 500 total points
ID: 40304333
there are a few methods.. here's a couple:

write to history log at set intervals. Write the value of your variable or write yourself a message. This tells you where things are in your workflow process.

The other method is essentially the same thing, but create a column with a text value. As a step for each workflow state, write a value to that column.

Values can be like:

started
criteria 1 met
email sent to user
list item written

etc...   the more checkpoints you add, the quicker you will get to what is going wrong.

The most expensive option would be:  Get Nintex workflow... wow, it's expensive, but the ROI is pretty sick. It also has a built in feature that can show you and/or the users exactly where the workflow process is... visually! It's pretty dang useful!
0
 
LVL 12

Expert Comment

by:Ramkisan Jagtap
ID: 40305394
Unfortunatley you cannot debug SharePoint Designer created workflows easily (unless you actually debug the SharePoint codebase).

I suggest you add some logging features to the Workflow, examine the ULS logs, check that your workflow history is cleaned up properly etc.

(If you updated your post with the Visio diagram of your Workflow it could possibly help us help you)
0
 

Expert Comment

by:Keyboard Cowboy
ID: 40677282
Most of us use a lot of Log statements to debug but the problem if the workflow fails, it may not write out all of the log messages for you to look at.  (You can trust that you'll see all of the log messages even though the log statement was executed).  this is only true for a failed workflow.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now