This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.
This occurs when creating a new form and setting the App to use the new form as "New" form. An incorrect URL is generated when trying to create a new SharePoint list item. A 404 error appears on the page.
The URL seems to be missing the Host Name of the URL (ex. https://K2.denallix.com)
A 404 error appears when clicking New Item in SharePoint. The same issue occurs with the Display and Edit forms in K2 Smartforms.
Complete the following steps:
- Check the URL that it redirects to. Make sure this has a full URL for the TargetURL parameter.
- Also check the Integration.ProcessSharePointSetting table in the Database to see what the Target URL for the form looks like.
- Check the hidden K2 Setting List ([SharepointURL]/lists/K2 Settings). Make sure that the Smartforms Runtime URL is set to the correct Environment Field.
- If this was incorrect, simply set it to the correct environment field/URL and re-activate the site. This will bring in the correct New Item Form.