Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all 82002 articles
Browse latest View live

Error Plugin RetrieveMultiple after upgrade to 8.2 OnPremise

$
0
0

We have recently upgrade an old Dynamics CRM 8.1 version to 8.2 but we are getting the following error, for example, on a custom plugin executed on contact entity and on Pre-RetrieveMultiple Message: 

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.IO.DirectoryNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5B82D8A9Detail:

<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">

  <ActivityId>c9219836-a5b2-4b18-8778-2d9bcfab44a1</ActivityId>

  <ErrorCode>-2147220970</ErrorCode>

  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />

  <Message>System.IO.DirectoryNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5B82D8A9</Message>

  <Timestamp>2021-05-17T16:10:40.7616072Z</Timestamp>

  <ExceptionRetriable>true</ExceptionRetriable>

  <ExceptionSource>PluginExecution</ExceptionSource>

  <InnerFault i:nil="true" />

  <OriginalException>System.IO.DirectoryNotFoundException

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

   at Microsoft.Crm.Sandbox.SandboxAppDomain.LoadPluginAssembly(Guid pluginAssemblyId, Int32 pluginAssemblyHashCode, String assemblyName, Guid trackingId, Int32 depth, Boolean useDrawbridgeEnabled)

   at Microsoft.Crm.Sandbox.SandboxWorker.ValidateAndGetAppDomainHelper(SandboxCallInfo callInfo, SandboxExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, String pluginTypeName, SandboxTracker tracker, SandboxRequestCounter&amp; workerCounter)

   at Microsoft.Crm.Sandbox.SandboxWorker.Execute(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, SandboxRequestCounter&amp; workerCounter, Boolean returnTraceInfo)</OriginalException>

  <TraceText i:nil="true" />

</OrganizationServiceFault>

 

Server stack trace:

   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

 

Exception rethrown at [0]:

   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

   at Microsoft.Crm.Sandbox.ISandboxHost.ExecuteAndReturnTraceInfo(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, String assemblyContents, Boolean returnTraceInfo)

   at Microsoft.Crm.Sandbox.SandboxPlugin.Execute(SandboxClient client, SandboxCallTracker callTracker, IExecutionContext requestContext, String assemblyContents, Boolean returnTraceInfo)

   at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context)

It's seems that there is an error loading the assembly but I cannot figure out what do we need to change or configure to make it work again. 

Thanks in advance for you help ! 

Best Regards,


Flow - Approval Assigned to email address error

$
0
0

Hi,

I have an approval Flow issue where the assigned to email address will only work if I use the email address provided when I setup my 365 user account: username@xxxxx.onmicrosoft.com

I have changed my user primary email address to be my business email address and the email account has been activated and approved which checks out fine. However, it will still fail if I set my business email address as the assigned to email address within the Flow approval step. Does anyone have any ideas as to why this is happening?

Portals: How to remove border lines in Entitylists and -forms

$
0
0

Hi all, 

could anyone help, i would like to hide the border lines in entity forms and lists. I was not able to find in .css file.

 

BR, Miss CRM

How to get user role and team mapping in a Online Report

$
0
0

Hi Folks , 

I need to create a  online report which should  user name , email id , and security role , and Team name.

As per my understanding I need to create a view to fetch these values and then i can use this in my view .

So to pull User Name , email id i can fetch from User Entity 

Now how  to pull Security Role and Team  and link it with User Entity .

Is it possible to get like this , 

UserName    Emailid                          Security Role                                        Team 

Peter              p@gmail.com               Manager, Customizer, Admin                HR , Suppply

Manry             m@gmail.com               Processor                                              Finance

or suggest any good way . I dont want much complex , is it possible to get it done by online editor  without using visual studio Report designer.

Thanks

Solution Checker web-use-strict-mode and TypeScript

$
0
0

Hi All,

We developed a ribbon utility function in TypeScript, set "strict" "compilerOption" to "true", and here are the first three line of generated JavaScript which are loaded into D365,

"use strict";
/*
 * Copyright (c)

Solution checker flags the first line of our generated code with a "Medium" severity "web-use-strict-mode" issue..

Does anyone know if this issue is a problem with our code or with Solution Checker??

If with our code, then does anyone know how to resolve the issue?

Thanks for your time and any help

Jason Hammerle

WebAPI - How to insert "agent name" while creating a phonecall timeline record?

$
0
0

Hi,

I am working on an integration project wherein I am trying to create a phonecall record on behalf of an agent in dynamics CRM through WebAPI. To insert the agent name in the record which entity/activity/table should be used? I am using the accounts entity to create a record as below

/api/data/v9.0/accounts?$select=name,telephone1,address1_composite,description.
Please refer the attached screenshot.
Your response is much appreciated.
Thanks,
Avi

Not able to hide Check Access button on some of the forms while it should be enable for rest set of forms with in the environemnt..

$
0
0

Hi All,

There is a requirement to Hide the "Check Access" Button on few set of forms like Case but should be enable for another set of forms for example Account,Account, contact .

I found a solution but by implementing that the button got hidden from all the entities forms which i don't want.

Can anyone please  let me know the solution.

Thanks in advance!

Regards,

Richa

RDL reporting expression for multiple Boolean

$
0
0

Hello ,

I want expression for below scenario in RDL(SSRS) reporting Expressions.

Columns Australia, Austria, Brazil, Canada and China are Boolean

I want to show "Australia, China" when both columns are true

Current the formula as below:

=Left(
  IIf(Fields!crms_australia.Value,"Australia, ", "") &
  IIf(Fields!crms_austria.Value,"Austria, ", "") &
  IIf(Fields!crms_brazil.Value,"Brazil, ", "") &
  IIf(Fields!crms_canada.Value,"Canada, ", "") &
  IIf(Fields!crms_china.Value,"China, ", ""),
  Len(
    IIf(Fields!crms_australia.Value,"Australia, ", "") &
    IIf(Fields!crms_austria.Value,"Austria, ", "") &
    IIf(Fields!crms_brazil.Value,"Brazil, ", "") &
    IIf(Fields!crms_canada.Value,"Canada, ", "") &
    IIf(Fields!crms_china.Value,"China, ", "")) - 2)
I used left function to get trim last 2 character ", " and if scope is repeated twice for the text and getting the length.

Would I know is that any better idea to get the countries from field?


Margin Calculation in Opportunities

$
0
0

I am trying to get a % margin calculation on each opportunity line item.

I have added a new field in the opportunity line entity as a calculated field but can't figure out how to pull in the current cost from the products list in order to do the calculation. 

Is there a way of doing without custom code?

SLA not working

$
0
0

Greetings

SLA is not working as expected(No action on failure and No action on Warning)

The action was to send emails when there is failure or warning, the SLA has been configured as default.

Impersonation of user

$
0
0

Hello,

We are using Sharepoint to communicate with our CRM (on-prem v.8) via an API that's hosted on IIS (through AD).

Said API is connecting to CRM via a static admin user -  

    <add name="CRM" connectionString="Url=ourUrl.com; Domain=ourDomain; Username=Admin; Password=****; authtype=AD" />

Our issue is that whenever a user uploads a file in Sharepoint and sends it to CRM (the file is stored under Annotation entity in CRM) the Note that's created contains the Admin user instead of the actual user who created the note.

Now, I assume this is caused because of the connectionString's static Admin user, but is there any way to impersonate the sender and override the CreatedBy field in Annotation entity to display the actual user?

and if not, is there any other way of solving this issue without needing to create a custom entity?

P.S. I read there is a way to set the CreatedOnBehalfBy field via impersonation but that field is not displayed when a note is created and we'd like the username to be shown

Dynamics 365 on premise First request take longer time

$
0
0

Hello Guys , 

I've been two days struggling to know the reason but with no luck 

I have dynamics 365 on premise and we have some customizations on case form and workflows and plugins on create 

When I open new fresh session the request creation took almost 8 seconds , however after save first request and try to submit a new request again it took almost 2 seconds 

I need to understand what's the caching behavior on server side that make first request took all this time compared to the upcoming requests  coz this is misleading to decide performance is good or not

Thank you,

It seems that formContext.data.entity.save(saveOption) is no longer synchroneous

$
0
0

Despite the description here:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-data-entity/save

it seems that the formContext.data.entity.save() method is no longer synchroneous:

I do realize that this method is deprecated in favor of formContext.data.save() but just changing it to async is quite troublesome to some code that has not been revised to comply with this change yet.

Can anyone tell me if this is a bug or if it has been announced anywhere?

Error UNABLE DOMAIN LOGON NAME

$
0
0

Hello,

We have an issue in CRM, when user tries to execute any actions, this message happens "UNABLE DOMAIN LOGON NAME" and there is no possible to works in any CRM section.

In order to solve, we change value for "AutoGroupManagement" value set to 1 (false) in the registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM) and restart CRM services from IIS.

But we don't know because it happens.

Do you have any idea what may be the reason for this error?

Thanks and best regards,

Mónica.

timeout filtering contacts in a marketing list

$
0
0

Hi,

when filtering contacts in a marketing list we get an execution timeout.
Does anyone have a solution.

Version: MS DYnaimcs 365 Version1612 (9.028.1) LOCAL

OrganizationServiceFault System.Data.DataException: Das Ausführungstimeout ist abgelaufen. Der Timeoutzeitraum wurde überschritten, bevor der Vorgang beendet wurde, oder der Server antwortet nicht.
The statement has been terminated. ---> System.Data.SqlClient.SqlException: Das Ausführungstimeout ist abgelaufen. Der Timeoutzeitraum wurde überschritten, bevor der Vorgang beendet wurde, oder der Server antwortet nicht.
The statement has been terminated. ---> System.ComponentModel.Win32Exception: Der Wartevorgang wurde abgebrochen
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
bei System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
bei System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
bei System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
bei System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
bei System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
bei System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
bei System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
bei Microsoft.Crm.CrmDbConnection.InternalExecuteWithRetry[TResult](Func`1 ExecuteMethod, IDbCommand command)
bei Microsoft.Crm.CrmDbConnection.<>c__DisplayClass107_0.<InternalExecuteNonQuery>b__0()
bei Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func)
bei Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
bei Microsoft.Crm.ObjectModel.CommandExecution.StoredProcedureExecutionService.ExecuteNonQuery(CommandInfo storedProcInfo)
--- Ende der internen Ausnahmestapelüberwachung ---
bei Microsoft.Crm.ObjectModel.CommandExecution.StoredProcedureExecutionService.ExecuteNonQuery(CommandInfo storedProcInfo)
bei Microsoft.Dynamics.Marketing.Plugins.ListFetchService.ExecAddMembersProcV2(Guid listId, String memberLogicalName, IEnumerable`1 listMemberIds, IMarketingPluginContext`1 context)
bei Microsoft.Dynamics.Marketing.Plugins.ListFetchService.ExecAddMembersProc(Guid listId, String memberLogicalName, IEnumerable`1 listMemberIds, IMarketingPluginContext`1 context)
bei Microsoft.Dynamics.Marketing.Plugins.ListFetchService.AddListMembersUsingSproc(Guid listId, String memberLogicalName, List`1 listMemberIds, IMarketingPluginContext`1 context)
bei Microsoft.Dynamics.Marketing.Plugins.ListFetchService.AddListMembers(Guid listId, Guid[] memberIds, IMarketingPluginContext`1 context)
bei Microsoft.Dynamics.Marketing.Plugins.ListFetchService.InternalAddMembersByFetchXml(MarketingList list, String fetchXml, IMarketingPluginContext`1 context)
bei Microsoft.Dynamics.Marketing.Plugins.ListFetchService.AddMembersByFetchXml(MarketingList listEntity, String fetchXml, IMarketingPluginContext`1 context)
bei Microsoft.Dynamics.Marketing.Plugins.AddMembersByFetchXml.ExecuteCrmPlugin(IMarketingPluginContext`1 localContext)
bei Microsoft.Dynamics.Marketing.Plugins.MarketingPluginBase.Execute(IServiceProvider serviceProvider)

Send email notification with record details same as the audit summary view

$
0
0

Hello All, 

I'm Using CRM 365 2016 on premise, I have requirement that when a user update or delete a record in the custom entity  the system automatically send email to the manager with the details as mentioned in the audit summary view EX:

The record (number) has been updated: (field name )from (old value) to (new value).

something like this.

How this could be done since ,I have tried to create a workflow send email step we can mention record number but we can't mention the old value and the new value.

Any ideas ,thanks in adv.

Maen.M

Which add-on can be used to send large number of workflow emails from CRM?

$
0
0

Hi everyone!

My organisation is using D365 CRM Customer Engagement for On-Prem version. We have a use where we need send 20,000 emails per day based on an action completed by customer via portal. This is not bulk email and is more like order based emails. Can someone suggest which tool we should use for such scenario, I have looking at Mailchimp & Click dimensions and it only talks about bulk emails, can some one confirmed if these tools can be used for individual workflow emails.

Thanks,

Sapna

Dynamics 365 CE - Sending bulk Emails from CRM using Server side synch with Exchange Online

$
0
0

Hi,
We have an on-prem implementation where multiple emails get generated based on Application registrations using crm workflows and are sent out using a noreply Exchange Online Mailbox. In the past few days there were 30000+ applications generated and corresponding emails were being sent out at 10000 emails per 24 hour limit with loads others being stuck in Pending Send.

I would like to ask if there a way to increase this limit or an app that can be used for this scenario.

Dynamics 365 CE - Sending bulk Emails from CRM using Server side synch with Exchange Online

$
0
0

Hi,
We have an on-prem implementation where multiple emails get generated based on Application registrations using crm workflows and are sent out using a noreply Exchange Online Mailbox. In the past few days there were 30000+ applications generated and corresponding emails were being sent out at 10000 emails per 24 hour limit with loads others being stuck in Pending Send.

I would like to ask if there a way to increase this limit or an app that can be used for this scenario.

Dynamics 365 fields value Sum in word template

$
0
0

Hi Friends,

I downloaded a Word template from Dynamics 365. I want to find out the total sum ​​of the two fields in the last column. The table is repetitive.

 

Please suggest to me how to do Sum of repetative values.

Kindly help on this issue.

Viewing all 82002 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>