Error when editing some Items in SharePoint Custom List

Hello I have a custom list with multiple workflows and a customized infopath form. I am getting an unexpected error on some of the list items when I try to edit them. I can view them just fine but the error is occuring on edit for some items.
I am also able to edit the same item that I am getting the problem with from the datasheet view but just not with infopath form.
I use the USL to view the correlation error and it just said leaving monitored scoped.
I also tried saving the list as a template and creating a new list from the template and then creating a new item in that list and got the same error. Please help.
04/04/2014 11:07:36.72 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected System.ArgumentNullException: Value cannot be null. Parameter name: s at System.IO.StringReader..ctor(String s) at System.Xml.XmlDocument.LoadXml(String xml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.FlattenXmlToHashtable(String strXml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.DoesWorkflowCancelWhenItemEdited(String associationXml) at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.EnsurePageNotInLockingWorkflowIfInEditMode() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.LoadDataSource() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.... bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
04/04/2014 11:07:36.72* w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected ...Publishing.WebControls.PublishingSiteActionsMenuCustomizer.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
04/04/2014 11:07:36.75 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http://mydomain:Port/Site/Lists/Listname/Item/editifs.aspx?List=c15b9e3c%2D2aac%2D4a84%2D8317%2De3f9358f41bc&ID=144&IsDlg=1&Web=b5b749d6%2D0d3c%2D4cb5%2Daf3a%2D819ff5ceb88c)). Execution Time=75.1751473982343 bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
04/04/2014 11:07:36.78 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:http://mydomain:Port/_catalogs/theme/Themed/7D19B0BC/corev4-8A0ABD2F.css?ctag=0))

here is the result of Merge-Splogfile
04/04/2014 11:07:36.72 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected System.ArgumentNullException: Value cannot be null. Parameter name: s at System.IO.StringReader..ctor(String s) at System.Xml.XmlDocument.LoadXml(String xml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.FlattenXmlToHashtable(String strXml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.DoesWorkflowCancelWhenItemEdited(String associationXml) at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.EnsurePageNotInLockingWorkflowIfInEditMode() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.LoadDataSource() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.... bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
04/04/2014 11:07:36.72* w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected ...Publishing.WebControls.PublishingSiteActionsMenuCustomizer.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
04/04/2014 11:07:36.75 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http://mydomain:Port/Site/Lists/Listname/Item/editifs.aspx?List=c15b9e3c%2D2aac%2D4a84%2D8317%2De3f9358f41bc&ID=144&IsDlg=1&Web=b5b749d6%2D0d3c%2D4cb5%2Daf3a%2D819ff5ceb88c)). Execution Time=75.1751473982343 bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
04/04/2014 11:07:36.78 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:http://mydomain:Port/_catalogs/theme/Themed/7D19B0BC/corev4-8A0ABD2F.css?ctag=0))

Similar Messages

  • Error when exporting to Excel for SharePoint 2010 List

    We have few users who are getting the following error message when they try to export to Excel from the SharePoint list:
    "An operation that uses the database driver could not be completed. If the driver is a Microsoft driver, make sure the driver file isn’t damaged, and if it is, reinstall the driver by reinstalling Microsoft Query. For other drivers, contact
    your database administrator or driver vendor.‘
    The export option works for me on my machine and also tested it out on other users' machines without issues. The list is currently holds 29763 items.
    1. Created a view that filter the list to show few items, and the user was able to export without issues.
    2. Followed the steps in the following Blog:
    http://www.sharepointserverrecovery.com/blog/troubleshooting-problems-when-exporting-sharepoint-list-data-to-excel-spreadsheet-and-fixing-database-corruption/ and the user was able to export the original list.
    3. My colleagues and I don't have any issues exporting to Excel. (Note: even my test account, that does not have any special permissions or members of any SharePoint group(s)).
    4. Some Blog/Forums suggest to increase Threshold limit in Central Admin, which we don't want to do, since the issue only affect certain users.
    Any idea on how to troubleshoot/resolve the issue?
    Thanks,
    Yassar

    Do they have to export all the information or is a subset of it ok? 
    Creating an index on the columns that your users interact with the most and then creating views that limit the returned results will be useful.  This will then allow an export.

  • Error when reading unassigned items on /CCM/MASTER_CATALOG

    Hello gurus,
    we upgrated CCM 2.0 from SP 06 to SP10.
    After we uploaded new schema on /CCM/MASTER_CATALOG and mapped newly
    Supplier Catalogs to Master catalog and Master to Procurements.
    When I connect on /CCM/MASTER_CATALOG in edit mode, on "Content" tab we
    saw an error "Error when reading unassigned items". In the catalog
    structure tree, yellow arrow is on MASTER CATALOG name.
    In the log there are error log with error information: "ERROR READING
    HEADER DATA".
    Is this problem dependent on upgrade or something else?
    These are our components on system:
    SAP_BASIS 700 0013 SAPKB70013
    PI_BASIS 2005_1_700 0013 SAPKIPYJ7D
    SAP_BW 700 0015 SAPKW70015
    FINBASIS 600 0010 SAPK-60010INFINBASIS
    BI_CONT 703 0007 SAPKIBIIP7
    SEM-BW 600 0010 SAPKGS6010
    CCM 200_700 0010 SAPK-27010INCCM
    Thanks for all
    Gerardo

    hi,
    See the foll related threads:
    Re: CCM - "error when reading master catalog"
    Re: Problem when upload content
    Error reading master data catalog (CCMv2)
    Re: Catalog item not found during publication master catalog
    Re: Uploading of Master Schema in CCM 2.0
    Error" Index of values is missing for characteristic " in mapping
    CCM automatic upload of CSV files
    Re: Uploading in CCM
    Re: CCM 2.0 Sample file CSV
    Re: How to change an existing line item in CCM catalog using CSV file?
    Re: Date Problem in CSV 2.0 Format in CCM
    Re: How to change an existing line item in CCM catalog using CSV file?
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • Error when starting work item

    Hi
    We are having SRM5.0.
    Trying to create Contract. Workflow Without approval of contract(WS1400086)is activated and start conditions also no workflow activated.
    Contract is created and getting message Contract created.
    But when tried to release the contract it shows "Awaiting approval".
    In Workflow log (SWI1)it shows error."Error when starting work item xxxx".
    What could be the reason. Please let me know the solution if anyone of you come across such error.
    Thanks in advance
    Jagadish

    Masa
    It is maintained as General task already.
    It seems the workflow task WS14000085 does not have definition.
    When checked in SWDD for the above teask there are no steps defined for that workflow.
    SAP says that we need to define and action for workflow WS14000085.
    But what is the procedure to define the workflow.
    I presume this is the standard workflow and it should be defined by default when it comes along with the SRM package.
    Anyone of you know how to define the workflow and activate the same?
    Regards
    Jagadish

  • I am getting error when hovering on document in sharepoint online "sorry there was a problem and we can't open this document.If this happens again, try opening the document in Microsoft Word"

     I am getting error when hovering on document in sharepoint online "sorry there was a problem and we can't open this document.If this happens again, try opening the document in Microsoft Word".I am sure that document is not corrupted and
    all. something it showing the preview and sometimes it throwing this error. I hope this error is intermident. When clicking on the link also it throws this error but on refreshing it working fine. I dont know why it is happening. Please helpme  to resolve
    this issue. 

    Hi Waqas
    Thanks for your help with this. I had a look at both posts, the URL works fine from the WAC server and I am not using a System account to test docs.
    Also, this is a production site that is accessible over the Internet, so we are using https therefore the WOPIZone is external-https.
    Issue #3 in the above blog link does not reflect the same error I see on my servers.
    I also had a look at the information in this link: http://technet.microsoft.com/en-us/library/ff431687.aspx#oauth
    Problem: You receive a "Sorry, there was a problem and we can't open this document" error when you try to view an Office document in Office Web Apps.
    If you added domains to the Allow List by using the
    New-OfficeWebAppsHost cmdlet, make sure you’re accessing Office Web Apps from a host domain that’s in the Allow List. To view the host domains in the Allow List, on the Office Web Apps Server open the Windows PowerShell prompt as an administrator and run
    the Get-OfficeWebAppsHost cmdlet. To add a domain to the Allow List, use the
    New-OfficeWebAppsHost cmdlet.
    I have not added any domains to the Allow list so this did not help either. Should I add the domain?
    Any further help with this is much appreciated.
    Thanks again.
    Yoshi

  • "Finding occurrences" error when editing .mxml file in Flash Builder 4.6 Premium (Trial)

    I am evaluating Flash Builder 4.6.  Windows 7 Ultimate x64
    I am trying to go through the Flex in a week training series but I am getting a lot of the "Finding occurrences" errors when editing the mxml files.
    The error:
    An internal error occurred during: "Finding occurrences".
    java.lang.NullPointerException
    This error occurs almost every time an xml tag is edited.
    I can dismiss the error window that pops up by hitting 'Enter' and can continue editing the .mxml file but the error keeps repeating.
    I was getting this error in the Day 1 set of exercises but after awhile the errors just stopped.
    Now that I have imported the Day 2 starter projects, the error has started again but is occurring on almost every keystroke when editing an xml tag/element!.
    Anyone have any ideas how to correct this issue?

    Ok, I seemed to have found a solution/workaround for the error.
    After importing the Day 2 starter projects, I did not exit and restart Flash Builder. After exiting/restarting Flash Builder, I can now edit the .mxml files without the annoying "Finding occurrences" errors.

  • Setting ScrollPosition when editing tree item

    Hi
    Is there a way to set the horizontal scroll position to see the cursor when editing an item in a tree?  When the item is edited, the scroll position stay at it's position even if the cursor is off the screen. You don't see what you're typing.
    Thanks

    I've set the scroll position to maxhorizontalScrollPosition when i start the edit process but if i delete the text, the scroll stays at the max value. I need something that will set the position to follow the cursor during the edit process

  • Create Pie Chart and Vertical bar chart using report builder 3.0 with sharepoint custom list

    Hi All,
    I have a client requirement to create reports which should show the graphical representation of SharePoint Custom List data. The reports are Month wise and YTD. Also i have to create dashboard.
    For creating reports, i have heard about Report Builder and SSRS. I have SQL server 2008r2 and installed report builder 3.0 but i am not aware of creating reports(KPI, Pie Chart, Vertical bar, etc.,) with sharepoint customlist.
    Can some one please help me on this.
    MercuryMan

    Here is some information about using the SharePoint List Data source with SSRS/Report Builder/BIDS:
    http://www.infotoad.com/blog/post/2012/10/11/using-a-sharepoint-list-connection-type-as-a-data-source-for-reporting-services.aspx
    http://technet.microsoft.com/en-us/library/ee633650.aspx
    http://www.codeproject.com/Articles/24469/SQL-Reporting-Services-data-from-SharePoint-lists
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How do I edit an item in my reading list in Safari version 7.0.2?

    How do I edit an item in my reading list in Safari version 7.0.2?
    MacBook Pro Late 2008, Running Mavericks OS 10.9.2.
    Safari version 7.0.2.

    Right or control the web address then click then click:
    Open in new tab / Open in new window / Mark as unread / Remove Item / or Clear Items.

  • Why are some items on the purchased list duplicated

    Why are some items on the purchased list duplicated

    Perhaps you are repeatedly checking for available updates while downloads are in progress. This can sometimes cause more than one copy to be added to the download queue.
    tt2

  • I have a sharepoint custom list with Title and image attachments, now i want to display image attachments in div based on the title.

    hi,
    i have a sharepoint custom list with Title and image attachments, now i want to display image attachments in div based on the title.

    i am using the below code only
     SPSite mySite = new SPSite("http://sharepoinsiteaddress");
    SPWeb myweb = mySite.OpenWeb();   
    SPList myList = myweb.Lists["Announcements"];   
    SPListItem myListItem = myList.GetItemById(1);   foreach (String attachmentname in myListItem.Attachments)
    String attachmentAbsoluteURL =    myListItem.Attachments.UrlPrefix // gets the containing directory URL
       + attachmentname;
       // To get the SPSile reference to the attachment just use this code
      SPFile attachmentFile = myweb.GetFile(attachmentAbsoluteURL);
       // To read the file content simply use this code
       Stream stream = attachmentFile.OpenBinaryStream();    StreamReader reader = new StreamReader(stream);
       String fileContent = reader.ReadToEnd();
    here i am using panel, how can i attach this attached image to panel

  • Cannot have multiple items selected in a DropDownList when edit the forum in sharepoint

    hi ,
    i  have custom forum for new and edit, in new forum we have controls drop down values, when select drop down1   values that related values are displayed in dropdown2 , when edit  item  that  time we getting error
    Cannot have multiple items selected in a DropDownList.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Web.HttpException: Cannot have multiple items selected in a DropDownList.
    Source Error:
    HttpException (0x80004005): Cannot have multiple items selected in a DropDownList.]
    System.Web.UI.WebControls.DropDownList.VerifyMultiSelect() +124
    System.Web.UI.WebControls.ListControl.RenderContents(HtmlTextWriter writer) +10956501
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +42
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
    System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +13
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +42
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
    System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +42
    ASP._controltemplates_amat_appayrequest_webparts_appayrequest_appayrequestusercontrol_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\AMAT.APPayRequest.Webparts\APPayRequest\APPayRequestUserControl.ascx:350
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
    System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +42
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
    System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
    System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
    System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
    System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +42
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
    System.Web.UI.Page.Render(HtmlTextWriter writer) +38
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240

    Hello,
    Could you please share your code with us? Also explain how you are binding DDL.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Error when editing items in content area!

    Hi,
    I get an error: HTTP 404 - File not found, everytime I want to edit an item in the content area, after another try it works and does the changes.
    I'd like to know if this is a know bug? what's happening?
    This is bad to portal performance, the publishers and developers are backing out, due to this prob.
    Also I'm getting timeouts all the time.
    Any help?
    Carolina.

    Hi,
    This has been mentioned on a thread on 'General' about getting 404 errors and timeouts. I am having exactly the same problem.
    I re-installed our Server from Scratch with Windows 2000 and Portal version 3.0.9.8.0 so I would have a totally clean install, but I still get the same problems.
    Someone mentioned that turning Intermedia (Oracle Text) searching on causes the problems. Does anyone know if there is a fix for this? Any word on this from Oracle?
    Richard

  • Error when editing form --using an event receiver

    Hi,
    I created an event receiver sandbox solution and deployed it to preprod.  My code doesn't work and everytime I edit an item it gives me this error. I don't receive an error when I create an item.
    Server encountered an internal error. For more information, turn off customErrors in the server's .config file.
    at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion,
    Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin,
    Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) at Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean
    bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames, Object& objAttachmentContents, Boolean
    suppressAfterEvents, String filename, Boolean bPreserveItemUIVersion) at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut,
    Boolean bCheckin, Boolean suppressAfterEvents, String filename, Boolean bPreserveItemUIVersion) at Microsoft.SharePoint.SPListItem.Update() at Microsoft.SharePoint.WebControls.SaveButton.SaveItem(SPContext itemContext, Boolean uploadMode, String checkInComment)
    at Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    private bool HasFieldChanged(SPItemEventProperties properties, string sInternalName)
    if (properties.ListItem[sInternalName] != null && properties.AfterProperties[properties.ListItem.Fields[sInternalName].StaticName] != null)
    //before properties is not equal than after properties
    return !properties.ListItem[sInternalName].ToString().Equals(properties.AfterProperties[properties.ListItem.Fields[sInternalName].StaticName].ToString(), StringComparison.OrdinalIgnoreCase);
    return false;
     public override void ItemUpdating(SPItemEventProperties properties)
     base.ItemUpdating(properties);
     try
     if (HasFieldChanged(properties, "WHQ") && !HasFieldChanged(properties, "Employee Type"))
     SPList oSPList = properties.Web.Lists["EPDEMails"];
     SPListItem oSPItem = oSPList.AddItem();
     SPListItem item = properties.ListItem;
     string sAfterWHQDepartment = properties.AfterProperties[properties.ListItem.Fields["WHQ Department"].StaticName].ToString();
     string sBeforeWHQDepartment = item[properties.ListItem.Fields["WHQ Department"].StaticName].ToString();
     string sEmails = string.Empty;           
     string sGroups = string.Format("{0},{1},Editors", sAfterWHQDepartment, sBeforeWHQDepartment);
     foreach (string group in sGroups.Split(','))
     foreach (SPUser thisuser in properties.Web.Groups[group].Users)
                                sEmails += thisuser.Email + ";";
                        oSPItem["Subject"] = "Employee Transfer to a different WHQ Department";
                        oSPItem["To"] = sEmails;
                        oSPItem["Body"] = string.Format("{0} {1} has been transferred to {2} from {3}. Please update EPD ASAP", item["First Name"],
    item["Last Name"], sAfterWHQDepartment, sBeforeWHQDepartment);
                        oSPItem.Update();
      if (HasFieldChanged(properties, "Region") && !HasFieldChanged(properties, "Employee Type"))
                    SPList oSPList = properties.Web.Lists["EPDEMails"];        
      SPListItem oSPItem = oSPList.AddItem();
      SPListItem item = properties.ListItem;
      string sAfterRegion = properties.AfterProperties[properties.ListItem.Fields["Region"].StaticName].ToString();
      string sBeforeRegion = item[properties.ListItem.Fields["Region"].StaticName].ToString();
      string sEmails = string.Empty;
      string sGroups = string.Format("{0},{1},Editors", sAfterRegion, sBeforeRegion);
      foreach (string group in sGroups.Split(','))
      foreach (SPUser thisuser in properties.Web.Groups[group].Users)
                           sEmails += thisuser.Email + ";";
                        oSPItem["Subject"] = "Employee Transfer to a different Region";
                        oSPItem["To"] = sEmails;
                        oSPItem["Body"] = string.Format("{0} {1} has been transferred to {2} from {3}. Please update EPD ASAP", item["First Name"],
    item["Las tName"], sAfterRegion, sBeforeRegion);
                        oSPItem.Update();
     if (HasFieldChanged(properties, "Employee Type"))
     SPList oSPList = properties.Web.Lists["EPDEMails"];
     SPListItem oSPItem = oSPList.AddItem();
     SPListItem item = properties.ListItem;
     string sChangedEmployeeType = properties.AfterProperties[properties.ListItem.Fields["Employee Type"].StaticName].ToString();
     if (sChangedEmployeeType == "Region")
    string sAfterRegion = properties.AfterProperties[properties.ListItem.Fields["Region"].StaticName].ToString();
    string sBeforeWHQDepartment = item[properties.ListItem.Fields["WHQ Department"].StaticName].ToString();
    string sEmails = string.Empty;
    string sGroups = string.Format("{0},{1},Editors", sAfterRegion, sBeforeWHQDepartment);
     foreach (string group in sGroups.Split(','))
     foreach (SPUser thisuser in properties.Web.Groups[group].Users)
                                    sEmails += thisuser.Email + ";";
                            oSPItem["Subject"] = "Employee Transfer to a Region";
                            oSPItem["To"] = sEmails;
                            oSPItem["Body"] = string.Format("{0} {1} has been transferred to {2} from {3}. Please update EPD ASAP",
    item["First Name"], item["Last Name"], sAfterRegion, sBeforeWHQDepartment);
                            oSPItem.Update();
     else if (sChangedEmployeeType == "WHQ")
     string sBeforeRegion = item[properties.ListItem.Fields["Region"].StaticName].ToString();
     string sAfterWHQDepartment = properties.AfterProperties[properties.ListItem.Fields["WHQ Department"].StaticName].ToString();
     string sEmails = string.Empty;
     string sGroups = string.Format("{0},{1},Editors", sAfterWHQDepartment, sBeforeRegion);
     foreach (string group in sGroups.Split(','))
     foreach (SPUser thisuser in properties.Web.Groups[group].Users)
                                    sEmails += thisuser.Email + ";";
                            oSPItem["Subject"] = "Employee Transfer to a WHQ Department";
                            oSPItem["To"] = sEmails;
                            oSPItem["Body"] = string.Format("{0} {1} has been transferred to {2} from {3}. Please update EPD ASAP",
    item["First Name"], item["Last Name"], sAfterWHQDepartment, sBeforeRegion);
                            oSPItem.Update();
      //send email
      SmtpClient sendEmail = new SmtpClient();
      MailMessage message = new MailMessage();
      sendEmail.Host = "[email protected]";
      message.IsBodyHtml = true;
      message.From = new MailAddress("[email protected]");
      message.To.Add("[email protected]");
      message.Subject = "Test Email on Transfer Jan 13th";
      message.Priority = MailPriority.Normal;
      sendEmail.Send(message);
    catch (Exception ex)
    throw ex;
    This is really frustrating.  Any help is appreciated.
    Talibah C

    Hello,
    Can you debug your solution and let us know the line where your code is failing. Also tell what form you are editing and Is there any checkin/Checkout feature enable on that library?
    BTW i have found two similar threads for same error:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2096609e-036e-4e5a-bd69-3cded4d3ca89/sharepoint-2010-error-failed-hr-detected-unable-to-update-list-item?forum=sharepointgeneralprevious
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2277fdab-5652-4627-9879-da199089d6e6/how-can-i-get-around-this-error-when-modifying-a-document-via-itemadded-event?forum=sharepointdevelopmentlegacy
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Subcontracting Order - No error when delete an Item after I made 541 MB1B

    Hello ,
    I want to know if I can solve by Customimzing that the SAP send me an error when I try to delete an item of a
    Subcontracting Order AFTER I have made 541(Transfer posting to stock with subcontractor)  for this item  ...
    The system shouldn´t allow this action ...and it does !! .
    Some body have any idea what could be ??
    I have SAP R/3 Release 6 C
    Kind Regards.

    ...The system shouldn´t allow this action ...and it does !!...
    Why should not it allow? One thing is that you provide the subcontractor with components and one thing that they use it for production.
    There migh be business processes when the subcontractor cannot avoid using the compoenents but there might business processes when the subcontractor won't use it (e.g. the subcontractor gets different instructions in the meanwhile or uses its own rawmaterial or the client changes his mind and doesn't need one component, etc).
    In my opinion there's no such setting in SAP.
    Best regards,
    Csaba
    Edited by: Csaba Szommer on Aug 26, 2009 7:55 PM

Maybe you are looking for

  • Flex error while deploying a VC application

    Hi Experts, Though I have rarely worked on VC developments, I have to troubleshoot an issue wherein we are getting following error while deploying a VC Application. Error: Error in compiling flex application. Consult log file for details. I have got

  • My ipod will just give me a blank white  screen

    I'm having trouble with my ipod, I just downloaded a new update to my ipod, and my ipod just reset itself, and when the screen came back on it gave me just a white screen... I still have that white screen at the moment, and when I reset it will give

  • Where has Mozilla's open browser gone? Why is there going to be DRM in my Firefox?!

    What happened?! Why is this happening!? Can This Web Be Saved? Mozilla Accepts DRM, and We All Lose It's official: the last holdout for the open web has fallen. Flanked on all sides by Google, Microsoft, Opera and (it appears) Safari's support and pr

  • HOW TO POST TO ACCOUNTS WITH OPEN ITEM MANGED IN NON LEADING LEDGER

    Dear Expert, While try to post to GL codes which is open item manged in Non LEading/Parallel Ledger it is not allowing. Then how to post to these GL codes. REgards, Alok

  • Uploading php files to server

    Hi. I would have thought my hosting provider could have helped me with this, but they could not. I have three different sites that i manage that are hosted at Interland. On one of these sites, when i upload a php file, and then try to bring this page