Code Fix: When SharePoint Task events on a subsite’s custom list share similar names, a 404 error occurs.
KB001798
PRODUCT
Issue Description
When you create a custom list on a subsite in SharePoint 2013 and integrate it with the K2 app to create SmartObjects and Workflows, the SharePoint user task to view or edit the related custom list item directs you to the incorrect URL and a 404 error will be displayed.
Error Message
A generic 404 error occurs.
Cause
The URL path is merged with the SharePoint subsite path. A replace all replaced extra fields that were not required, corrupting the URL instead of merging the URL.
Repo Steps
- Create a subsite in SharePoint 2013 with a name of IT.
- Create a custom list with a prefix of the subsite name. e.g. IT Request.
- Integrate the list with the K2 app selecting only SmartObjects and Workflows.
- Design the workflow containing a User Task and select the edit option.
- Deploy the workflow and start an instance of the workflow.
- Open the worklist item in K2 Workspace and the 404 error is display.
Resolution
- Contact Support to get the required hotfix.
- Apply the hotfix to your environment according to the Read me file.
- Open/edit the affected Workflow.
- Deploy the Workflow.