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

1
vote
2answers
20 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
54 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
26 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
66 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 ...
1
vote
1answer
86 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
142 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 ...
2
votes
1answer
1k 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? ...
0
votes
1answer
195 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 ...
1
vote
1answer
85 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 ...
0
votes
0answers
32 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
54 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
1k 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 ...
1
vote
2answers
808 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 ...
0
votes
1answer
78 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 ...
1
vote
0answers
311 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: ...
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. ...
2
votes
1answer
3k 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
1answer
381 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
1answer
540 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
257 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 ...
1
vote
1answer
132 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 ...
0
votes
4answers
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 ...
9
votes
2answers
818 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
316 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 { ...