Creating a K2 Process in Sharepoint 2010 with Infopath 2010

  • 18 July 2012
  • 4 replies
  • 0 views

Badge +1

Hi all,


I’m new to K2 and trying to create a simple workflow following the sample video from youtube:


How to K2 - InfoPath Process Part 1: http://www.youtube.com/watch?v=rx3Y-c6D_7k


How to K2 - InfoPath Process Part 2: http://www.youtube.com/watch?v=oanH3xkIoO4


 


1)      I tried to do this using a new web and a team site collection in Sharepoint 2010.


New web host: mysample.denallix.com


Sharepoint library: Business Travel Form


SmartObjects: TravelRequestSO


K2 Process: Travel Request Process


-          Unfortunately, errors occur after submitting the form. Please see error at the bottom (Title: Table error)


-          Already perform the following at Central Administration:


·         Run the K2 for SharePoint Configuration Wizard


·         Activate all K2 Features and K2 Configuration settings:


-          Site Collection for Mysample


·         Deploy the k2worklistwebpart.wsp at Site collection Mysample and added it on home page.


·         Already deployed all k2 webpart


-          Already perform the following at Sharepoint Site Collection: Mysample:


·         Run the K2 SmartObject Site Lists and Libraries


-          Business Travel Form selected


-          Checked “Allow user account impersonation by the K2 Server”


 


2)      Tried to backup the Portal site>>Create a new website>>restored the Portal bak file>>then followed the steps in youtube


-          Unfortunately, same error occurs after submitting the form.


3)      Also tried to create a new library in Portal site


-          A message popup says that the request was successfully submitted but when I go back to the Portal home page, refresh it, nothing post at my K2 worklist.


-          No error occurs.


4)      Using the portal site.. I tried to create a new process using “K2 process” from ribbon library in sharepoint 2010. Same thing happened, it was successfully sent but there’s no item under my K2 worklist.


 


What I really want here is to create a K2 workflow process in Sharepoint 2010 using Infopath 2010 form in new Website not in K2 Portal site.


Please help me on how to do this. I’d been trying this alone for less than a week and trying different scenario but I have no luck on this.


 


 


TABLE ERROR:




Area                          



Message



SharePoint Foundation        



Name=Request (POST:http:// Mysample.denallix.com:8080/_layouts/Postback.FormServer.aspx)



InfoPath Forms Services      



The following query failed: TravelRequestSO_K2_Create (User: DENALLIXAdministrator, Form Name: Business Travel form, IP: , Connection Target: http://mysample.denallix.com:8080/K2 BlackPearl Data Connections/InfoPath Web Service/Execute Smart Object Method.udcx, Request: http://mysample.denallix.com:8080/_layouts/FormServer.aspx?XsnLocation=http://mysample.denallix.com:8080/Business Travel form/Forms/TravelRequestFormK2-myXSD-2012-07-17T02-54-26.xsn&SaveLocation=http://mysample.denallix.com:8080/Business Travel form&ClientInstalled=true&Source=http://mysample.denallix.com:8080/Business%2520Travel%2520form/Forms/AllItems.aspx&DefaultItemOpen=1#, Form ID: urn:schemas-microsoft-com:office:infopath:Business-Travel-form:-myXSD-2012-07-17T02-54-26 Type: DataAdapterException, ...



InfoPath Forms Services      



...Exception Message: The remote server returned an error: (500) Internal Server Error.  Server was unable to process request. ---> An anonymous identity cannot perform an impersonation. The remote server returned an error: (500) Internal Server Error.)



SharePoint Server            



The StateManager is disposing and calling ReleaseLockedStates() (Count=0)



SharePoint Foundation        



Leaving Monitored Scope (Request (POST:http://mysample.denallix.com:8080/_layouts/Postback.FormServer.aspx)). Execution Time=36.5876109952522




 Thanks and Best regards,


Maureen :D




4 replies

Badge +6

The key message in the error is "An anonymous identity cannot perform an impersonation." This can happen due to many reasons: 



  • check the application pool of the sharepoint website. it must use a domain account
  • if this is a distributed environment, you must configure Kerberos

on point 3, you mentioned that the form submits succesfully. When there is no task, what is the status of the workflow in K2 workspace?


Creating a infopath based workflow in a new site is a straight forward procedure. May be get some help from K2 support team

Badge +1

Hi Sujeeth,


Appreciate your reply.. thank you so much.


Actually, I’m really concentrated on that error so what I did.. I also created another web site. Then marked/checked the “Allow user account impersonation by the K2 Server” at MySite>>K2 settings>>Run the K2 SmartObject Site List and Libraries


 


I’m using Administrator account (domain account).


Status in K2 workspace is active


 


Also tried to marked/checked the “Impersonate” the Administrator user at K2 workspace>>K2 Management>>Workflow server>>Server Rights (unchecked originally)


Then reset or run iisreset at command prompt.


 


Unfortunately, same errors occur.



Thanks and best regards,


maureen


 

Badge +1

Hi all,


Any solution about this problem? Thanks in advance. =D

Badge +1

Hi all,



I already solved my own problem.


This is what I did to make it work:


-          Disable Anonymous access in Authentication Providers for Mysite URL in Central Admin


-          Added K2 Service account in Mysite (where K2 service account is already set as “Impersonate a client after authentication” in Local Security Policy>>Local Policies>>User Rights Assignment).


 


That’s all.. I didn’t configure the Kerberos anymore.


I can submit now the form.. received email notification.. approved.. and view the flow.


 

Reply