Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Workflow Sharepoint App / An unhandled exception ContentTypeId at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute

$
0
0

Hello,

I am creating a Sharepoint-Hosted App to create a Workflow with VS2012.

I am adding the Workflow and on top an association form.

After getting the values I need with the help of a GetConfigurationValue I am creating a Single Task.

I have a List created as a Document Library and I add the Workflow to the List manually.

So far so good, the Association Form appears and I submit the values.

After that the Workflow gets stopped with the following message:

RequestorId: b049408c-e114-a668-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ArgumentException: ContentTypeId at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

I have found that this error appears when one uses a custom workflow content type id which is not added to the task list.

The problem is that I am using the default Sharepoint Workflow 2013, and I have no access to the content types of the list which is created automatically inside the Workflow instance.

I have also created a Task List inside the App but I cannot link the WorkflowTaskList to my Task List. The List just doesnt appear as an Option in the WorkflowTaskList Property of the Workflow.

After debugging with Visual Studio I get the following error:

Unhandled exception at line 1, column 25064 in http://app-29686f0f64c9a8.penguins.local/_layouts/15/callout.js?rev=ryx2n4ePkYj1/ALmcsXZfA==

0x800a139e - JavaScript runtime error: Error: Argument has no callout associated with it.

Any help would be appreciated!

Thanx in advance!


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>