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

Dynamics CRM 2013 Step by Step Part 4: Installing CRM 2013 Server

Welcome again to yet another part in the series “Dynamics CRM 2013 Step by Step Part 4: Installing CRM 2013 Server”. In this post we will primarily be focussing on setting up the Microsoft Dynamics CRM 2013 Server.

Before moving forward, as usual I would assume that you have already walked through the previous parts in the series and have Windows Server 2012, SQL Server 2012 and the Active Directory configured. If not then go ahead and take a look at the previous posts in this series from the box above. Let’s begin.
Continue reading

Dynamics CRM 2013 Step by Step Part 3: Installing SQL Server 2012

Alright, so now we are done with installation of Windows Server 2012 and configured the Active Directory; it’s now time to install the SQL Server 2012 on the VM.

If you are reading this post for the first time and are not ready with the Server setup, I would recommend you to take a look at the previous posts in the series (Navigate to other posts from the box above).
Continue reading

Dynamics CRM 2013 Step by Step Part 1: Windows Server 2012 Installation

Welcome to the Part 1 of the Series “Dynamics CRM 2013 Step by Step”. This series will focus on setting up a running CRM 2013 environment in the least possible steps and efforts. I have tried to cover all the aspects of the installation process but in case you feel I have missed some important information then do let me know in the comments below and I’ll update this post as required.
Continue reading