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.
37 questions
0
votes
1
answer
73
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(...
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 ...
1
vote
0
answers
696
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 ...
3
votes
1
answer
601
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);
...
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 ...
1
vote
0
answers
50
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.
...
0
votes
1
answer
111
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 ...
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....
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
...
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 ...
0
votes
0
answers
47
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 ...
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 ...
0
votes
0
answers
232
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 ...
3
votes
2
answers
169
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 ...
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 ...
0
votes
0
answers
3k
views
Feature ‘XXX’ for list template ‘YYY’ is not installed in this farm. The operation could not be completed
So I'm very new to SharePoint. And I'm supposed to debug a website SharePoint 2013. So when I open this page a web service is supposed to get me data from a distant database and display it in a ...
5
votes
1
answer
3k
views
Provisioning did not succeed. Details: Failed to initialize some site properties for Web at Url: <url> OriginalException: A cobalt error was thrown
I am trying to provision sites using SharePoint 2013 Client-side Object Model (CSOM) via SharePoint apps. I get the exception below when the method context.ExecuteQuery() is executed. Has anyone come ...
0
votes
1
answer
245
views
How to add workflow tasks to a currently running workflow?
I would like to know how I can add a new workflow task to a currently running workflow. Essentially, my scenario is this:
created a custom application page approval form
user can add new approvers via ...
1
vote
3
answers
17k
views
SoapServerException on Lists.GetListItems()
I'm trying to retrieve list items for my "Country" list through web services.
This is my list: https://i.sstatic.net/158MI.png
& this is my code:
using System.Linq;
using System.Text;
using ...
0
votes
1
answer
1k
views
Exception error when getting master page in powershell
I wanted to see which site collections in our 2010 environment are not following the rules and are deactivating the Master Page in the settings.
I have some powershell code that works just fine, ...
1
vote
1
answer
1k
views
Check if SPUser has access to an SPWeb object without causing an Access Denied redirect
As part of a Workflow Association Form code-behind we need to access information on different sites (in the same site collection). It is possible that the user trying to configure a workflow does not ...
1
vote
0
answers
461
views
NullReferenceException while running SharePoint products ( Central admin site is not working)
We are able to access the sharepoint sites but the centeral admin is not working so tried to run the share point product with exsisting farm and sharepoint_configdb. After step7, we are getting error ...
5
votes
2
answers
5k
views
Client Object Model : "Microsoft.SharePoint.Client.ServerException: The request uses too many resources"
When deleting 1000+ (link) items from a list in one batch using the COM, I encountered this exception :
Microsoft.SharePoint.Client.ServerException: The request uses too many resources
It seems that ...
4
votes
1
answer
814
views
SPSecurity.CatchAccessDeniedException = false: Does Sharepoint keep this setting?
When I add SPSecurity.CatchAccessDeniedException = false; this disables the redirection to a login site.
Does Sharepoint keep that setting until I set it to "true" or just as long until the object is ...
1
vote
2
answers
1k
views
CriticalExceptionCount in SharePoint 2010
Can anyone please describe me what is the role of CriticalExceptionCount measure in SharePoint 2010?
Couldn't understand the below line:
ResourcesPerPoint - Represents a normalization factor for ...
1
vote
1
answer
3k
views
Custom WCF service - includeExceptionDetailInFaults
I've got a custom WCF service that I created using the CKS toolkit for SharePoint.
How do I enable includeExceptionDetailInFaults in these services?
The way I understand it is, when using ...
1
vote
1
answer
824
views
Weird "Access Denied" - behaviour in read-only mode
In a sharepoint project I save data to a list.
When the Administrator sets the database to ReadOnly, I want to capture the Exception that occurs when trying to write to that list and prevent the ...
0
votes
2
answers
677
views
Identify SharePoint 2010 exception
I a problem with identifying the origin of the exception in SP 2010 Enterprise.
Environment:
Standalone SP2010
AAM configured
Authentication: Claims based.
SSL enabled.
Description:
New web ...
0
votes
2
answers
867
views
Error Handling Strategy for Sandboxed SharePoint Solutions
I am looking to develop an error handling strategy for a SharePoint solution that makes use of sandboxed webparts. I was initially looking at a general exception handling approach based on this ...
6
votes
2
answers
4k
views
How to Handle Unathorized Exception
I need to handle unauthorized exception.. My code is something like:
try
{
//MY CODE
}
catch (Exception exx)
{
//My Code
}
I can't understand why if a NOT AUTH exception is thrown, my code didn't ...
1
vote
0
answers
1k
views
Exception in converting string to person or group type
I want to insert the user account for each user in a list column. As the list column is of type Person or Group, I need to convert the string type value to the person or group type. I have used the ...
2
votes
3
answers
1k
views
Sharepoint site throws exception on clicking save button after uploading a file
I have deployed an event reciever with item added event on a document library in sharepoint site.
In item added event I am calculating the number of pages for the uploaded document and updated a ...
0
votes
1
answer
92
views
List does not exsist
I have a really strange behavior of a Sharepoint site here
Having a Site and a subweb , everthing works as expected when I use RDP to work with the sites.
But when I remotly access the site , every ...
0
votes
1
answer
834
views
FormatAccountName exception after logging into Forms site
I've started receiving the following Sharepoint exception whenever I log a user in via Forms Authentication;
Value cannot be null. at
Microsoft.SharePoint.Utilities.SPUtility.FormatAccountName(...
5
votes
6
answers
16k
views
SharePoint Development in C# + Best way to deal with error handling
I have been developing pages and web parts in SharePoint 2007/2010 for the past year. One of the things that I always incorporate in my code is try/catch blocks to deal with error handling if an ...
5
votes
4
answers
1k
views
Catch exception in web part, or let it bubble up?
I'm writing a web part for other sites to use in their SharePoint installation. In the logic of the web part I throw exceptions at certain failure points. I'm wondering whether it is a better ...
5
votes
3
answers
1k
views
What happens to executing Timer Jobs when the Timer Services is restarted?
What happens to executing Timer Jobs when the Timer Service is restarted?
Does it abruptly abort any executing jobs? Is there an exception to catch (for example ThreadAbortException) in your timer ...