Skip to main content
Nintex Community Menu Bar

Failed on Start

  • July 23, 2017
  • 5 replies
  • 26 views

Forum|alt.badge.img+2

I have nintex 2010, and I am trying to add item to list and create workflow through web service but always I got Workflow XXXXXX was canceled by System Account.(Failed on Start)

5 replies

Forum|alt.badge.img+16

Can you show us some screenshots of your workflow and the error and how your workflow is initiated?  Are other workflows on the platform working?


Forum|alt.badge.img+2
  • Author
  • July 23, 2017

This is my WF:

205830_pastedImage_1.png

and the error is:

205831_pastedImage_2.png

205832_pastedImage_3.png

and the workflow initiated when I add item to the list, the adding through web service:

string siteUrl = ConfigurationManager.AppSettings["URL"];
string[] strRequestID = null;
string requestID = string.Empty;
SPSecurity.RunWithElevatedPrivileges(delegate()
{

using (SPSite site = new SPSite(siteUrl))
{
using (SPWeb web = site.OpenWeb())
{
SPUserToken userToken = web.AllUsers["XXX\XXX"].UserToken;
SPSite s = new SPSite(siteUrl, userToken);
SPWeb w = s.OpenWeb();

SPList lst = w.Lists[ListName];
SPListItem listItem;
listItem = lst.Items.Add();
listItem["EmployeeName"] = objEntity.userName;
listItem["MobileNumber"] = objEntity.mobileNumber;
listItem["ATMOrBranch"] = objEntity.ATMOrBranch;
listItem["ATMType"] = objEntity.ATMType;
listItem["Issue"] = objEntity.Issues;
listItem["SubIssue"] = objEntity.SubIssues;
//listItem["IssuePicture"] = objEntity.issuePicture;
listItem["LongX"] = objEntity.longx;
listItem["LongY"] = objEntity.longy;
listItem["ATMNumber"] = objEntity.ATMNumber;
listItem["Note"] = objEntity.note;
listItem["Branch"] = objEntity.branchListViewID;
requestID = RequestID.GenerateRequestIDATMBranchIssue(ListName, ListsAndWorkflowsInfo.ProcessName.ATMBranchIssues);
listItem["Title"] = requestID;
w.AllowUnsafeUpdates = true;
listItem.Update();
w.AllowUnsafeUpdates = false;
strRequestID = new string[] { requestID, listItem["ID"].ToString() };

}
}
});


Forum|alt.badge.img+16

try adding a pause at the beginning of your workflow? 


Forum|alt.badge.img+2
  • Author
  • July 24, 2017

I am already tried, but unfortunately, I have the same issue


Forum|alt.badge.img+16

do other workflows on the site work as expected?