Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [error-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.

1
vote
1answer
18 views

Logging client side error(JS file added in a visual webpart) to server side - sharepoint 2016

I have a visual webpart, where there is a JS file added to it. Now i need to log the errors which occur in the JS to my local drive. What we need to know is how to push the error message from client ...
0
votes
1answer
710 views

PowerApps new form: Display error msg if item exists in unique SP column?

I have a form that successfully creates a new SP list item if the unique column value is not being duplicated. If the user attempts to submit an item where that value already exists, the new item is ...
0
votes
1answer
459 views

SP - C# Delete Item - Error message: 0x80070005 (E_ACCESSDENIED))

When i trying to delete listItem from list and anonymous access in site perm(for Fund3) is disabled my code throw exception. Where anonymous access is enable everything is OKAY-> items are deleted.......
2
votes
2answers
2k views

'System.Net.WebException' occurred in Microsoft.SharePoint.Client.dll

While running Sharepoint Client Side Scripting in Visual Studio getting error at the end of ExecuteQuery() It throws an unhandled exception of type 'System.Net.WebException' occurred in ...
0
votes
1answer
448 views

Approval Workflow - unexpected error after parallel approval

I currently have a SharePoint 2010 calendar approval workflow that I'm using which uses the OOB Approval process workflow with parallel approvers. I currently have it so if one of the approvers, ...
1
vote
0answers
12 views

How to know which process is reading removed farm solution for system.io.filenot found exception in share point 2010

we have two sharepoint 2010 web front end servers and before deployed a custom farm solution from third party and uninstalled the solution but we saw below errors many times in event viewer . i don't ...
1
vote
0answers
55 views

receiving errors while working on Advance look up column in SP 2013

I am working in SharePoint 2013, I received errors while I was working on Advance look up. Two errors one after the other: System.InvalidOperationException: Sequence contains no matching ...
3
votes
0answers
502 views

Watson Bucket in SharePoint

A bit of background: Watson is a Microsoft customer feedback technology. When a crash, hang or other tracked failure event occurs, Watson program is activated and the dialog appears, where you can ...
0
votes
1answer
1k views

REST Service API executor.executeAsync Call Ends in Failure Function in Sharepoint Hosted App

Any Answers Will Help me to Forward and Gain Knowledge in SharePoint Development While i am Trying to get the list Items Using Rest API Calls in SharePoint Hosted App Using Below Function function ...
2
votes
1answer
2k views

Error handling in ensureuser() method

I have an issue where I am trying to handle the error but could not get it done. here is the code: $UserSPU = "domain\user" $site = Get-SPSite http://siteurl $web = $site.OpenWeb() $user = $web....
1
vote
0answers
527 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 ...
0
votes
2answers
2k views

Enforce Unique Values Across 3 Columns

I have a list with 3 columns that are currently relevant: Customer Code | Product Line | Part Number I want to enforce unique values across all 3, so that at least one value of the three columns ...
1
vote
1answer
65 views

How to not reach the sharepoint error page?

I have a link that redirect users on the 'unexpected error is occured' page when they type a wrong code and submit it. If the code is valide the redirection is done and they reach the correct page. ...
1
vote
1answer
17 views

Error Page Content?

Does anyone know where the content lives for the PageNotFound page? I see in the "ErrorLayout" there is a class="error-content" section. I would like to edit the content for this section.
0
votes
1answer
29 views

Custom error message for DVWP when/if list does note exist?

I've asked this before but didn't get a good answer and I just cannot believe there isn't one. If you have a DVWP that references a list you'll get an error message. Is there anyway to customize that ...
0
votes
1answer
25 views

How to trouble shoot and found root cause of error based on Co-relation id found in error message

I have two WFE servers for our SharePoint 2013 farm and i get some errors and i found a co-relation ID so for trace this error from which WFE server i start the troubleshoot? is this corelation ID is ...
4
votes
1answer
2k views

How to display event receiver error inline not in error page

I have a problem with displaying error messages inline, but sharepoint displays that ugly yellow page. Yes the error message is correct, it's the one I defined but I need to display errors like the ...
0
votes
2answers
81 views

Unexpected Error when trying to delete attachment

I am having a user reporting unexpected error when trying to delete the attachment from a list item. I have gone through the log files,but not able to find any trace of the error. I am kind of new to ...
1
vote
2answers
3k views

Event receiver CancelWithError

I need to show an error message during in the ItemAdding event from a SP2013 event receiver. I used this code in case of error: properties.Status = SPEventReceiverStatus.CancelWithError; properties....
0
votes
2answers
1k views

Hide errors displaying PowerShell for sharepoint

I want to supress displaying error messages on a certain bloc of code in powershell. I know that -ErrorAction SilentlyContinue supress error displaying, but it only goes with a cmd-let, in my case i ...
1
vote
2answers
3k 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 } ...
2
votes
0answers
777 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
55 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 ...
1
vote
2answers
132 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
306 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 ...
2
votes
0answers
904 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
2k 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
2answers
391 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
1k 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 ...
4
votes
1answer
5k 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
650 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
118 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
36 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
87 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
4k 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
3k 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
90 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
411 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
2k 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: <...
3
votes
3answers
2k 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
11k 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
652 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
1k 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
298 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
154 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
5answers
4k 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 ...
10
votes
2answers
1k 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 ItemAdded....
2
votes
1answer
577 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
3k 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 { ...