Skip to main content

Questions tagged [exception-handling]

Exception handling is the process of responding to the occurrence, during computation, of exceptions – anomalous or exceptional events requiring special processing – often changing the normal flow of program execution. It is provided by specialized programming language constructs or computer hardware mechanisms.

0 votes
1 answer
68 views

Exception User-Unhandled, Creation of SPSite objects with a different site id or a different user token is not allowed

I am creating a event handler that will sync documents between two sites on the same site collection when one is uploaded. This is the item added handler. public override void ItemAdded(...
belmer1416's user avatar
1 vote
1 answer
5k views

System.UnauthorizedAccessException when accessing the SharePoint 2013 REST API

When I try to load AJAX scripts into private site it runs with any problems, but when I do public site I have AccessException, I read a lot of it, and I found this link, where have same problem and ...
Gerry's user avatar
  • 13
1 vote
0 answers
693 views

HTTPHandlers\Modules in SharePoint 2013 to deal with request errors

I am currently trying my best to implement a Handler to redirect error pages on Sharepoint 2013. Our project has a bunch of webparts that are inside pages - and when these webparts reach certain ...
Malavos's user avatar
  • 159
3 votes
1 answer
595 views

Uncaught Error: Incorrect usage of exception handling scope

I am trying to implement try/catch scope in my JSOM, but I am getting the error message in the question's title. Below is my code: errScope = new SP.ExceptionHandlingScope(context); ...
Natalie's user avatar
  • 285
0 votes
1 answer
1k views

Workflow suspended after a while, worked properly at first

I came up with the workflow shown below, which seemed to do the job at first. The purpose of the workflow is to notify via email that a document is about to expire. First, it checks if the ...
Manuel Leyva's user avatar
1 vote
0 answers
48 views

Catch UserProfileNoUserFoundException exception

I have a requirement where I am checking a user account whether it does exist in User Profile Service or not. And if the account doesn't exist then it will create an account. I am using CSOM for this. ...
user47967's user avatar
0 votes
1 answer
106 views

Customize document library EditForm.aspx to display Error/Exception

I am writing an ItemUpdating event receiver for a document library in MOSS 2007 (yes, I am still on that version!) and need to bake in some validation. If the validation fails or if an exception is ...
Web User's user avatar
  • 229
0 votes
0 answers
34 views

Exception while retrieving all available Site-Columns Sharepoint Client Model [duplicate]

I'm trying to retrieve all available site-columns from my sharepoint site. This is what I do: ClientContext clientContext = new ClientContext(siteURL); clientContext.Credentials = websService....
Abhishek's user avatar
  • 163
3 votes
1 answer
2k views

Error while closing Modal Dialog (JavaScript)

So I create a Modal Dialog with this code: function openModalDialog(title, url, callback) { var options = { title: title, url: url, dialogReturnValueCallback: callback ...
Szab's user avatar
  • 198
2 votes
0 answers
1k views

SPException error codes and meanings (refreshing form request digest via SharePoint REST services)

Where can I find a list of error codes and their meanings for SharePoint exceptions? I can't find any list of any kind online, just specific cases here and there. My specific need arises out of the ...
Thomas Doman's user avatar
0 votes
0 answers
43 views

Using SharePoint exception handling in hybrid application

I am struggling to figure out a way to handle exceptions in my application. My application is Hybrid and mainly a .Net application that uses SharePoint 2010 for document management only. I want to ...
Shashank Srivastava's user avatar
2 votes
0 answers
1k views

Valid SharePoint user that doesn't have a user profile causing workflow errors

I have created a work flow that retrieves some details, such as the manager and some address details, about users on our SharePoint. The information is retrieved for after the fact analysis we do on ...
Martin's user avatar
  • 21
0 votes
0 answers
230 views

SharePoint 2013 didn't log exceptions

I have a problem with SharePoint 2013. I have created a WSP package that works great on 2010 but doesn't on 2013. Actually, when I tried to access to the page, I receive the classic "Unexpected error ...
Ziba Leah's user avatar
  • 1,987
3 votes
2 answers
165 views

Getting spuser from multiple types of information

If this sounds confusing it's because I'm al little confused on it myself. Basically I have an application (originally written by someone else but never finished) that needs to perform various actions ...
Jordan's user avatar
  • 31
11 votes
2 answers
13k views

Handling workflow errors

Environment: 2013 Enterprise, Workflow Server on WFE, SPD 2013 This seems like a pretty simple question coming from a programming background, but I just can't find any information on it. When ...
thanby's user avatar
  • 2,680

15 30 50 per page