2 is not a valid state code on product with Id – Error while trying to create a new Product record in CRM 2015 Upgraded Environment


Hi

Recently we upgraded one of our CRM 2013 Online to CRM 2015 Online Update 1. The approach was installing the solution from our dev to new CRM 2015 environment.

After the update when trying to create a new product we were getting the following error message

“2 is not a valid state code on product with Id 0977da8e-3368-e511-80fc-3863bb359f30”

We raised the support ticket and the resolution was to add the following line of code to the customization.xml file. It seemed that few of the State Code and Status Code were gone missing for the product entity.

Adding them back resolved the issue.

Hope it helps..

No plugins have been selected from the list. Please select at least one and try again error while trying to register Custom Workflow Activity in CRM 2013 Online.


Hi,

Update – Check if the class used for defining Plugin / Workflow Activitiy is PUBLIC

Was getting below error while trying to register Custom Workflow Activity in CRM 2013 Online.

The solution we found out was to use CRM 2015’s Plugin Registration Tool to register it.

Hope it helps.

Advertisements

The operation could not be completed because you do not have read access on some of the fields in {0} record error in CRM 2013\2015


Hi,

While trying to add a new quote record to an opportunity record, we were getting the below error

The issue turned out that the user was not having read access to one of the fields in the opportunity record configured through Field Level Security.

Hope it helps..

Fixed: Action not appearing in available Message in Plugin Registration tool CRM 2013\ CRM 2015


Hi,

We created a new Action and wanted to trigger a plugin on call of the Action.

However that Action was not appearing in available messages while registering step for Plugin.

Finally got to know that in case of Online need to restart the plugin registration tool for that action to appear in message.

 

Simple Refresh or Reloading of the organization will not work.

Hope it helps..

Calculate Date Difference in CRM 2015.


Calculated fields in CRM 2015 (after Update 1) includes functions to calculate difference between date time fields.

Now we can define the Duration (custom calculated) field in the following manner

Hope it helps..

How to – Use Xrm.Internal.openDialog as an alternate to showModalDialog in CRM


New version of Chrome doesn’t showModalDialog method.

g

As an alternate we can use Xrm.Internal.openDialog method

  • And in the HTML Web Resource page

We need to refer ClientGlobalContext.js.aspx

To return value to the parent window and close the current window

Helpful links

https://debajitcrm.wordpress.com/2014/04/29/exploring-the-xrm-internal-namespace-in-crm-2013/

https://dynamicsofdynamicscrm.wordpress.com/2014/04/28/call-crm-2013-modal-window-for-webresources/

https://mscrmmindfire.wordpress.com/2014/04/23/open-dialog-box-like-crm-2013/

MOST IMP – It is unsupported

Hope it helps!!

Advertisements