"URI prefix is not recognized" error appears when running the registration wizard

  • 15 February 2022
  • 0 replies

Userlevel 4
Badge +17

"URI prefix is not recognized" error appears when running the registration wizard


K2 Five 5.0 to 5.3
K2 Five 5.0
Service Broker
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.


When you try to run the Registration wizard of the K2 for SharePoint App after the K2 Five update, the "SharePoint Service Broker" step raises the following error:

"The URI prefix is not recognized"


The following error is recorded in the HostServer Logs:

"6833954","2018-01-26 09:26:07","Error","SmartObjects","10702","Error","SourceCode.SmartObjects.ServiceBroker [ExecuteSmartObject]", "10702 An error occurred in the SharePointIntegration Service Instance. System.NotSupportedException: The URI prefix is not recognized. at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase) at SourceCode.SmartObjects.Services.SharePoint15.Common.Helpers.ConfigHelper. GetSPSiteInfo(String siteUrl)
at SourceCode.SmartObjects.Services.SharePoint.Integration.Execution.Execute. UpdateTenantManagementSmartObjects(ServiceInstance Service) at SourceCode.SmartObjects.Services.SharePoint.Integration.IntegrationService.Execute()", "anonymous","", "ACDC01VMS195:C:Program Files (x86)K2 blackpearlHost ServerBin","6833954","99145c48221e495d99234bb572125df6",""


SmartObject logs contains records similar to the ones below:

  1. Brokerpackagein.log:


<smartobject name="SharePoint_Integration_Workflow_Helper_Methods" guid="f343a8d0-c7c6-4ad1-b72d-07ed5b568c46" version="3"

<property name="k2_Int_K2_App_Settings_Site_URL">
<property name="k2_Int_K2_App_Site_URL">
<method name="UpdateTenantManagementSmartObjects" />



2. Brokerpackageout.log:


<result successful="false">
<serviceinstance name="SharePointIntegration" guid="71810da1-81e2-4f22-8cf2-4011dacfdf42">
<message severity="Error">The URI prefix is not recognized.</message>

Troubleshooting Steps

This occurs as a result of incorrect key values stored in the K2 database for AppSiteURL and AppCatSiteURL type. An example of that is something like "urn:SharePoint:denallix", instead of the actual SharePoint URL or GUID. These invalid records will have to be deleted and after this K2 for SharePoint registration should complete successfully.

Please log a support ticket and request the debug assembly which should help identify the incorrect values.

Important! Direct K2 database modification is not supported, unless directed to do so by K2 support.

0 replies

Be the first to reply!