On the lead form when I enter in Email id and hit save it throws a following SQL error below, but there's no error, if I leave it empty.
here is the log file message
Unhandled Exception:
System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault,
Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35]]: Generic SQL error.Detail:
Based on the log file message and the public key token and research, I disabled the plugin activity plugin on lead form, I still receive the error message on form.
How to resolve this issue ?
You will need to debug the Generic SQL Error message to find more detail on the problem. Try turning on server logging and review the CRM log files, failing that try and capture the error within SQL.
Related
I have install profiler in one of my plugin step, which will executed on create of record.
Once i complete this, it generate a errorlog. I have copied that text and created a errorlog.txt. It looks like below :
|7V3rkqM4ln4VR/6Y2I0uGzDGl2xXTuR1OmeqKnMys3on+k+HANnJFAY34KrK3tiIfYJ9i32H+d9vsk+yEjcD5iJ8AYxPdUd3gQVIOtI53znfkTT98/eF3vmKLVszjfdnQo8/62BDMVXNmL8/...
When i upload that file, it gives me below error.
Unhandled Exception: System.ArgumentException: Unable to parse the OrganizationServiceFault.
Parameter name: serializedReport
at PluginProfiler.Library.ProfilerUtility.ExtractReport(String serializedReport)
at PluginProfiler.Library.ProfilerUtility.DeserializeProfilerReport(String assemblyFilePath, String logFilePath, Boolean isCrmDataStream)
at PluginProfiler.Library.ProfilerExecutionUtility.RetrieveReport(String logFilePath, Boolean isCrmDataStream)
at Microsoft.Crm.Tools.PluginRegistration.CommonControls.Helper.ParseReportOrShowError(Window window, FileBrowserView profilePathControl, Boolean requireReportParse, ProfilerPluginReport& report)
Inner Exception: System.InvalidOperationException: File does not contain a valid serialized OrganizationServiceFault.
at PluginProfiler.Library.ProfilerUtility.ConvertFaultToStream(String serializedFault)
at PluginProfiler.Library.ProfilerUtility.ExtractReport(String serializedReport)
I have already checked this link Debug CRM 2013 Using Plugin Profiler error : , but its not working.
This will happen, if you download the wrong log file and feed into PRT for debugging.
Correct log file:
Basically after installing profiler & the plugin step is profiled, once repro step is done in CRM, when trying to download the log file the prompt should read "Business Process error" and it should be encrypted & machine readable like below:
Download the details and load with Plug-in Profiler.
|7R1dc+I48q9QPGzdPRgbDMFhCVuzk8wttTsDFTJXW/tyJcttoosteWU5CfvrV7IN4cMBw0wM0ZIHgmS11OputVr.......
Wrong log file: (your case)
But not human readable like below:
System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #D42EB3A1Detail:.......
When my server encounters an error ELMAH successfully creates a log of the error including the URL & post data etc but the details of the exception itself are not in the xml log file. How do I change this?
The "detail" attribute of the "error" tag contains the details of the exception.
I have an organization that is deployed on an IFD CRM. My goal is to import that organization to new farm that has CRM 2011 with no IFD. Everything is ok while importing
but after import I cannot open that organization on new server. The error detail is:
Event code: 3007
Event message: A compilation error has occurred.
Event time: 27.12.2012 03:32:20
Event time (UTC): 27.12.2012 01:32:20
Event ID: 658277a3edea44089ca9af6e0c31f6c4
Event sequence: 236
Event occurrence: 5
Event detail code: 0
Exception message: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config(389):
error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)
After that error, I created new organizations and there is no problem with that new organization.
The CRM is with update rollup 8.
Turn on crm server side tracing. You'll get much better error information. Use the CRM diagnostic tool to turn on trace logging: http://crmdiagtool2011.codeplex.com.
I'm wondering if you have some plugin associated with the organization. So when you try to access it, the plugin fires and throws that exception.
You may have plugins in some of your solutions. It maybe configured to use the connections to your previous server. Hence, when you import it some error encountered. This is just a guess! If you provide more information on your error message, then could be analyze it better.
I tried debugging my code in team foundation server and I was receiving an error stating that
SerializationException was unhandled by user code and its description is Type is not resolved for member 'Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel,version=3.5.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35'. Please see the image for detail error.
Sorry, unable to post the image.
Thanks for your time.
I think you're missing a reference to Microsoft.IdentityModel, so it can't find code to do serialization/deserialization for part of an object.
My application using ASP.NET MVC3 with EF4.1, deployed on IIS7. Recently I've meet an error when trying to save an entity to an existing database on the production server, but everything goes well on my development machine.
I tried to build deploy package in VS2010 and import that package in IIS7, also, I've tried to upload all the solutions and create an application in IIS7 manually, but both of the 2 sites come to an error when executing a function that saves an entity to the database.
Error message is pasted below, but the physical path in error message does not exist in the production server, it's a path in my local development machine. This makes me confused. Has anybody ever seen this before?
BTW, I've fully backed up my database and restored it on the production server, so all the databases are same.
I'm open to hear any advice.
Thanks
Cheng
Error message:
Server Error in '/xxxx' Application. Validation failed for one or
more entities. See 'EntityValidationErrors' property for more details.
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.Data.Entity.Validation.DbEntityValidationException: Validation
failed for one or more entities. See 'EntityValidationErrors' property
for more details.
Source Error: An unhandled exception was generated
during the execution of the current web request. Information regarding
the origin and location of the exception can be identified using the
exception stack trace below.
Stack Trace:
[DbEntityValidationException: Validation failed for one or more entities. See
'EntityValidationErrors' property for more details.]
System.Data.Entity.DbContext.SaveChanges() +212
xxxxx.Models.SetupRepository.CreateApplicationOption(Guid companyId) in
D:\xxxx\Models\SetupRepository.cs:59
xxxxx.MvcApplication.MvcApplication_PostAcquireRequestState(Object sender, EventArgs e) > in D:\xxxx\Global.asax.cs:87
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+148 System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously) +75