Quantcast
Viewing all 79901 articles
Browse latest View live

How can I minimize the MSCRM audit log database size?

Hi,

I am deleting my audit change history logs with class 'DeleteRecordChangeHistoryRequest' using SDK for events (create, update or delete). But after deleting it again generates a new log with event type 'Audit log Deletion' for my deleted records and keeps the audit records count same.

For example: if I delete 3 records, thereafter 3 records again generates with event 'Audit log Deletetion'. if this happens then how can I minimize the audit log database size?

Is there any way to minimize the audit data size on a daily basis? (Except for Audit partition concept because MSCRM allows deleting audit partition on after every fourth month until the partition end date pass.)


Setting unresolved email as recipient via JavaScript

Hi,

I would like to populate the "To" field of an email entity via JavaScript. In detail I want to populate the field with a simple email-address as string (e.g. "somebody@provider.com") an not with an activity party (lookup). As far as I know there's only one workaround to do this: http://mscrmbi.blogspot.com/2014/03/set-unresolved-email-ids-in-party-list.html

I tried it, but it does not really work - it leads to some ugly side effects. For example an error message will be thrown if try to send the email afterwards ("Cannot update parties unless email is in draft status").

I would like to know, is there another way to populate the "To" field with an email-address via JavaScript?

With best regards,

Michael

Queue does not retrieve email messages from Exchange, Async error

Related to that problem there is now the issue with another queue. I followed the whole problem to the async log files. It is telling something that a mailbox is not active?
[2019-01-04 12:26:44.254] Process:CrmAsyncService |Organization:e1f18b90-ecb3-e211-b55e-000c29329206 |Thread:    7 |Category: EmailConnector |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: 6e3f4111-b852-e811-9662-00155d0f380f | EmailConnectorTraceHandler.EmailConnectorTraceFormat  ilOffset = 0x163
	at EmailConnectorTraceHandler.EmailConnectorTraceFormat(Guid orgId, Object mailbox, Guid asyncEventId, TraceCategory traceCategory, TraceLevel traceLevel, String data)  ilOffset = 0x163
	at EmailConnectorTraceHandler.EmailConnectorTraceFormat(Guid orgId, Object mailbox, Guid asyncEventId, TraceCategory traceCategory, TraceLevel traceLevel, String format, Object[] args)  ilOffset = 0x19
	at MailboxDataAccess.IsInactiveMailbox(Entity mailbox, Boolean isMaxPostponeTime, Boolean isOutgoingMailbox)  ilOffset = 0x1D
	at MailboxDataAccess.UpdateOutgoingMailbox(Mailbox mailbox, IAsyncEvent asyncEvent)  ilOffset = 0x0
	at OutgoingEmailProviderBase.UpdateMailboxes()  ilOffset = 0x42
	at OutgoingEmailProviderBase.Acknowledge()  ilOffset = 0xD
	at OutgoingActivityProviderBase`1.Run()  ilOffset = 0x5D
	at OutgoingActivityOperation.InternalExecute(ActivityAsyncEvent asyncEvent)  ilOffset = 0xE4
	at AsyncCallbackHandler`2.ResumeExecution(IAsyncEvent asyncEvent)  ilOffset = 0x5B
	at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory)  ilOffset = 0x63
	at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager)  ilOffset = 0x22A
	at AsyncEventOperation.<.ctor>b__2(IServiceOperation operation)  ilOffset = 0x0
	at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter)  ilOffset = 0x18
	at IsolatedOperation.Execute()  ilOffset = 0x27
	at MonitoredOperation.Execute()  ilOffset = 0xD
	at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state)  ilOffset = 0x16
	at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x79
	at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x9
	at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x35
	at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0xA4
>Mailbox checking active status process encounter null value: Exception: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
>   at System.ThrowHelper.ThrowKeyNotFoundException()
>   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
>   at Microsoft.Xrm.Sdk.AttributeCollection.get_Item(String attributeName)
>   at Microsoft.Crm.Asynchronous.EmailConnector.MailboxDataAccess.IsInactiveMailbox(Entity mailbox, Boolean isMaxPostponeTime, Boolean isOutgoingMailbox)
>.

SSRS report Parameter

Hello

I Have added a fetch xml for SSRS report.

I have added enableprefiltering="1" so that i have a parameter

I have added another parameter in new Data set 

I want to pass value enableprefiltering parameter to another parameter

DATASET1

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="salesorder" enableprefiltering ="1">
<attribute name="name" />
<attribute name="new_bookedpovalue" />
<attribute name="new_poamount" />
</link-entity>
</entity>
</fetch>

DATASET 2

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
<entity name="quote">
<attribute name="name" />
<attribute name="statecode" />
<attribute name="quoteid" />
<order attribute="name" descending="false" />
<link-entity name="account" from="accountid" to="customerid" visible="false" link-type="outer" alias="a_d6057f7d5c81e811a963000d3af04fb0">
<attribute name="new_customercode" />
</link-entity>
<link-entity name="salesorder" from="quoteid" to="quoteid" link-type="inner" alias="ad">
<filter type="and">
<condition attribute="salesorderid" operator="eq" value="@CRM_salesorder"/>
</filter>
</entity>
</fetch>

Please help

  

Org not shown in Plugin Registration Tool

I'm a CRM consultant, I'm an administrator for several CRM Online organisations in EMEA, I'm configured as a system admin in a new tennant and while several organisations I'm an admin for are displayed in the plugin registration tool, my latest one is not.

While XrmToolbox can connect to my environment using my credentials to register plugins, I'm trying to register service endpoints which are only supported in the plugin registration tool.

It appears to me that plugin registration is finding one of my tenants and then doesn't look for any additional tenants associated with my account.

How can I connect to my CRM Online environment using the Plugin Registration Tool?

Charts and currency fields CRM 2011

When I create a currency field within CRM I get two fields; the field I have named and also a base field.

As I think I understand it, the base is for the base currency equivalent of the system and the user created field is the actual value the quote was created in?

Now using our system Dynamics CRM 2011 RU12, we have always been told to write data to the non base field, however, if I produce a chart/graph no matter which field I select it appears to just use the base field value - this obviously is showing inconsistencies in values - so my question is am I doing things wrong or is the chart tool wrong?

Matt

Workflows erroring out

I am getting an error message in all of my workflows that says: "A SQL Server error occurred. Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support."

Workflow suspended temporarily due to error: Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Generic SQL error.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ErrorCode>-2147204784</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>Generic SQL error.</Message>
  <Timestamp>2019-01-04T00:40:32.5503513Z</Timestamp>
  <InnerFault>
    <ErrorCode>-2147204784</ErrorCode>
    <ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>Generic SQL error.</Message>
    <Timestamp>2019-01-04T00:40:32.5503513Z</Timestamp>
    <InnerFault>
      <ErrorCode>-2147220970</ErrorCode>
      <ErrorDetails xmlns:d4p1="schemas.datacontract.org/.../System.Collections.Generic" />
      <Message>System.Data.SqlClient.SqlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #E64D34D7</Message>
      <Timestamp>2019-01-04T00:40:32.5503513Z</Timestamp>
      <InnerFault i:nil="true" />
      <TraceText i:nil="true" />
    </InnerFault>
    <TraceText i:nil="true" />
  </InnerFault>
  <TraceText>[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
[SendEmailStep3]
</TraceText>
</OrganizationServiceFault>
   at Microsoft.Crm.Workflow.Services.SendEmailActivityService.Execute(ActivityContext executionContext, SendEmail sendEmail)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Any help is appreciated.  Thank you

Export leads to Excel (Pivot Table)

Hi,

When i try to export my leads from CRM to a Pivot Table.

The Excell file opens and it shows a error message, JavaScript is required. What could the issue be? I have enabled the Javascript in the Browser that i"m using but still dosen't work.

Greetings.


Personal views charts dashboards - Impersonation not working

Hello,

I'm trying to share all personal views, charts and dashboards with a giving user, however, I notice that the impersonation is not working when I try to rerieve the complete list.

Here is an example of what i'm using : 

Entity systemUser = _serviceProxy.Retrieve("systemuser", new Guid("eb626e45-985b-e411-a45f-005056bc742c"), new ColumnSet(true));

                        _serviceProxy.CallerId = systemUser.Id;
                        Entity chartt = _serviceProxy.Retrieve("userqueryvisualization", new Guid("31735de8-b994-e711-bdb1-005056bc1180"), new ColumnSet(true));


Any help please ?

I tried with the XRMToolbox plugin of  but it has the same problem. The result is different depends on the connected user.

Thank you

Forwarded Email getting associated with same Case, instead of creating a new case

I have noticed that forwarded email from a different sender for an existing case if there a case already exists in the system, is getting associated with the same case instead of creating a new case in the queue.

 

Explaining the Scenario:

1. I have configured a mailbox and 'Dummy' Queue for email address says: dummy@mycompanydomain.com

2. Case Creation rule is configured for an email coming to this queue.

 

Sending Emails in 2 different scenarios:

  1. Sent email from ABC@outlook.com
    1. TO :  DEF@outlook.com & XYZ@outlook.com
    2. "Replied to All" from DEF@outlook.com to ABD@outlook.com, XYZ@outlook.com and Added dummy@mycompanydomain.com email address as well.
      • New Ticket got created in 'Dummy' queue.  – Working as expected.

    3. "Replied to All" from XYZ to ABD, DEF and Added dummy@mycompanydomain.com mailbox as well.
      • New Ticket got created in ‘'Dummy' queue. – Working as expected.
  1. Sent email from ABC@outlook.com
    1. TO :  DEF@outlook.com & XYZ@outlook.com
    2. Replied to All from DEF to ABD@outlook.com, XYZ@outlook.com and Added dummy@mycompanydomain.com email address as well.
      • New Ticket got created in "Dummy" queue.  – Working as expected.
    3. Forwarded from XYZ to dymmy@mycompanydomain.com mailbox.
      • Incoming Email got associated with existing Ticket in ‘Dummy’ queue.  -- Is this an expected behavior or a product bug?

    Dynamics 365 for Outlook Issue - There is a problem communicating with the Microsoft Dynamics 365 Server

    Hello Everyone,

    I am running into the following issue with one of our users. We are using Version 9 Dynamics 365 Online and he has the latest version of the Dynamics 365 for Outlook plug in using Outlook 2016. 

    We have other users on Outlook 2016/Outlook 2013 working however this one always gets this error when clicking Track. Synchronizing works fine. 

    I have gone through many help articles but nothing has seemed to help. 

    Please could someone assist?

    Image may be NSFW.
    Clik here to view.

    Logs are below: 

    # CRM Tracing Version 1.1 Unmanaged
    # LocalTime: 2019-01-03 16:40:49.114
    # Categories: *:Error
    # Schedule: No registry key - using default value: Daily
    # ComputerName: RFH-SM-L102
    # CRMVersion: 9.0.0002.0155
    [2019-01-03 16:40:49.114] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemHelper::HrPromoteMailItemInCrm File: EmailHelper.cpp Line: 1985
    >hr = 0x80004005
    [2019-01-03 16:40:49.460] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemHelper::HrCreateInCrm File: EmailHelper.cpp Line: 1499
    >hr = 0x80004005
    [2019-01-03 16:40:49.464] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemHelper::HrCreateInCrm File: EmailHelper.cpp Line: 1530
    >hr = 0x80004005
    [2019-01-03 16:40:50.561] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemHelper::HrCreateInCrm File: EmailHelper.cpp Line: 1552
    >hr = 0x80004005
    [2019-01-03 16:40:50.562] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemHelper::HrPromoteItemToCrm File: EmailHelper.cpp Line: 326
    >hr = 0x80004005
    [2019-01-03 16:40:50.563] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemInspectorWrapper::HrHandleCreateOrViewButtonClick File: EmailInspectorEvents.cpp Line: 650
    >hr = 0x80004005
    [2019-01-03 16:40:55.982] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemInspectorWrapper::HrButtonHandler File: EmailInspectorEvents.cpp Line: 185
    >hr = 0x80004005
    [2019-01-03 16:40:55.982] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CAddin::HrButtonOnActionInternal File: e:\repos\crm\src\core\application\outlook\addin\RibbonCallbacks.h Line: 528
    >hr = 0x80004005
    [2019-01-03 16:41:15.954] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemHelper::HrPromoteMailItemInCrm File: EmailHelper.cpp Line: 1985
    >hr = 0x80004005
    [2019-01-03 16:41:15.954] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemHelper::HrCreateInCrm File: EmailHelper.cpp Line: 1499
    >hr = 0x80004005
    [2019-01-03 16:41:15.955] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemHelper::HrCreateInCrm File: EmailHelper.cpp Line: 1530
    >hr = 0x80004005
    [2019-01-03 16:41:16.398] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemHelper::HrCreateInCrm File: EmailHelper.cpp Line: 1552
    >hr = 0x80004005
    [2019-01-03 16:41:16.398] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemHelper::HrPromoteItemToCrm File: EmailHelper.cpp Line: 326
    >hr = 0x80004005
    [2019-01-03 16:41:16.404] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemInspectorWrapper::HrHandleCreateOrViewButtonClick File: EmailInspectorEvents.cpp Line: 650
    >hr = 0x80004005
    [2019-01-03 16:41:20.645] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CMailItemInspectorWrapper::HrButtonHandler File: EmailInspectorEvents.cpp Line: 185
    >hr = 0x80004005
    [2019-01-03 16:41:20.646] Process:OUTLOOK |Thread:16256 |Category: Unmanaged.Platform |User: PlatformUser |Level: Error | CAddin::HrButtonOnActionInternal File: e:\repos\crm\src\core\application\outlook\addin\RibbonCallbacks.h Line: 528
    >hr = 0x80004005

    =================================================================================================================

    # CRM Tracing Version 2.0
    # LocalTime: 2019-01-03 16:40:49.082
    # Categories: *:Error
    # CallStackOn: Yes
    # ComputerName: RFH-SM-L102
    # CRMVersion: 9.0.0002.0409

    [2019-01-03 16:40:49.082] Process:OUTLOOK |Organization:f3b4d043-1a22-433b-b6fe-ae5a86402632 |Thread: 1 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: d0c8e39a-ab55-4617-822d-105c0371614c | CrmSqlCeDatabaseBase.ExecuteInNewConnection ilOffset = 0x22
    at CrmSqlCeDatabaseBase.ExecuteInNewConnection(ICrmSqlCeDatabaseContext context, Action`1 actions, Func`2 exceptionHandler) ilOffset = 0x22
    at CrmSqlCeDatabase.VerifyDatabase() ilOffset = 0x70
    at CrmSqlCeDatabase.Initialize() ilOffset = 0xF4
    at CrmSqlCeDatabase.<.ctor>b__4_0() ilOffset = 0x0
    at CrmSqlCeDatabaseContext.get_ConnectionString() ilOffset = 0x8
    at CrmSqlCeConnection..ctor(ICrmSqlCeDatabaseContext context) ilOffset = 0x6
    at CrmSqlCeDatabaseBase.ExecuteInNewConnection(ICrmSqlCeDatabaseContext context, Func`2 actions, Func`2 exceptionHandler, Boolean disposeConnection) ilOffset = 0x16
    at CrmSqlCeDatabaseBase.ExecuteInNewConnection(Action`1 actions, Func`2 exceptionHandler) ilOffset = 0x21
    at EmailIdMappingTable.AddEmailMapping(String messageId, String entryId, String crmId, String regardingId) ilOffset = 0x3D
    >CrmSqlCeConnection::ExecuteInNewConnection() Unexpected Exception: System.Data.SqlServerCe.SqlCeException (0x80004005): Internal error: SQL Server Compact made an unsupported request to the host operating system. [ 2949,GetFileDACL,GetFileSecurityW ]
    > at System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)
    > at System.Data.SqlServerCe.SqlCeConnection.Open()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection.Open()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection..ctor(ICrmSqlCeDatabaseContext context)
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabaseBase.ExecuteInNewConnection[TReturn](ICrmSqlCeDatabaseContext context, Func`2 actions, Func`2 exceptionHandler, Boolean disposeConnection)
    [2019-01-03 16:40:49.099] Process:OUTLOOK |Organization:f3b4d043-1a22-433b-b6fe-ae5a86402632 |Thread: 1 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: d0c8e39a-ab55-4617-822d-105c0371614c | CrmSqlCeDatabaseBase.ExecuteInNewConnection ilOffset = 0x21
    at CrmSqlCeDatabaseBase.ExecuteInNewConnection(Action`1 actions, Func`2 exceptionHandler) ilOffset = 0x21
    at EmailIdMappingTable.AddEmailMapping(String messageId, String entryId, String crmId, String regardingId) ilOffset = 0x3D
    >CrmSqlCeConnection::ExecuteInNewConnection() Unexpected Exception: System.Data.SqlServerCe.SqlCeException (0x80004005): Internal error: SQL Server Compact made an unsupported request to the host operating system. [ 2949,GetFileDACL,GetFileSecurityW ]
    > at System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)
    > at System.Data.SqlServerCe.SqlCeConnection.Open()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection.Open()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection..ctor(ICrmSqlCeDatabaseContext context)
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabaseBase.ExecuteInNewConnection[TReturn](ICrmSqlCeDatabaseContext context, Func`2 actions, Func`2 exceptionHandler, Boolean disposeConnection)
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabaseBase.ExecuteInNewConnection(ICrmSqlCeDatabaseContext context, Action`1 actions, Func`2 exceptionHandler)
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabase.VerifyDatabase()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabase.Initialize()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabase.<.ctor>b__4_0()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabase.CrmSqlCeDatabaseContext.get_ConnectionString()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection..ctor(ICrmSqlCeDatabaseContext context)
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabaseBase.ExecuteInNewConnection[TReturn](ICrmSqlCeDatabaseContext context, Func`2 actions, Func`2 exceptionHandler, Boolean disposeConnection)
    [2019-01-03 16:41:15.944] Process:OUTLOOK |Organization:f3b4d043-1a22-433b-b6fe-ae5a86402632 |Thread: 1 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: d0c8e39a-ab55-4617-822d-105c0371614c | CrmSqlCeDatabaseBase.ExecuteInNewConnection ilOffset = 0x22
    at CrmSqlCeDatabaseBase.ExecuteInNewConnection(ICrmSqlCeDatabaseContext context, Action`1 actions, Func`2 exceptionHandler) ilOffset = 0x22
    at CrmSqlCeDatabase.VerifyDatabase() ilOffset = 0x70
    at CrmSqlCeDatabase.Initialize() ilOffset = 0xF4
    at CrmSqlCeDatabase.<.ctor>b__4_0() ilOffset = 0x0
    at CrmSqlCeDatabaseContext.get_ConnectionString() ilOffset = 0x8
    at CrmSqlCeConnection..ctor(ICrmSqlCeDatabaseContext context) ilOffset = 0x6
    at CrmSqlCeDatabaseBase.ExecuteInNewConnection(ICrmSqlCeDatabaseContext context, Func`2 actions, Func`2 exceptionHandler, Boolean disposeConnection) ilOffset = 0x16
    at CrmSqlCeDatabaseBase.ExecuteInNewConnection(Action`1 actions, Func`2 exceptionHandler) ilOffset = 0x21
    at EmailIdMappingTable.AddEmailMapping(String messageId, String entryId, String crmId, String regardingId) ilOffset = 0x3D
    >CrmSqlCeConnection::ExecuteInNewConnection() Unexpected Exception: System.Data.SqlServerCe.SqlCeException (0x80004005): Internal error: SQL Server Compact made an unsupported request to the host operating system. [ 2949,GetFileDACL,GetFileSecurityW ]
    > at System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)
    > at System.Data.SqlServerCe.SqlCeConnection.Open()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection.Open()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection..ctor(ICrmSqlCeDatabaseContext context)
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabaseBase.ExecuteInNewConnection[TReturn](ICrmSqlCeDatabaseContext context, Func`2 actions, Func`2 exceptionHandler, Boolean disposeConnection)
    [2019-01-03 16:41:15.947] Process:OUTLOOK |Organization:f3b4d043-1a22-433b-b6fe-ae5a86402632 |Thread: 1 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: d0c8e39a-ab55-4617-822d-105c0371614c | CrmSqlCeDatabaseBase.ExecuteInNewConnection ilOffset = 0x21
    at CrmSqlCeDatabaseBase.ExecuteInNewConnection(Action`1 actions, Func`2 exceptionHandler) ilOffset = 0x21
    at EmailIdMappingTable.AddEmailMapping(String messageId, String entryId, String crmId, String regardingId) ilOffset = 0x3D
    >CrmSqlCeConnection::ExecuteInNewConnection() Unexpected Exception: System.Data.SqlServerCe.SqlCeException (0x80004005): Internal error: SQL Server Compact made an unsupported request to the host operating system. [ 2949,GetFileDACL,GetFileSecurityW ]
    > at System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)
    > at System.Data.SqlServerCe.SqlCeConnection.Open()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection.Open()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection..ctor(ICrmSqlCeDatabaseContext context)
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabaseBase.ExecuteInNewConnection[TReturn](ICrmSqlCeDatabaseContext context, Func`2 actions, Func`2 exceptionHandler, Boolean disposeConnection)
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabaseBase.ExecuteInNewConnection(ICrmSqlCeDatabaseContext context, Action`1 actions, Func`2 exceptionHandler)
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabase.VerifyDatabase()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabase.Initialize()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabase.<.ctor>b__4_0()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabase.CrmSqlCeDatabaseContext.get_ConnectionString()
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection..ctor(ICrmSqlCeDatabaseContext context)
    > at Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabaseBase.ExecuteInNewConnection[TReturn](ICrmSqlCeDatabaseContext context, Func`2 actions, Func`2 exceptionHandler, Boolean disposeConnection)

    Moving from CRM 2016 to 365...

    Hello,

    My company currently has CRM 2016 on prem and we are moving to 365 on prem.  I have my servers ready for the setup, but I want to make sure I take the correct steps to do the install correctly before I mess something up.  Any insight you can share is greatly appreciated.  Not only on the install but also on getting the database over to be used with 365.

    Thank you in advance.

    Dashboards as pdf email attachment in outlook app

    Hi friends,

    I created one custom button on dashboard ribbon, client requirement: user will come and select any dashboard(ex: sales dashboard, sales activity dashboard, etc) and user click on the custom button, then that particular dashboard should be converted into pdf and attach that pdf in desktop outlook application. I tried using jsPDF and I tried passing dashboard div  ids in the code, but it is generation empty PDF. Any suggestions?

    Thanks,

    Bharath

    code

    ===================================

    function printPdf(){

    var doc = new jsPDF();

    doc.fromHTML(document.getElementById('mainTable'), 15, 15, {
    'width': 170
    });

    doc.save('Test.pdf');
    }

    with the help of this code, it is generating empty pdf file. I added jquery library and JSPDF library as well in my button command.

    Webresource

    Hello Everyone.

    I am using crm 2013 for developing a new window popup to display tabs from the form. I am able to create a custom ui for displaying a form structure and wanted to pass the link of the form in webresource. How can i do it?

    Run Report Option not visible on Tablet browser experience -- Specifically iPad (using Safari browser)

    We recently upgraded from CRM v8.2 to CRM v9.1 (specifically Version 1710 -- 9.1.0.1006 Online)

    Our Field users access CRM on their iPads (using safari browser), and earlier were able to Run Report from Account entity form using the 'Run Report' on Account toolbar.

    But now this 'Run Report' button is no longer visible. Is there any supported workaround to make this button visible on iPad browser experience ?

    Here is the link which shows this button was visible earlier: crmtipoftheday.com/.../tip-816-dynamics-365-ssrs-reports-on-ipad


    Reopening Opportunities Resulting in Duplicate Opportunities Listed in Reports

    Hello. Our sales process involves sales reps. opening, managing, and eventually closing opportunities. There are instances where the opportunities need to be reopened (perhaps due to incorrect entries by sales staff, changes that take place post-sale, etc.). 

    We run Opportunity reports (for example: Opportunities Closed YTD) that list Actual Revenue, Date Closed, Sales rep. etc. The filters would include Actual Close Date = This Year, Status = Won. It is returning a report that has multiple listings (and cumulative revenue totals, etc.) for any opportunity that had been reopened. 

    Is there a filter that can be set so it eliminates the duplicate and only shows the most recently closed iteration of that opportunity? Perhaps there is a bulk edit that can be done. 

    Thanks in advance for the help with this. 

    Method not found: 'Boolean Microsoft.Xrm.Sdk.osf.get_ExceptionRetriable()'.

    Hi, 

    we are recently upgraded to D365 8.2.2.112 on-premises from 2016, after that i'm having this error if try to open solution from Ribbon work bench. I got the same error even when i try to debug my plug-in. Any thoughts about this. Thank you.

    Method not found: 'Boolean Microsoft.Xrm.Sdk.osf.get_ExceptionRetriable()'. 
    Stack Trace: 
    Error: 
    at Function.Error$createError [as createError] (:1888:13) 
    at Function.Xrm_Sdk_OrganizationServiceProxy$_getSoapFault [as _getSoapFault] (:4782:22) 
    at XMLHttpRequest.Xrm_Sdk_OrganizationServiceProxy$_getResponse.xmlHttpRequest.onreadystatechange (:4722:69) 
    Trace:

    [RWB2016.Plugins: RWB2016.Plugins.RibbonCustomisationsPlugin] 
    [ac49cdfa-aeef-e611-81d5-0800278d9765: Ribbon Workbench Action]

    Deleting system-created dependencies like CreatedBy User, Owning Business Unit

    I need to delete a custom entity. However, it has Dependencies  on system-created relationships. Examples are 1:N relationships like new_xxxx_ASyncOperations new_xxxx_Process Session, N:1 relationships like CreatedBy User (lk_new_xxxx_createdby), ModifiedBy User, Owning Team, Owning Business Unit. CRM will not let me delete these relationships, saying "Only custom relationships can be updated or deleted." How can I delete the system dependencies so I can delete the custom entity?

    Troubleshooting SDK.REST.RetrieveRecord

    A couple years ago I posted here about how to use this method: https://community.dynamics.com/crm/f/117/t/242500

    I solved the issue as noted there, but now I'm trying the same thing an another entity and it's not working.

    The code is on the new_Invoice entity, and I'm trying to access a field on the out-of-box Account entity.

    Here's my code:

    var companyID = Xrm.Page.getAttribute('new_companyid').getValue()[0].id;
    var APContact = null;
    var name = null;
    
    SDK.REST.retrieveRecord
    (
      companyID,
      'Account',
      null, null,
      function (Account)
      {
        APContact = Account.new_AccountsPayableContactId;
      },
    
      function Error()
      {
        alert('There is an error in reading account data.');
      }
    );


    In all my tests, APContact has always ended up null within the function and after it. What am I doing wrong?

    Dynamics CRM - Object does not support property or method 'addOnKeyPress'

    I am working on Dynamics CRM 9.1 version.

    I have requirement to AutoComplete  a single line text filed 'Country' on 'Address' entity(OOB entity).

    I was trying Xrm.Page.getControl("country").addOnKeyPress(keyPressFcn) on load, but i see error message that - Object does not support property or method 'addOnKeyPress'.

    But when I try 'addOnKeyPress' method on Account entity it was work as expected. 

    Any suggestion how can I achieve the same on 'Address' entity(OOB entity).

    Image may be NSFW.
    Clik here to view.

    Image may be NSFW.
    Clik here to view.

    Viewing all 79901 articles
    Browse latest View live


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