Quantcast
Channel: CRM Development forum
Viewing all 8223 articles
Browse latest View live

Plugin error - Assembly must be registered in isolation

$
0
0

Hi

I was attempting to import a solution from our CRM 2011 DEV environment to our CRM 2011 UAT environment and I kept receiving the error message 'Assembly must be registered in isolation'. I confirmed that the account that I was using to import the solution was a deployment administrator.

I resolved the issue by changing the isolation mode from 'None' to "Sandbox' in DEV. The solution then imported successfully into our UAT environment. AFter successfully importing the solution into UAT, I notcided that none of the plugins were functioning as expected in DEV & UAT.

I changed the isolation mode back from 'Sandbox' to 'None' in DEV and the plugins are now functioning correctly in DEV. I have tried numerous times to change the isolation mode in UAT without success.

I used the plugin registration tool, Visual Studio and also attempted to reimport the solution and each time I receive the error message 'Assembly must be registered in isolation'. Any suggestions would be greatly appreciated. As I mentioned, I confirmed that the account that I am using to access the environment is a deployment administrator.

Thanks


deleting custom button on ribbon problem

$
0
0

Hello,

I am trying to delete a custom button created by ribbonworkbench. I have an issue every time when i make change and try to publish. i receive an error.

How can i do that?

Thanks by advance

Regards

How to refresh grid color dynamics crm 2015

$
0
0

Hi,

With ribbonworkbench i customized button to colorize cases(incident) grid, in jquery. So when i display the cases first time they didn't have color. I click on ribbon button then the colors appear. but when i change view or filter the same view, i must all time click on the button to have colors.

Now i need to keep this colors even i filter cases view or make F5 to refresh .

Thanks

Regards

Locking mechanism for auto-numbering functionality for Microsoft Dynamics CRM

$
0
0

Hello,

I have implemented auto-numbering functionality for Microsoft Dynamics CRM and I am trying to add the locking mechanism to it. I am using c# plugin on create of an entity to assign the auto-number to the entity, based on a custom configuration entity record for the entity. Is there any way to add locking mechanism for auto-numbering functionality?


Silverlight Grid Error CRM 2013 online -Cannot perform runtime binding on a null reference

$
0
0

Hi,

Our customer has got an online trial instance for CRM 2013 set up. we had built a Silverlight Grid for revenue forecasting purpose on opportunity entity form last year, which was working fine in CRM 2011 but since 2013 they are experiencing following error on opportunity form load:

CrmScriptErrorReport>
  <ReportVersion>1.0</ReportVersion>
  <ScriptErrorDetails>
   <Message>Unhandled Error in Silverlight Application Cannot perform runtime binding on a null reference   at CallSite.Target(Closure , CallSite , Object )

Upon debugging I found the code is failing when initially trying to retrieve CRM field values(_StartDate) using Dynamic object because for some bizarre reason dynamicPage object appears null. Same code is working perfectly for last 1 year in customer's production environment ( CRM 2011 online ).

 ScriptObject xrm = (ScriptObject)HtmlPage.Window.GetProperty("Xrm");
            ScriptObject page = (ScriptObject)xrm.GetProperty("Page");
            dynamic dynamicPage = page;

            dynamic _startDate = dynamicPage.data.entity.attributes.get(ServerUtility.GetStartDateFieldName()).getValue();

If I clear the browser cache I get rid of error but then we loose any changed data on form. We are using IE 10. we have also tried the same on IE 8 but same problem happens.

Interestingly when I put alert before retrieving CRM field value, the problem of dynamicPage being  null disappears but then the annoying thing is user has to click ok every time form loads/refreshes.

we have also raised with issue with Microsoft and they have assigned an escalation Engineer but so far no luck!

Any ideas please?

Thanks

Umer

Activities shown as Completed by some other crm admin user on Social Panel

$
0
0

Activities shown as Completed by some other crm admin user on Social Panel as in below screenshot.

And this thing happened on several Accounts on the same day.

Can anyone let me know why this happened ?


If this post answers your question, please click &quot;Mark As Answer&quot; on the post and &quot;Mark as Helpful&quot;

Can't See the solutions fo the crm server in my crm explorer

$
0
0

Hello every one

I'm .net developer and i have a Dynamics CRM 2011 on premise version. When i Tried to create a visual studio 2010 crm solution with the sdk toolkit and i'm filling the crm server connection dialog, when i choose the Organization name, the drop down list of solutions stay blocked and i canot choose the solution wich i want to connect.

What i have to do to choose the solutions in the dropdown list?

My onpremise version is rollout 5.

 

Thanks a lot

 

 


I'm Addict to Knowledge

Unable to debug the workflow activity using plugin workflow profiler

$
0
0

Hi,

I don't have access to CRM dev server so want to debug the workflow using workflow profiler.

I am using CRM 2013 SDK 6.1.0.519 and SDK 6.1.1.1143 plugin registration tool version and getting below error. I could manage to debug the logic by developing a console application.

Please suggest if there is any workaround to debug the workflow using plugin profiler. 

Error popup -Unable to enable or update the profiling configutaion due to an error.

Error Details - 

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at PluginProfiler.Library.WorkflowXamlUtility.InstrumentStep(XmlNode activityNode, XmlNamespaceManager ns, InstrumentedStepConfiguration step, String workflowAssemblyName)
   at PluginProfiler.Library.WorkflowXamlUtility.InstrumentXaml(IOrganizationService service, String xaml, IList`1 steps)
   at PluginProfiler.Library.ProfilerManagementUtility.EnableWorkflow(IOrganizationService service, String overrideKeyFileName, Guid workflowId, Boolean persistToEntity, String persistenceSessionKey, Boolean includeSecureInformation, Boolean isContextReplay, CustomActivityStep[] workflowSteps)
   at Microsoft.Crm.Tools.PluginRegistration.ProfilerSettingsViewModel.btnOk_Click()


Audit report on Opportunity entity

$
0
0

Hi All,

I"m using MSCRM 2015(online), how can i create a SSRS report on opportunity audit with fetchXML query, can anyone please help or guide me on this.

Thanks,

Shiva.

How to update option set values in Cancelled state through plugin

$
0
0

Hi All,

In service activity entity cancelled state i added 2 option set values A, B. I created one option set on the form Test type, values are A,B.

when i am clicking cancelled button on ribbon bar window is displayed completed , cancelled like.. i am selecting cancelled state option value  A,  same value will update on form Test type option value A.

i tried plugin SetState and SetStateDynamicEntity messages. it's not working

Please Help me any one. 


Request not supported: RemoveMember/AddMember/SetStateDynamicEntity

$
0
0

I was analyzing the trace logs from production server for my MS CRM 2011 deployment with UR18 and observed that there are multiple entries for the below exceptions -

Message: Request not supported: RemoveMember, ErrorCode: -2147220715

Message: Request not supported: AddMember, ErrorCode: -2147220715

Message: Request not supported: SetStateDynamicEntity, ErrorCode: -2147220715

The trace log for AddMember is something like below.

I did not get any clue from this log. I even searched for the supported messages for MS CRM 2011 which shows that these messages are supported.

Did anybody face such issue or have any clue around this? All inputs are appreciated. :)

at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)  ilOffset = 0x0
 at CrmException..ctor(String message, Exception innerException, Int32 errorCode)  ilOffset = 0x0
 at SdkMessageRequestCacheLoader.LoadCacheData(SdkMessageRequestKey key, ExecutionContext context)  ilOffset = 0x145
 at ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)  ilOffset = 0x25
 at CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)  ilOffset = 0x97
 at PipelineExecutionContext.GetRequestDescription(String requestName, IOrganizationContext context)  ilOffset = 0x0
 at PipelineExecutionContext.ExtractExtensionParameters(String requestName, IOrganizationContext organizationContext, Boolean overrideInputParameters, ParameterCollection optionalParameters, ParameterCollection inputParameters)  ilOffset = 0x86
 at LegacyContextConverters.ConvertParameterCollectionToPropertyBag(ICrmConversionContext conversionContext, IExecutionContext context, ParameterCollection parameterCollection, ParameterCollection extensionParameters)  ilOffset = 0x32
 at LegacyAsyncExecutionContextBase.get_OutputParameters()  ilOffset = 0x4D
 at EntityHandler.processData(IPluginExecutionContext context)  ilOffset = 0xBF2
 at EntityHandler.Execute(IPluginExecutionContext context)  ilOffset = 0xF
 at V4ProxyPlugin.Execute(IServiceProvider serviceProvider)  ilOffset = 0xC
 at EventOperation.InvokePlugin(AsyncExecutionContext context, IPlugin pluginInstance)  ilOffset = 0xF
 at EventOperation.InternalExecute(AsyncEvent asyncEvent)  ilOffset = 0x155
 at AsyncOperationCommand.Execute(AsyncEvent asyncEvent)  ilOffset = 0x4E
 at AsyncHostHandler.Handle(AsyncEvent asyncEvent)  ilOffset = 0x57
 at PoolHandler.ProcessAsyncEvent(IGenericEventData eventData)  ilOffset = 0x139
 at <>c__DisplayClass4.<.ctor>b__2(IServiceOperation operation)  ilOffset = 0x0
 at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter)  ilOffset = 0x18
 at MonitoredOperation.Execute()  ilOffset = 0xD
 at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state)  ilOffset = 0xC
 at ExecutionContext.runTryCode(Object userData)  ilOffset = 0x18
 at RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)  ilOffset = 0xFFFFFFFF
 at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)  ilOffset = 0x86
 at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x23
 at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0x81
 at _ThreadPoolWaitCallback.PerformWaitCallback()  ilOffset = 0x51
Crm Exception: Message: Request not supported: AddMember, ErrorCode: -2147220715


How to compare two Date fields in CRM Workflows

$
0
0

Hi,

I want to compare two date fields (Only date) in CRM OOB workflow. Is it possible?

If not how to achieve this in custom workflow activity?

I want to compare two date fields and return true/false.

If anybody have sample code for this scenario it will be really great.

 


Yadav

CRM 2016 load failure

$
0
0

Hi Everyone,

I am trying to investigate a strange error occurring on CRM 2016 on-premise. Sometimes the site crashes unexpectedly. Well it happens with applications, so this is not my main problem. The problem is that after I am trying to refresh the page, it fails to load again. Only a blue stripe is visible on top which is supposed to be the menu, and everything else is blank. Furthermore, the same thing happens for all organizations on the same server. I receive the following script errors on the console:

InvalidCharacterError

File: global.ashx, Line: 28086, Column: 601517

Unable to get property 'getServiceDirectory' of undefined or null reference

File: global.ashx, Line: 27304, Column: 5

Currently the only working solution to recover is to restart the computer, but I would like to find out what exactly goes wrong. Any ideas?

The server is upgraded from a 2011 instance, I am not sure if it has anything to do with the issue.

Regards,

Adam

OAUTH instructions are out of date, don't work with ADAL 3.x

$
0
0

Microsoft's instructions for authenticating with OAUTH don't work with the current version of ADAL (v.3.13.4)

https://msdn.microsoft.com/en-us/library/gg327838.aspx

The instructions say to use AuthenticationContext.AcquireToken(), but this method does not exist in ADAL any more. Instead there are flavors of AcquireTokenAsync[...](), none of which take the same arguments shown in the example.

Where can we find updated documentation on how to authenticate with ADAL?

I've gotten no replies on the "CRM" forum, so I'm moving the question here.


How to upload custom web hosted application to microsoft dynamic crm online ?

$
0
0

Respected,

I want see custom softphone in microsoft crm online which was i made and that softphone should integrate with cti system.

Example:

In salesforce , there is a options for softphone for call center solution......

so can we have similar kind of options or solutions for that....

Give your favourable reply...


Customizing the Cancel case button on CRM 2016 online

$
0
0

Hi,

I am currently working on a requirement related to cases - when the user clicks on the cancel case button on a case, I need to make some fields mandatory on the form and prompt the user to fill them.And once the user populates these mandatory fields and again click on cancel case button, the default case confirmation dialogs should appear. This is not happening with the script i use - mentioned below - i get the first confirmation dialog but when I click on 'Confirm', the window just freezes.  

Please let me know what could have gone wrong.

Code is as below -  i call the default function to cancel a case - Mscrm.CommandBarActions.cancel()

CancelCase = function () {

    if (Xrm.Page.getAttribute(fieldname).getValue() == null) {
        alert('You must provide a value for the field.');
         Xrm.Page.getControl(fieldname).setVisible(true);
         Xrm.Page.getAttribute('fieldname).setRequiredLevel('required');
  }
else {
debugger;
Mscrm.CommandBarActions.cancel();

}

Thanks for all your help in advance.

Regards,

Anwesha

CRM 2016 Data Import - Limitations ?

$
0
0
Hi All,
We have a requirement to Import bulk data(more than 1 million) in CRM 2016, Need clarifications on the 

below mentioned questions

1) WHAT ARE THE LIMITATIONS(SIZE(other than 32MB file) /NUMBER OF RECORDS) for DATA IMPORT IN CRM 2016?

2) We have created a custom Application to import data in CRM from Excel sheet. How long it will take to 

import 1 Million records in CRM 2016. (Note:1 Million Records with 50 fields(Columns)) ?

3) Is it possible to import 1 Million records (Excel to CRM) in CRM 2016 using CRM OOB data import 

wizaard funtionality ?

4)  Is there any limitation for Data import using custom application (Dot net application)?

How to update ribbon diff xml multiple times using code

$
0
0

Hello Team, 

I have to add a button to ribbon using code. As of now only way what I can think of is export a solution & change the customization file with updated ribbon diff & import it back to the CRM or by using database (I don't want to use this option at all). What I want to know is there any blog or link in msdn which tells about the steps. 

How about using power shell would that be a viable solution because, here I want to update the ribbon diff xml file not replace it. 

Thanks in advance.


CRM 2015: Creating custom code based on sub grid selection

$
0
0

Hello,

I am trying to develop custom code based off of a sub grid selection.

Within Accounts, I have a sub grid to Opportunities. What I would like to do is launch a report based on a custom entity that I have selected within the subgrid, possibly triggered from a button on the ribbon. Within 2011 this was possible, but from within 2015 I am having troubles. Can anyone provide any assistance on this? Thank you.


Mike Karls

How to select data from an external DB to create a new record in CRM

$
0
0

This is for on-premise CRM 2011

We have an external SQL DB that contains contact information for companies. Our CRM gets a feed from this system but it is at least a day behind.

We would like to have the ability when a user is on the account form to click a ribbon button. That button should open a page that has queried an external DB based on the account the user was on to show a full list of contacts for that company. The user can then select the one desired and associate it to that account record - also creating on the fly a new contact record if it does not exist already.

What would be the best supported way of doing something like this?

Regards


Rob

Viewing all 8223 articles
Browse latest View live