Managing Language Translations for multiple Organizations

I was implementing CRM for a manufacturing company which had their operations in multiple geographies and wanted the CRM solution to be available in different languages. We do have ability to enable languages and get the translations done.

Everything is fine if we have only one environment to work with; which is never the case. We always have Dev, QA, UAT and Production environments at a bare minimum. The limitation with exporting language translations is that we can only import the translations to the Organization from which we have exported it.

What this essentially means is that if we export the translation from Dev then we can only import them back to Dev, then the question arises How do we move these translated text from Dev to Production?. There is a very simple solution to it.
Continue reading

Invalid Action – The selected action was not valid

The other day while working on Dynamics CRM 2015 and one of the users came up to me saying everyone is getting a weird error trying to open CRM “Invalid Action – The selected action was not valid”.

Without wasting any further time, went ahead and opened the Front End Server and logged into the event viewer, which was logging the following error and the source was MSCRMKeyGenerator

CrmKey(Id:, ScaleGroupId:, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:05/27/2015 06:31:05,
ExpiresOn:06/29/2015 06:31:05, CreatedOn:05/27/2015 06:31:05, CreatedBy:NT AUTHORITY\NETWORK SERVICE
CrmKeySetting(Id:, KeyType:CrmWRPCTokenKey, KeyLength:128, KeyGenerationInterval:720, KeyTimeToLive:792,
CryptoTimeToLive:72, Algorithm:HMACSHA256, ArchiveLength:1, Enabled:True,

This error usually means that the Async service (maintenance) has not performed its task, mainly for two reasons

  • Service is not running
  • Service is not able to start due to login issues or any other issue

What’s the fix?

It is very simple, all you need to do is just check that the Microsoft Dynamics CRM Asynchronous Service (maintenance) is up and running. If it is stopped, go ahead and enable it.

  1. Go To Run and type services.msc
  2. Look for Microsoft Dynamics CRM Asynchronous Service (maintenance) and press the Start button or Right Click service name and select Start

If you still see this error then there is an additional thing you can try. Basically, renew the key manually and you should be fine. To do this, open Command Prompt

  1. Go to installation directory of Dynamics CRM, typically it would be %PROGRAMFILES%\Microsoft Dynamics CRM
  2. Navigate to the tools directory
  3. Run the command Microsoft.Crm.Tools.WRPCKeyRenewal.exe /R
  4. CRM should be good now.

COMException: The server is not operational

Recently there were a couple of network changes done at our client’s side which we weren’t aware of and ultimately it led to a downtime for CRM application. Users were not able to log-in to CRM and instead were getting an error which read as

CrmException: Failed to get priv user group information. k = 1b3b9610-36e3-e111-8aef-0050568b60d0 privUserGroupId: 47cbacdc-081f-4457-850f-bc66ef3a2137, localSystemAdGuid: 0005972b-bd43-4de4-8364-51f4b3ef27a8, Exception: System.Runtime.InteropServices.COMException: The server is not operational.

Upon researching a bit, it was clear that the issue was somehow related to Domain Controller which was not able to route any of the user requests thus none of users were able to get authenticated and get into the system. This is how we managed to fix it.
Continue reading

Backspace key does not work CRM 2011 UR17

We recently upgraded one of our Client’s organization to UR17. Everything seemed fine until our Development team noted that Backspace key does not work in CRM 2011 UR17.

This took us by a little surprise. On researching it a bit, it seemed we weren’t the only one to face this small but weird issue. So for all the guys who are scratching your head figuring out what’s wrong with your keyboard, don’t worry it’s not your hardware that is faulty, it’s the CRM.

Scope of the Issue

As far as we could test, this is only limited to Internet Explorer. If you access CRM from any other browser i.e. Firefox, Chrome, Safari etc.

So here’s how you can get it working again
Continue reading

Export Failure Rows creates blank Excel sheet CRM 2011

One of my team mate was trying to prepare and import the data for a client and ran into an weird issue.

The import was not successful and had a few failure rows. Now in CRM 2011 we have an option to “Export Failure Rows” which will actually go ahead and export the data of those rows that failed during the import.

To our surprise this feature didn’t export failure rows instead created blank Excel sheet in CRM 2011 which is of no use. So, if you are also running into such issues, no worries, here’s a quick dirty way out.
Continue reading

“An unexpected error occurred” while opening an Entity View in Dynamics CRM 2011

We had updated to Update Rollup 14 on one of our client organization earlier today and while regression testing came across a weird issue while opening up an Entity View in Dynamics CRM 2011.

An Unexpected Error occurred

I tried looking up in traces and run SQL profiler to try and grab the error but to no avail. Ultimately it turned out that the view had a few columns coming in from antoher entity.

Here is what I did to fix the view

  • Removed all the columns from the View except any one which is from the base entity.
  • Published customizations
  • Added all the columns again to the View
  • Published again

Viola, this just fixed the annoying pop-up that was coming up. Hope this will help a lot of troubleshooting time for many.

System.InvalidOperationException on Dynamics CRM 2011 Plugin & Workflow

Today, I was facing a strange error on one of the custom workflow activity. The workflow when run in production environment was going into waiting state whenever there was two or more simultaneous execution.

Looking at the Systemjobs, it showed the following error

System.InvalidOperationException: Microsoft Dynamics CRM has experienced an error.
Exception: You cannot create a SqlExecutionContext from another SqlExecutionContext on which OnBeginRequest has not been called

Continue reading

Debug Plugin in Dynamics CRM 2011

In earlier versions of CRM, in order to debug any Plug-in or Custom workflow activity it was mandatory to copy the DLL and PDB files to “%Microsoft Dynamics CRM%\server\bin\assembly” directory and then attach the source code to server’s worker process i.e. w3wp.exe

Dynamics CRM 2011 provides a better mechanism by which developers can achieve the above with just few clicks and without accessing the CRM server.

Here’s how
Continue reading