after crm 2011 organization import errors - linq

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.

Related

debug plugin using plugin registration tool CRM 2013

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:.......

FAILED_PRECONDITION when trying to create a new Google API project

I am getting an error when attempting to create a new project for Google API at https://code.google.com/apis/console
I was hoping the error was temporary, but I have been unable to create a new project for a couple weeks now.
The error seems to have changed, as it used to include server ip information and a lot of other data. An example with some potentially private information removed:
APPLICATION_ERROR;google.cloudresourcemanager.projects.v1beta1/DeveloperProjects.CreateProject;com.google.apps.framework.request.StatusException:
generic::FAILED_PRECONDITION:
;AppErrorCode=9;StartTimeMs=1489595147198;tcp;Deadline(sec)=50.0;ResFormat=UNCOMPRESSED;ServerTimeSec=0.027545452117919922;LogBytes=256;FailFast;EffSecLevel=none;ReqFormat=UNCOMPRESSED;ReqID=removed;GlobalID=removed;Server=ip:port
Now the error is a lot shorter, although still seems to be related to the same cause:
com.google.apps.framework.request.StatusException: generic::FAILED_PRECONDITION:
The spinner in the dashboard appears to spin forever, while the error appears underneath alerts after a few seconds. I have tried numerous project names and all fail with the same error.
Is there some type of quota I am missing that is preventing this? The quota menu item requires me to select a project, which I don't have any.
Clicking on the error brings me to a page with the following message:
You don't have permissions to perform the action on the selected resource.
Make sure that the Google Developers Console is on for the user that is trying to create the project.
Admin.google.com > Apps > Additional Google services > Google Developers Console and turn on for any org or user that needs it.
Looks like there's another possible cause, in addition to the one that #AndrewL provided in his solution.
Short answer:
I ran into the same error when I attempted to associate a new GCP project with our billing account via Terraform. Our billing account has a default limit of 5 projects (which we had already met), and this blocked the association of new accounts and generated the Error 400: Precondition check failed., failedPreconditionerror message. To fix, I had to remove/delete one of the already associated projects before I could add a new one.
Long answser:
Here is the error message I encountered in Terraform (sensitive data and IDs redacted):
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
~ module.<MY MODULE PATH>.project
billing_account: "" => "<MY BILLING ACCOUNT ID>"
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
module.<MY MODULE PATH>.project: Modifying... (ID: <MY PROJECT ID>)
billing_account: "" => "<MY BILLING ACCOUNT ID>"
Error: Error applying plan:
1 error(s) occurred:
* module.<MY MODULE PATH>.project: 1 error(s) occurred:
* google_project.project: Error setting billing account "<MY BILLING ACCOUNT ID>" for project "projects/<MY PROJECT ID>": googleapi: Error 400: Precondition check failed., failedPrecondition
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
My billing account was at its maximum of 5 projects. As a test, I removed one of the projects and then ran Terraform again. It then successfully added the new project to the billing account. To double check, I attempted to add yet another new project to the billing account (to push the amount to 6) and then received the same error message again.
Straight up deleting one of the associated projects also works.
It stands to reason that requesting a limit increase for your billing account's associated projects will also fix this issue.
Another possible reason for this error can be accessing the .xlsx file. If you are accessing this file using Google spreadsheet then you need to save the .xlsx file in to save as google sheets by choosing the option available in the File menu at the top.
Thanks
Another possible reason for this is Organization policy, denying the particular API on ORG/Folder/project level.
For me the error was working because I was trying to read the file from a shared google folder. Check if the drive where the file lives is your drive and not a shared one.

SQL Error on lead form for email - CRM 2015

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.

VSTS Error SerializationException

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.

CRM 2011 PRM Portal - error on solution import

I am trying to import the PRM portal solution into a RTM CRM 2011 on-premise installation -currently busy taking snapshots of my envronment so I can install update rollup 1.
I get the following error when the upload is completed:
ErrorCode: 0x80048425
ErrorText: The Form XML does not conform to the required schema.
A schema validation error has been detected at line 0, position 0.
Details: The 'ordinalvalue' attribute is not declared.
The account entity is customized and I have a couple of other managed solutions imported, an OData Query Designer as well as the Metadata Browser.
Any help or tips will be greatly appreciated.
Problem fixed by installing KB2461082 and updating CRM 2011 RC to CRM 2011 RTM

Resources