I'm having difficulties in creating / updating business rules. Every time I'm trying to create new Business Rules or Edit the Existing business rules. I'm getting an error without a error code. basically it's not letting me to look or create the business rules and sometimes even the processes(workflows) also.
I'm working on CRM 2016 on-premise (version-8.0.0.1088),I'm having a system Administrator's role. It's really tough to troubleshoot and find a solution for this issue has been struggling for a while with the issue.
I've imported an unmanaged solution recently. It's very annoying, spent a lot of time in researching but still no use, any help much appreciated!.
Error Log Details: (from Trace)
TargetInvocationException: Exception has been thrown by the target of an >invocation. ---> System.IO.FileNotFoundException: Could not load file or >assembly 'log4net, Version=1.2.15.0, Culture=neutral, >PublicKeyToken=669e0ddf0bb1aa2a' or one of its dependencies. The system cannot >find the file specified.
thanks to Federico Jousset who have promptly responded to my question. He has suggested me to enable the Trace log feature in CRM (on premise), which I wasn't aware of, and once done, it gave me reason why it was failing.
It looks like your custom dll deployed to dynamics crm is dependent on log4net, which is not found in server GAC/merged dll.
Related
In one of our CRM online environment, we have an asynchronous plugin which is deleting a NOTE(annotation) record by using the GUID of the notes.
This plugin is crashing due to the 2-minute timeout error which ideally should not be happened.
Can anybody share the possible reason behind this behavior?
Any help would much be appreciated.
This is a known limitation on plugins and custom workflow assemblies running in the sandbox environment.
ref: https://learn.microsoft.com/en-us/dynamics365/customer-engagement/developer/create-own-actions#watch-out-for-long-running-actions
As advised by the article above, use an external application to perform the action. Create a console application to delete the notes.
I have a logic question regarding the capabilities of automatically resolving Microsoft Dynamics 365 CRM (or similar platforms) cases. I utilize an Access database to create emails to send to customers with specific data, while copying my team email to keep track of communications in Microsoft CRM. This action creates a new case in my CRM, which I then need to "Work On" case, add my specific operational catalogs and affected contacts, then finish case as Resolved just to ensure tracking in the CRM system.
My team is currently testing out the capabilities of XML coding in the email which allows the CRM to automatically capture the case specifics described above, however they still need to go in and resolve each case at the end of the day.
After some research, I see that a workflow may be able to do this job of automatically Resolving cases. Is this a possible function for a workflow or plugin to do? Alternatively I have been told by my IT department that we need to have a robot built to complete this task, but I would like to keep this as efficient (and cost savvy) as possible. Any input or suggestions are greatly valued and appreciated.
Thank you!
There are two ways you can solve your problem.
If you want to close all the "CASES" by the day end you can schedule
a "System Workflow" that will execute daily at a specific time and
"Close/Resolve" all the open CASES in your system. Please find below
link on how to setup a "Schedule Workflow" in Dynamics CRM Create
Recursive or Scheduled Workflows in CRM
You can resolve specific cases on Dynamics CRM using C#. Please find below link on how to resolve case using C#.How to close cases in crm 2011 programmatically
Yes. Workflows can be used to close Case records in CRM
If you have the resources (staff) available to write CRM code, you can do it via Code (C#) as well
I have a plugin ex:which updates all its child records when that is updated.
This plugin is registered to execute in offline mode as well.
I have done this using ExecuteMultipleRequest. This is working fine when I am updating the parent record from CRM instance.
When I go offline and try to update the parent record its throwing business process error "executemultiplemaxbatchsize".
I checked the exception with Debugging it is as below.
System.NotImplementedException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #ABA895C7
Does ExecuteMultipleRequest work in Outlook offline mode?
As per MSDN link https://msdn.microsoft.com/en-in/library/microsoft.xrm.sdk.messages.executemultiplerequest.aspx
it says
This message works regardless whether the caller is connected to the server or offline.
Per the SDK documentation it should but I think that is typo in the documentation. You can open a ticket with Microsoft and they'll probably correct the documentation but not change the functionality.
The reason I believe it's a documentation is is that there is NO reason to use ExecuteMultipleRequest in a plugin. Since there is no SOAP overhead or latency - because the plugin is running on the server and does not use the Organization.svc endpoint - you don't gain any benefit from using ExecuteMultipleRequest in a plugin. ExecuteMultipleRequest is intended for use in client applications to improve performance, not for plugins and workflows.
I recently came across a situation where two of our users were not able to see the added resources in resource plan. Moreover they can add new resources but cant save them. All they see is an alert saying 'Project is no longer checked out to you'.It happens only for specific projects.
As the alert says it was checked out to someone else, I tried to force checkin the project/resource plan but it doesn't appear in the 'Force Checkin Enterprise Objects' itself.
I thought whether those users doesn't have enough privilege to do the operation, but they are part of Project Managers/Portfolio Mangers where they have full access to do this task.
Can someone provide some insights on what caused this issue to the users.
I see that the Resource plan was corrupted, and thats why users were not able to add/save it. I created a utility using PSI which deletes the Resource Plan for those projects.
I validated Project Schedule,Resource Utilization, capacity and none of them lost their value after deleting the resource plan. So the utility resolved the issue.
I am posting answer for my own question as it helps for someone else..
I'm trying to use CUDAfy.NET in a web application which will be further called from a web form.
When it tries to initiate a CudafyModule it gives the error as shown in pic below:
Code was working perfectly in console application.
Is there anyway to get rid of this problem?
It seems like your web application is unable to talk to the hardware. There is a great deal of abstraction and security in between the IIS and your .NET based assembly. It probably an issue of translation. Depends on how your web application is configured.
There can be several reasons for a process being unable to find the dll.
Try registering the dll in GAC. Or edit your web.config and add a reference to the dll's path
This might resolve the issue.