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 ...

learn more… | top users | synonyms

0
votes
2answers
37 views

What's a better way to handle errors for Get-SPWeb?

I've noticed my favorite traps don't work as intended when attempting to get an SPWeb object. Example: trap { write-host "an error occurred. continue."; continue } & { nonexistant_command } ...
1
vote
0answers
39 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
0answers
11 views

Site Collection B 404 error page jump to Site Collection A

I created a new Site Collection (B) on a SharePoint 2013 on-premise farm. The site collection is built with Site Collection A's backup file. After some tests on B, I found when user browse to a ...
0
votes
0answers
34 views

Javascript REST API clearing error state

I am working on a SharePoint web app, and using the cross-domain library. I am looking for ways to recover from errors that the deferred functions return, and was wondering if SharePoint REST API has ...
0
votes
0answers
18 views

Event Reciver on SP2013 - weird behaviour handeling error

I have an event receiver(ItemDeleting) that prevents an item deletion with the following code: properties.Status = SPEventReceiverStatus.CancelWithError; properties.ErrorMessage = ...
0
votes
5answers
3k views

Event Reciever Custom Error Message Page Sharepoint List 2010

I am working on creating event receiver on a specific custom list using visual studio 2010. Below is the screenshot of the error message set on properties. ErrorMessage I'm interested in knowing ...
0
votes
0answers
34 views

Stop NewDocSet redirection on error

Is there a way, flag/property/bribery, to stop the code-behind in newdocset.aspx from redirecting on error? I have been trying to get the error to appear on newdocset.aspx; the same way as ...
1
vote
2answers
62 views

Error handling by Infopath 2010 for ItemAdd cancelled by SP Event Receiver

How to handle error messages in Infopath form, when a List item add event is cancelled by a Sharepoint Event Receiver? I receive an error which isn't user friendly, I would like to display a user ...
2
votes
1answer
97 views

How can I tell in a Sharepoint 2010 event receiver if the list item was added in datasheet view or not?

I'm a novice Sharepoint developer, so please forgive what is probably a very simple question. I have an event receiver on a custom list in Sharepoint 2010. I need to be able to display custom error ...
1
vote
0answers
125 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 ...
3
votes
1answer
215 views

Display error message to users

I have an event receiver that copies items to another list. I however need to show errors to the user that the item did not copy. try { //copy code works ...
3
votes
1answer
2k views

Custom “Sorry, something went wrong” message on SharePoint 2013

Could anyone explain me how should I change the default "Sorry, something went wrong" message to some other text or - even better - to change the content of this "component" to something custom? ...
1
vote
1answer
133 views

Client Side Error Reporting and Instrumentation in SharePoint 2010/2013

I do a large amount of client side development using SharePoint as the back end. In most cases I rely heavily on the REST API and JSOM. I tend not to use the SharePoint masterpages and deploy my ...
0
votes
1answer
263 views

Backup-SPFarm not respecting ErrorActionPreference

I'm trying to setup a script in Jenkins to backup my SharePoint server. The problem I'm encountering is that it Backup-SPFarm is not correctly returning an error. So my $ErrorActionPreference is being ...
0
votes
1answer
271 views

How to add the close button in SP.UI.Status

I use status bar to show exception message in code-behind. I wanna add a close button in the status bar for user, so they can remove the bar. Here is my code: protected virtual void ...
1
vote
1answer
90 views

WebPart on Top of Displayform for Custom List, ListItem deleted => Server Error

so I have a visual webpart for registering/unregistering for an event on top of a custom lists' ("events"-list) display form (added via &ToolPaneView=2). Now my use-case is this: potential ...
1
vote
1answer
433 views

How to add a fault handler to the entire state machine workflow?

I have a running Site workflow. If the workflow fails for whatever reason, I want to log it in a special way so that I don't have to struggle with the ULS log to figure out what went wrong. How can I ...
0
votes
0answers
34 views

Problem with import a External List

Why i import a External list, and Add to my code the error is Shown: Name cannot begin with the '-' character, hexadecimal value 0x2D. Line 1, position 316. Here is screen Shot. How can I run ...
1
vote
1answer
58 views

where can i find the default 404 - File not found error htm in Windows Sharepoint service 2.0

Where can i find the default htm file, mapped to show the 404 error in Sharepoint service 2.0. Currently whenever the request for a site hits the 404 error, it goes to the default page, but the point ...
0
votes
1answer
2k views

Find out if validation errors exist in InfoPath form

Does anyone perhaps know of a way to find out at any point when a form is filled in if there are any validation errors on the page? I am having a lot of trouble with users that are not very ...
0
votes
1answer
79 views

Modifying the Correlation ID Screen

I want to modify the Correlation message that is shown to the users when a correlation id occurs. I need to give them information to contact IT as well as being able to call a JavaScript API when the ...
2
votes
1answer
4k views

How to handle “e-mail message cannot be sent” error

I have a workflow that uses a SendEmail activity, then moves on to some other work. If I get this error below (because the smtp server is down for some reason): The e-mail message cannot be sent. ...
1
vote
3answers
1k views

How to get a user-friendly message when the user tries to respond again to the same survey?

When a user tries to respond to a survey he has already responded to SharePoint will return HTTP 500 and the following text: Server Error in '/' Application. ...
1
vote
2answers
1k views

Error Handling with Powershell Scripts for SharePoint 2010

I am very new to writing PS scripts for deploying solutions and activating features. In my current scripts I get errors some time like feature not activated or deactivated properly. I am looking ...
1
vote
0answers
333 views

Restart an errored workflow programmatically

I am trying to figure out the best way to restart an errored out workflow. A little background: We get seemingly random error-outs (error and stack below) in a visual studio created workflow when ...
4
votes
2answers
1k views

Add custom error handler at beginning of modules section in web.config (not manually)

Is there a way to put an error handler HTTPModule at the beginning of the modules section in web.config without doing this manually? I've tried the supplemental web.config approach like this: ...
0
votes
1answer
682 views

How to start a state machine workflow at a certain state activity (restart after failure)?

Is there a way to start a SP2010 state machine workflow at a specific state activity? For example, if I have state A -> B -> C -> D is is possible to start at C? The idea is I have an workflow that ...
1
vote
1answer
137 views

Not able to figure out the meaning of the error in the LOG file

I am getting the following error when I try to deploy my custom timer job. " Cannot synchronize profile property languages until the ProfileDB is upgraded for UserProfileApplication 'User Profile ...
1
vote
1answer
267 views

Turn off SharePoint Error Messages

Is there a way to turn off error messages, that are returned from InfoPath forms either having invalid data, or permissions. Here is a picture of them. I would perfer for the form to just not ...
10
votes
2answers
901 views

What happens if an earlier Event Receiver throws an error?

Let's say I set up an ItemAdded event receiver with a sequence number of 12345. On this list there're two other event receivers that run before it; one for ItemAdding, and an earlier one for ...
2
votes
1answer
364 views

Retrieving last exception from a custom 500 error page in SharePoint 2010

I implemented a custom 500 error page for a SharePoint 2010 publishing website. The feature receiver of a web application scoped feature sets the custom error page as follows: var webApplication = ...
3
votes
1answer
1k views

How do I set CallStack=“false” but still get the exception in a custom error handler?

I've got a pretty custom SharePoint 2010 Server solution. We have a custom HttpModule setup for error handling (relevant code provided below): public class ErrorHandlerModule : IHttpModule { ...