System.Exception: Action Microsoft.Crm.Setup.Server.InstallConfigDatabaseAction failed. —> System.Data.SqlClient.SqlException: Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement.


 

Got this error while installing CRM 2013.

Following post helped in fixing the issue.

http://stackoverflow.com/questions/15488922/connection-to-sql-server-works-sometimes

https://community.dynamics.com/crm/f/117/t/115384.aspx

Hope it helps.

“Save and New” button in CRM 2013.


After upgrading the existing CRM 2011 solution to CRM 2013 we found out that Save and New button is missing while creating related child records.

The way we got it back was to open the solution in Ribbon Workbench and Customizing the command for Save and New button.

 

And removing the Mscrm.HideOnCommandBar rule.

 

 

Hope it helps.

Unable to get property ‘get_element’ of undefined or null reference in CRM 2013.


Hi,

We were getting this error, while trying to add a new related child record through sub grid.

Only for few users with a specific role, we were getting this error. Installing the update rollup 2 fixed the issue.

http://cupofdev.com/crm2013-rollup2-fixlist/

http://www.microsoft.com/en-in/download/details.aspx

Hope it helps.

An item with the same key has already been added error while importing solution in CRM 2013


Hi,

Recently while importing a solution from dev environment to test environment we were getting this error.

This error occurs when we have some kind of mismatch among the attribute in both the environment for e.g. same attribute is created in both the environment with different datatype.

After comparing the dev and test environment, we realized that the Schema Name for one of the field was different in dev environment.

i.e. lss_Client_agress_to_LSSContract in test and lss_client_agress_to_lsscontract in dev

So we removed the field from form and deleted it in our dev environment.

After that import worked properly.

Hope this helps

Refreshing the Web Resource in CRM 2013.


In one of our Entity’s Form we were using HTML Web Resource and this HTML web resource was showing values of the attributes in that form.

Now in CRM 2011, after we save the record the form reloads and so our web resource was picking up the new values saved.

However in CRM 2013, on save, as the form doesn’t reload, the values were not getting updated in the HTML Web Resource.

So the solution was to refresh the Web Resource using Jscript on the On Save event of the form.


function refreshWebResArea() {

var webResArea = Xrm.Page.ui.controls.get("WebResource_Name");

webResArea.setSrc(webResArea.getSrc());
}

Hope it helps.

Getting back the Mail Merge button in CRM 2013


After upgrading to CRM 2013, we found out that mail merge button was missing in the command bar.

The solution was to customize the command for the existing mail merge button on the form.

For this open the solution containing the entity in Ribbon Work Bench and select Form of the Entity.

Right click the Mail Merge button and select Customize Command

 

Select commands and select Edit Display Rules

 

Remove Mscrm.HideOnCommandBar rule

Refresh the xml generated and publish the solution.

Helpful post

http://www.develop1.net/public/post/How-to-restore-a-hidden-button-on-the-CRM-2013-Command-Bar.aspx

Hope it helps.