Welcome to our website

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ed ut perspiciatis unde omnis iste.

Posts mit dem Label CRM 2011 Troubleshooting werden angezeigt. Alle Posts anzeigen
Posts mit dem Label CRM 2011 Troubleshooting werden angezeigt. Alle Posts anzeigen

Samstag, 2. Juni 2012

Fixed: Import CRM 4.0 Organization on CRM 2011 Deployment Error


During an import of an new customer (from Dynamics CRM 4.0) to our Dynamics CRM 2011 Hosting
Plattform we fixed the folowing issues during the troubleshooting:

Here a short summary of the issue and
the  action plan.

[SCOPE] KBA-Z9H1Y2

ISSUE:

Import CRM 4.0 Organization on CRM 2011 Deployment Error CRM 2011 Exeption without any further details:
11:18:07|  Error| Installer Complete: OrganizationUpgrader - Error encountered
11:18:07|  Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed.
InnerException:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: A severe error occurred on the current command.  The results, if any, should be discarded.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteScalar()
   at Microsoft.Crm.CrmDbConnection.InternalExecuteWithRetry[TResult](Func`1 ExecuteMethod, IDbCommand command)
   at Microsoft.Crm.CrmDbConnection.InternalExecuteScalar(IDbCommand command)
   at Microsoft.Crm.CrmDbConnection.ExecuteScalar(IDbCommand command, Boolean impersonate)
   at Microsoft.Crm.DataUpgrade.DeleteCompletedOldAsyncOperationsAction.Execute(Boolean upgradeJobsOnly)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
   at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
   at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
   at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
InnerException:
System.Data.SqlClient.SqlException (0x80131904): A severe error occurred on the current command.  The results, if any, should be discarded.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteScalar()
   at Microsoft.Crm.CrmDbConnection.InternalExecuteWithRetry[TResult](Func`1 ExecuteMethod, IDbCommand command)
   at Microsoft.Crm.CrmDbConnection.InternalExecuteScalar(IDbCommand command)
   at Microsoft.Crm.CrmDbConnection.ExecuteScalar(IDbCommand command, Boolean impersonate)
   at Microsoft.Crm.DataUpgrade.DeleteCompletedOldAsyncOperationsAction.Execute(Boolean upgradeJobsOnly)


IMPACT / AUSWIRKUNG: 
Not able to complete Migration / Organization Import.
Possible Roleback to the still existing Dynamics CRM 4 Deployment


ROOT CAUSE:
This question has been solved and asker verified.For Access to this Solution please register by sending an request to support[@]dynamicsconsulting.de and request the cause/solution for KBA-Z9H1Y2
 
ACTION PLAN / NÄCHSTE SCHRITTE:
This question has been solved and asker verified.
For Access to this Solution please register by sending an request to support[@]dynamicsconsulting.de and request the cause/solution for KBA-Z9H1Y2

LABOUR / AUFWAND:

Freitag, 11. Mai 2012

Fixed it! CRM 2011 404 Error Loading Web Resources

After installing Microsoft Dynamics CRM 2011 at a customer site today we get the follwoing issue. The CRM appeared to complete successfully, and if you didn’t look too close, the application seemed to be working fine.
But once we started to configure the queues, we noticed that there were form scripting errors all over the place. We usd fiddler to get more details on this issue.

As it turns out, the CRM was unable to load any of the Web Resources. 

Resolution 1 – URL Re-Write Rules Missing
In the CRM’s web.config (please make a backup copy of this file before working on it), there should be a <rewrite> section. If it is missing or doesn’t look like the XML below, then try updating it:
<rewrite>
<rules>
<rule name="ClientGlobalContextRule" stopProcessing="true">
<match url="/?([0-9a-zA-Z][^/]*)?/?((?:%7b|\{)[^/]*(?:%7d|\}))?/?(WebResources|Handlers)/ClientGlobalContext.js.aspx" />
<action type="Rewrite" url="/{R:1}/_Common/ClientGlobalContext.js.aspx" />
</rule>
<rule name="WebResourcesRule" stopProcessing="true">
<match url="/?([0-9a-zA-Z][^/]*)?/?((?:%7b|\{)[^/]*(?:%7d|\}))?/?webresources/([^\\?]+)" />
<action type="Rewrite" url="/{R:1}/Handlers/WebResource.ashx?name={R:3}" />
</rule>
<rule name="FederationMetadataRule" stopProcessing="true">
<match url="FederationMetadata/2007-06/FederationMetadata.xml" />
<action type="Rewrite" url="/Handlers/FederationMetadata.ashx" />
</rule>
</rules>
</rewrite>

Note that if your <rewrite> section is missing altogether, then you should insert the snippet above between this:
</requestFiltering>
</security>

and this:
</system.webServer>
<system.serviceModel>

After updating the web.config, you should do an IISRESET or reboot the server.
Resolution 2 – URL Re-Write Module is Corrupt
In our case, the <rewrite> section was ok, but it turned out that the IIS URL Re-Write Module was corrupt.

Open up Control Panel—>Programs. Select the Microsoft URL Rewrite Module from the list, and click the ‘Repair’ button. Or go ahead uninstall teh 1.1 URL Rewrite Module and install the 2.0 Version direcly. Will be required for CRM 2011 ADFS / IFD Deployments anyway.

IISRESET or reboot the server.

Fixed andcustomer happy!

Donnerstag, 22. März 2012

CRM 2011 Outlook Client Tracing 101

Have you run into a problem with the Outlook client and someone suggested, “Hey, turn on tracing and let me know what you find”?

Gee, thanks. That’s helpful, right?

Here’s what you need to know about tracing for the Outlook client:

  1. What is tracing?

  1. Tracing is a way to gather a list of the information passed back and forth between a program and a computer. For the CRM Outlook client, tracing will show a chronological, readable play-by-play of what the add-in is trying to do, including error messages that are often more helpful than “An error occurred. Please contact your System Administrator.” (Side note: Microsoft has done an admirable job in CRM 2011 of minimizing these generic error messages, so no digs implied, Microsoft!)

  • How do I turn tracing on?

  1. If you encounter weird errors and there’s no apparent cause (like a SwagBucks browser add-on perusing all your web traffic – c’mon, people!), you can enable tracing by going to the Start menu > All Programs > Microsoft Dynamics CRM 2011 > Diagnostics. Click on the Advanced Troubleshooting tab, and place a checkmark next to “Tracing”. Then click Save.
    diag-adv_trblshooting

  • Where do I find the results?

  1. Aaah, you actually want to see what happens?! The trace files (simple text files) are saved on your hard drive. By default (in Windows 7) they can be found at:

    C:\Users\JohnTravolta\AppData\Local\Microsoft\MSCRM\Traces

    (Obviously, unless you’re the star of Get Shorty, you need to change the name in the path above.)

  • What else should I know?

  1. Turn tracing off when you’re done playing around. Collecting all that information can slow your Outlook client down. Then send the files to your friendly neighborhood support type person.
  2. I’m not going to go into the meaning of the information in the trace files here because this is a post about Tracing 101, and that’s a 200-level topic, and that’s what Google Bing is for (and it’s been a long day!).

Mittwoch, 14. Dezember 2011

export a dynamic worksheet I get an sql error: Connection failed, SQLState: 28000, SQL Server Error: 18456: Login failed for user xy. This error comes on a windows server 2008.

Issue:
======
CRM works fine, but if I'm trying to export a dynamic worksheet I get an sql error: Connection failed, SQLState: 28000, SQL Server Error: 18456: Login failed for user xy. This error comes on a windows server 2008.
On windows server 2008 r2: SQLState: 01000, SQL Server Error: 10060 Connection failed. Then a second SQLState: 08001, SQL Server Error: 17 SQL Server does not exist or access denied.
Both environments are in the same domain and I tried with several user. Everytime the same. Data Connector is installed on both machines. Both machines are single servers (crm+sql on the same machine).

Cause:

=======
Firewall is not going to allow the connection on Port

Solution:

========
How do I open the firewall port for SQL Server on Windows Server 2008?
Windows Firewall on Windows Server 2008 helps prevent unauthorized access to computer resources. However, if the firewall is configured incorrectly, attempts to connect to an instance of SQL Server may be blocked. To access an instance of SQL Server that is behind the firewall, you must configure the firewall on the computer that is running SQL Server.

This article helps you open the firewall ports for SQL Server on Windows Server 2008.

To have us fix this problem for you, go to the "Fix it for me" section. If you prefer to fix this problem yourself, go to the "Let me fix it myself" section.


To fix this problem automatically, click the Fix this problem link. Click Run in the File Download dialog box, and then follow the steps in this wizard.

Fix this problem
Microsoft Fix it 50169



Note this wizard may be in English only; however, the automatic fix also works for other language versions of Windows.

Note if you are not on the computer that has the problem, save the Fix it solution to a flash drive or a CD and then run it on the computer that has the problem.


The script that is discussed in this section opens the firewall ports for SQL Server.

To create the script, follow these steps:

  1. Start Notepad.
  2. Copy and paste the following code into Notepad:

    @echo =========  SQL Server Ports  ===================
    @echo Enabling SQLServer default instance port 1433
    netsh firewall set portopening TCP 1433 "SQLServer" 
    @echo Enabling Dedicated Admin Connection port 1434
    netsh firewall set portopening TCP 1434 "SQL Admin Connection" 
    @echo Enabling conventional SQL Server Service Broker port 4022  
    netsh firewall set portopening TCP 4022 "SQL Service Broker" 
    @echo Enabling Transact-SQL Debugger/RPC port 135 
    netsh firewall set portopening TCP 135 "SQL Debugger/RPC" 
    @echo =========  Analysis Services Ports  ==============
    @echo Enabling SSAS Default Instance port 2383
    netsh firewall set portopening TCP 2383 "Analysis Services" 
    @echo Enabling SQL Server Browser Service port 2382
    netsh firewall set portopening TCP 2382 "SQL Browser" 
    @echo =========  Misc Applications  ==============
    @echo Enabling HTTP port 80 
    netsh firewall set portopening TCP 80 "HTTP" 
    @echo Enabling SSL port 443
    netsh firewall set portopening TCP 443 "SSL" 
    @echo Enabling port for SQL Server Browser Service's 'Browse' Button
    netsh firewall set portopening UDP 1434 "SQL Browser" 
    @echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK)
    netsh firewall set multicastbroadcastresponse ENABLE 
    
  3. Save the file as a .txt file by using the following name: OpenSqlServerPort.txt
  4. Rename the OpenSqlServerPort.txt file to the following: OpenSqlServerPort.bat


Before you run the OpenSqlServerPort.bat script, you must copy the script to the computer which has the firewall and then run the script on that computer. To run the script, follow these steps:
  1. Click Start, click Run, type cmd, and then click OK.
  2. At the command prompt, use the cd command to navigate to the folder in which you saved the OpenSqlServerPort.bat file.
  3. To run the OpenSqlServerPort.bat script, type OpenSqlServerPort.bat at the command prompt, and then press ENTER.
http://support.microsoft.com/kb/968872/en-us

Mittwoch, 11. Mai 2011

Microsoft Dynamics CrmDiagTool 2011

CRM 2011 – New tool: CrmDiagTool 2011


One of my favourite CRM bloggers and creator of lots of useful CRM tools has been busy updating my one of my favourite CRM 4 tools CrmDiagTool.
you can find some information about the tool here. The tool is manly used to enable/disable tracing (which you can do without restarting the IIS server). You can also zip up the trace files
you can download the tool here
The features are the following:
  • Enable/Disable tracing
  • Zip content of Trace directory
  • Open Trace directory
  • Generate diagnostic file in text or html format with components selection
  • Enable/Disable DevErrors
Some screenshots:
crmdiagtool2011_1
crmdiagtool2011_2
crmdiagtool2011_3
crmdiagtool2011_4

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Free Samples By Mail