Skip to main content


 

Symptoms


Error when trying to browse to the form runtime url from client machine. Error Details
Error
Failed to initialize the Context: URL: MY SharePoint URL] Username: Error Details: The remote server returned an error: (401) Unauthorized. Method: SharePointService.initializeContext

Type:
SourceCode.SmartObjects.Client.SmartObjectException

Source:
SourceCode.SmartObjects.Client

Method Base
Member Type:

Method

Name:

ExecuteScalar

Module
Scope Name:

SourceCode.SmartObjects.Client.dll

Declaring Type
Full Name:

SourceCode.SmartObjects.Client.SmartObjectClientServer

Stack Trace:
at SourceCode.SmartObjects.Client.SmartObjectClientServer.ExecuteScalar(SmartObject smartObject, DataTable inputTable)
at SourceCode.Forms.AppFramework.FormRuntime.SmartObjectExecution(XPathNavigator nav, Boolean outputDependencies, SmartObjectClientServer svr)
at SourceCode.Forms.AppFramework.FormRuntime.WorkXmlToApi(String xml)
at SourceCode.Forms.Runtime.AJAXCall.ProcessRequest(HttpContext context)

Sharepoint Server
 

Diagnoses


The issue looks to be related to configuration of SharePoint and K2 Blackpearl. The difference between the two in security settings could be causing the problem.
 

Resolution

I was doing some research and talking with my coworkers and we found something that might work to segregate what the users can see. In this link they talk about using filters for the views, so the people who get's into it can only see what they created or modify:

"You can add a filter to the view. Filter it down to the user who created the file. If the users have contributor rights on the library however, you might have to do the permissions thing that Tudor expressed in the other answer, else they will be able to create new views."

http://sharepoint.stackexchange.com/questions/45632/how-can-i-allow-users-to-add-documents-to-a-library-but-not-be-able-to-open-othe

Also, we discussed the fact that you have https for K2 and Http for SharePoint and it would be better if you have also K2 as http. That implies reconfiguring K2 BlackPearl and SmartForms.




 
Be the first to reply!

Reply