<h2>Determine if there was an exception that prevents workflow from starting or resuming</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><style type="text/css"><!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internalTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:0; } .sp td{ border-bottom: 1px solid; border-right: 1px solid; border-color:#E0E0E0; background-color: #ffffff; height: 20px; padding-top: .5em; padding-bottom: .5em; padding-left: .5em; padding-right: .5em; } .sphr td{ border-right: 1px solid; border-bottom: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .5em; padding-bottom: .5em; padding-left: .5em; padding-right: .5em; height: 20px; } .title { color: #D1232B; font-weight:; font-size:25px; } .hd1{ color: #D1232B; font-weight:; font-size:18px; } .hd2{ color: #646464; font-weight:bold; font-size:16px; } .hd3{ color: #7a7a7a; font-weight:; font-size:16 px; text-decoration:; } .hd4{ color: #000000; font-weight:bold; font-size:14 px; text-decoration:; } --></style> <div class="margin"> <p class="title"><span class="title">Determine if there was an exception that prevents workflow from starting or resuming <br /></span> </p> <span style="color: #d1232b; font-size: large;">Symptoms</span><br /><hr style="border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc;" />Symptoms may include the following:<br /> <ul><li>Workflow did not run when expected</li><li>Workflow did not run on a specific record</li><li>Workflow not attaching</li><li>Workflow not progressing to the next activity</li><li>Cannot publish workflow</li><li>Publishing workflow takes too long</li><li>Cannot start workflow</li><li>Workflow does not trigger</li><li>Stalled workflow </li></ul> </div> <div class="margin"><span class="hd1">Cause</span><hr style="border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc;" />In most cases, the problem is due to an exception during the transaction following the workflow activity. Updating the record that the workflow is attached to starts or resumes the workflow.<span style="font-size: 10pt;"> </span></div> <div class="margin"><span class="hd1">How to locate the exception in the logs</span><hr style="border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc;" />Look in the logs on both nodes and determine the node on which the transaction happened. Go to the <strong>Log File Download</strong> and locate the date on which the tranaction happened and download the logs from that day on both nodes.<br /><br /><img style="border: 1px solid black; align: baseline;" src="/Screen%20shot%202014-04-29%20at%203.31.57%20PM%20.pngx" alt="" width="839" height="408" align="baseline" border="1" /></div> <div class="margin"> <ol><li><span style="font-size: 10pt;">Locate the exact time at which the transaction occured and check to see if there were any transactions that caused any exceptions.</span></li><li><span style="font-size: 10pt;">In most cases, </span><strong style="font-size: 10pt;">Null Pointer Exception</strong><span style="font-size: 10pt;"> is the cause of a cancelled transaction, which will prevent the update of the business rule that triggers the workflow to continue.</span></li><li><span style="font-size: 10pt;">Once the exception is located, continue to investigate the cause of the exception and how to prevent the exception. </span><span style="font-size: 10pt;">This can be done by tracing the stack trace of the exception and locating where this happened. </span></li></ol> </div></section></div></article></div>