Worklist item not found on K2 server

  • 6 April 2011
  • 0 replies
  • 0 views

Badge

 


Hi


We have our HR Processes system, in that we have used K2 workflows. To utilise these workflow we have created ASP.Net application which hits K2 server. Now our issue is like when we try to hit the K2 server from localhost/Visual Studio, it is giving us error,


 26030 Worklist item [serialNumer] not found for K2: [domain][user] at [ipAddress]:[port]26030 Worklist item [serialNumer] not found for K2: [domain][user] at [ipAddress]:[port]


From application server it is working fine, but from localhost, it is giving error.


Please find the attached snap for more information about error. We debug the code and find the error on line mentioned below...


         string sn = Request.QueryString["SN"];
       
if (sn != null && sn != "")
        {
           
Connection k2Conn = new Connection();
           
WorklistItem wli;
           
ProcessInstance procI;
           
try
            {
                k2Conn.Open(
ConfigurationManager.AppSettings["k2Connection"]);             


wli = InoK2UtilsLibrary.K2ClientHelper.getWLI(k2Conn, sn, Request.QueryString["SharedUser"], Request.QueryString["ManagedUser"]);


 


 


 


We tried many ways to resolve these issue, but not getting any clue.
Please let us know if you have any solution/workaround on this.


Please revert back if need more information.


Thanks and Regards!


SharePoint Team


                procI = wli.ProcessInstance;                lbSubmitDate.Text = procI.StartDate.ToShortDateString();     


Also find getWLI method below,


public static WorklistItem getWLI(Connection conn, string serialNumber, string sharedUser,string managedUser)
        {
            WorklistItem worklistItem = null;
            // Check if the worklist item is for a normal user
            if ((sharedUser == null) && (managedUser == null))
            {
                worklistItem = conn.OpenWorklistItem(serialNumber, "ASP"); error initiated
            }
            if ((sharedUser != null) && (managedUser == null))
            {                worklistItem = conn.OpenSharedWorklistItem(sharedUser, managedUser, serialNumber);
            }
                       return worklistItem;
        }
    }


 


 


10859i17DF80CB4EED7305.jpg

0 replies

Be the first to reply!

Reply