Skip to main content


 

Symptoms


Upgrade Issue
 

Diagnoses


I recently upgraded to 4.6.10 and now my processes which interact with SharePoint and throwing errors when trying to write to sharepoint lists. Here is one error:

ServiceObject definition does not contain method. ServiceObject : :workflow_Lists_A_List_Name]. Method : :CreateListItemItem
 

Resolution

We upgraded the "K2 for Sharepoint 4.6.10" on the K2 server as it had not been upgraed and the ran the "appdeployment.exe" on a Sharepoint server to upgrade the K2 for Sharepoint Apps in the app catalog. Then we updated the K2 for Sharepoint app for the relevant site collection using the "About" link. When attempting to run the App Registration wizard, we ran into the error:

Accessing referenced file ...MasterPage.master... is not allowed because the reference is outside of the App Web.

because the Sharepoint site was using a custom master page. We used the "Better Resolution" powershell as per blog:

http://blogs.catapultsystems.com/eskaggs/archive/2015/02/12/sharepoint-2013-accessing-referenced-file-from-is-not-allowed-because-the-reference-is-outside-of-the-app-web/

to update the custommasterurl and masterurl for the K2 for Sharepoint App web. You will most likely need to run this powershell whenever a K2 for Sharepoint App (perhaps also other apps) is added/updated before attempting to run the Registration Wizard.

We also determined that the existing Smartobject was erring with (ServiceObject definition does not contain method. ServiceObject : workflow_Lists_A_List_Name]. Method : CreateListItemItem) because it was referencing two service object methods "CreateListItemItem" and "UpdateListItemItem" that did not exist in the Service Object as such we performed a Re-generate of this Smartobject via the K2 Application for this list. Afterward we were able to retry the process instances in this error state.

Attempting to start a new process instance resulted in an "Invalid Archive Type" error from a custom ASP web application. This usually indicates a mismatch in assembly version after the upgrade to 4.6.10 (usually a rebuilt and re-publishing of this application against the new K2 assemblies will be necessary). As such, copied the 4.6.10 x32bit assemblies referenced by your web application from the (blackpearlin) directory on a client tool machine to the bin directory for this web application.




 
Be the first to reply!

Reply