locked
Error for creating/updating certain contact records RRS feed

  • Question

  • This only happens on certain contact records, but it seems to happen consistently to the same record.  Here is the error I found on our application server.  We are on roll-up 15 as well.

    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 8/3/2011 4:28:11 PM 
    Event time (UTC): 8/3/2011 9:28:11 PM 
    Event ID: 943840e36bfc46f7992dbeacbe1cf7bc 
    Event sequence: 73595 
    Event occurrence: 26 
    Event detail code: 0 
     
    Application information: 
      Application domain: /LM/W3SVC/1/ROOT-1-129568541504928202 
      Trust level: Full 
      Application Virtual Path: / 
      Application Path: C:\inetpub\wwwroot\ 
      Machine name: LUNGRI 
     
    Process information: 
      Process ID: 2712 
      Process name: w3wp.exe 
      Account name: NT AUTHORITY\NETWORK SERVICE 
     
    Exception information: 
      Exception type: InvalidOperationException 
      Exception message: CrmDateTime must be initialized in one of the following formats: yyyy/MM/ddTHH:mm:ss[+-]aa:bb or yyyy/MM/ddTHH:mm:ss 
     
    Request information: 
      Request URL: http://lungri.olivet.edu/DatatelRecruiter/sfa/conts/edit.aspx?id={22DF5AAD-DFB2-E011-BF8C-0050569B2135} 
      Request path: /DatatelRecruiter/sfa/conts/edit.aspx 
      User host address: 172.16.64.185 
      User: ONU-AD\khatcher 
      Is authenticated: True 
      Authentication Type: Negotiate 
      Thread account name: NT AUTHORITY\NETWORK SERVICE 
     
    Thread information: 
      Thread ID: 27 
      Thread account name: NT AUTHORITY\NETWORK SERVICE 
      Is impersonating: False 
      Stack trace:  at Microsoft.Crm.Sdk.CrmDateTime.get_UserTime()
      at Microsoft.Crm.Application.Platform.EntityBase.get_Item(String name)
      at Microsoft.Crm.Application.Components.Sdk.FormControls.Web.CrmWebFormDataControlUIWrapper.SetValue()
      at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control)
      at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control)
      at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control)
      at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control)
      at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control)
      at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control)
      at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, String formType)
      at Microsoft.Crm.Web.SFA.ContactDetailPage.ConfigureForm()
      at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
      at System.Web.UI.Control.PreRenderRecursiveInternal()
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     
     
    Custom event details: 
    

    To me, it looks like it doesn't like the format of the date, however, I don't think I have any control over that on the CRM console.

    Thursday, August 4, 2011 5:11 AM

Answers

All replies

  • So we started out with issues with contact records randomly receiving the following error when saving for both new records and updating existing records.

    "Error - An error has occurred.

    Try this actaion again.  If the problem continues, check the Microsoft dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator.  Finally, you can contact Microsoft Support."

    We think we solved the problem so that this won't continue occuring (found out networking team had set up the application and database servers with half the RAM they were supposed to have, grr to them), however I still have contact records that previously had problems that are still giving the same message.  I have already cleared my cache, temporary internet files and everything else under the sun on my computer.  Is there a place on the server that these records that have errors may be being held up at? 

    Wednesday, August 3, 2011 4:11 PM
  • Hi,

    CRM does not keep held the errors that occurred and you are still facing error due to some issue. If you are using Microsoft Dynamics CRM On-Premise (company hosted) deployment then you can turn on the development errors (http://mayankp.wordpress.com/2010/09/11/dynamic-crm-troubleshooting-methods-for-any-crm-issue/) to get the exact error details.


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    Wednesday, August 3, 2011 4:18 PM
  • You will want to turn on tracing

    http://support.microsoft.com/kb/907490

    or use the diagnostic tool

    http://mscrmtools.blogspot.com/2011/04/new-tool-crmdiagtool-2011.html

    Either way you do it, you will enable the tracing and then recreate the error.  Hopefully it will tell you a lot more a out whta is going on in the generated tracing log.  You can even post it here so we can help you decypher it if it doesn't make sense.


    Jamie Miley
    Check out my about.me profile!
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
    Wednesday, August 3, 2011 4:36 PM
    Moderator
  • If you're lucky, CRM tracing may have been enabled; if so you should be able to get the information from the trace logs. Stunnware's trace viewer will help make parse the logs, if you have any
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    Wednesday, August 3, 2011 4:38 PM
    Moderator
  • The development errors definitely helped. I noticed this error on the application server involving this record at the time that I tried to save it:

    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
     <Provider Name="ASP.NET 2.0.50727.0" /> 
     <EventID Qualifiers="32768">1309</EventID> 
     <Level>3</Level> 
     <Task>3</Task> 
     <Keywords>0x80000000000000</Keywords> 
     <TimeCreated SystemTime="2011-08-03T16:52:29.000Z" /> 
     <EventRecordID>3027431</EventRecordID> 
     <Channel>Application</Channel> 
     <Computer>Lungri.ONU-AD.olivet.edu</Computer> 
     <Security /> 
     </System>
    - <EventData>
     <Data>3005</Data> 
     <Data>An unhandled exception has occurred.</Data> 
     <Data>8/3/2011 11:52:29 AM</Data> 
     <Data>8/3/2011 4:52:29 PM</Data> 
     <Data>61e7f22c5a1a4837988d83f7e1d9bd54</Data> 
     <Data>23695</Data> 
     <Data>9</Data> 
     <Data>0</Data> 
     <Data>/LM/W3SVC/1/ROOT-1-129568541504928202</Data> 
     <Data>Full</Data> 
     <Data>/</Data> 
     <Data>C:\inetpub\wwwroot\</Data> 
     <Data>LUNGRI</Data> 
     <Data /> 
     <Data>2712</Data> 
     <Data>w3wp.exe</Data> 
     <Data>NT AUTHORITY\NETWORK SERVICE</Data> 
     <Data>InvalidOperationException</Data> 
     <Data>CrmDateTime must be initialized in one of the following formats: yyyy/MM/ddTHH:mm:ss[+-]aa:bb or yyyy/MM/ddTHH:mm:ss</Data> 
     <Data>http://lungri.olivet.edu/DatatelRecruiter/sfa/conts/edit.aspx?id={22DF5AAD-DFB2-E011-BF8C-0050569B2135}</Data> 
     <Data>/DatatelRecruiter/sfa/conts/edit.aspx</Data> 
     <Data>172.16.64.169</Data> 
     <Data>ONU-AD\khatcher</Data> 
     <Data>True</Data> 
     <Data>Negotiate</Data> 
     <Data>NT AUTHORITY\NETWORK SERVICE</Data> 
     <Data>17</Data> 
     <Data>NT AUTHORITY\NETWORK SERVICE</Data> 
     <Data>False</Data> 
     <Data>at Microsoft.Crm.Sdk.CrmDateTime.get_UserTime() at Microsoft.Crm.Application.Platform.EntityBase.get_Item(String name) at Microsoft.Crm.Application.Components.Sdk.FormControls.Web.CrmWebFormDataControlUIWrapper.SetValue() at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control) at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control) at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control) at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control) at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control) at Microsoft.Crm.Application.Forms.EndUserForm.BindDataRecursively(Control control) at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, String formType) at Microsoft.Crm.Web.SFA.ContactDetailPage.ConfigureForm() at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</Data> 
     </EventData>
     </Event>
    It appears that a date field is a problem.  Is there any fix for this?
    Wednesday, August 3, 2011 8:31 PM
  • I should add that all of our date fields are set up as MM/DD/YYYY.
    Wednesday, August 3, 2011 8:36 PM
  • Do you have any plugin registered on some records?

    If yes, then there is problem in the code. I saw this one before..

    try this line to set a date

    CrmTypes.CreateCrmDateTimeFromUser(DateTime.Now)

     

    I hope this helps.


    Amreek singh Senior CRM Consultant CDC Praxa Sydney,Australia http://mscrmshop.blogspot.com/
    Thursday, August 4, 2011 7:08 AM
  • We do not have any plugins registered on some records.  Also, it seems to be happening on a custom field we created as well as the Birth Date field.
    Thursday, August 4, 2011 2:04 PM
  • Can you take a look at the record in the database and ensure data points like the createdon and modifiedon date fields for this Contact record look like date fields from other Contact records that are working.  If there are any date fields populated on the Contact record, please clear them and try to save the record again.

    Additionally, do you have an JavaScript running on the Contact entity.  If so, could you temporarily remove it, save and publish the changes to the Contact entity and try the action again.


    Regards, Donna

    Friday, August 5, 2011 11:26 AM
  • Hi,

    It seems like that the system auto datetime field stamps are wrong, if there are no records assosiated with these contacts then i would suggest you to expoert the contacts data into excel and then reimport back into the system.


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    Friday, August 5, 2011 12:42 PM
  • I've checked and there is no JavaScript running on the contact entity - or at least if there is i'm not seeing it in the OnLoad or OnSave event.  I'm not seeing anything wrong immediately with the createdon and modified on date fields.  Also, we are having this problem with new records so it could be more than just resaving a record.  We have found two of our date fields (one custom, the other was the Birthdate so native to Dynamics CRM) where this problem is happening consistently. The random erros have ceased to function.  Let me ask in order to rule this out.

    So the whole reason the random errors happened was due to a different (Possibly related issue) involving the record timing out to be added tothe database server.  The reason for this was that our networking team installed Dynamics CRM using only half of the recommended memory and resources along with a very small (potentially non-existant) swap file  We noticed several other plug-ins/processes outside of the main system started having trouble when the settings were like this and we had begun our heavy production.  Is there a plug-in or process that controls the formatting of the date/time fields that could have been corrupted and caused this problem?

    Friday, August 5, 2011 8:47 PM
  • Would that still be the case since it is alos happening with new records as well?
    Friday, August 5, 2011 8:48 PM
  • Hi,

    I would suggest you to open a case with Microsoft via CustomerSource (http://www.microsoft.com/dynamics/en/au/customersource.aspx , every customer recieves the Customer Source account on purchasing of CRM licenses via Partner, you mght also contact your Partner to open a case on behalf of yours) on this issue as it is very uncommon issue, specific to your deployment and also you are still facing this issue and it also might require Microsoft experts to look into your database.


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".

    Friday, August 5, 2011 8:54 PM