Category Archives: Plugins

Exception: lookupvalue

An attribute in the execute request is of type EntityReference and its entity logical name is incorrect.

Posted in Error, Plugins, Uncategorized | Tagged , , | Leave a comment

Retrieve the text label for an OptionSet value

Here is the implementation I use for a method to get back the text/caption of an OptionSet item. private  string GetOptionsSetTextOnValue(IOrganizationService service, string entityName, string attributeName, intselectedValue) { RetrieveAttributeRequest retrieveAttributeRequest = new  RetrieveAttributeRequest { EntityLogicalName = entityName, LogicalName = attributeName, … Continue reading

Posted in CRM SDK, Helpers, Plugins, Uncategorized | Tagged , | Leave a comment

Error 102 Error registering plugins and/or workflows. Assembly bin\Debug\MyPlugin.dll could not be found.

This error Error 102 Error registering plugins and/or workflows. Assembly bin\Debug\MyPlugin.dll could not be found. could possibly be caused for many reasons. For me it has been always one of the following: 1. As I use the CRM Developer Toolkit, and sometimes … Continue reading

Posted in Error, Plugins, Uncategorized | Tagged , , , | Leave a comment

TypeLoadException

Symptoms When a plugin is triggered, a TypeLoadException error occurrs and it mentions that the plugin cannot load anything from other assemblies in GAC. OR if you click to open more details about the error you find: <Message>Could not load type ‘<classname>‘ … Continue reading

Posted in Error, Plugins, Uncategorized | Tagged | Leave a comment