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

Customer Service Hub

$
0
0

Hello,

I am just wondering if I can uninstall msdynce_Customerservicehub and msdynce_CustomerServiceHubPatch from my Dynamics 365 (Version 1612 (9.0.6.9) (DB 9.0.6.9) on-premises) without causing any issues. Are they required solutions. Currently, we are not using Customer Service Hub.

Thanks, CRM-DEV    


How to log on Crm 2016 on-premise apart from Admin user?

$
0
0

Hello, we are installed Dynamics CRM 2016 on-premise on windows server 2016 and sql server 2016 standart.Everything is fine and all menu and functions works properly But when we try to connect over network with any user apart from "administrator" we get the error below.

(No Dynamics CRM User exist with the specified domain name and user id)

Only Admin user can connect without any error.

We have read a lot of articles and set up all the permissions needed on active directory users.

UserGroup
ReportingGroup
PrivUserGroup
SQLAccessGroup
Also checked the System.users and system.usersauthenticarion and roles in the database and we can see the users correctly. Furthermore we changed roleId as Administrator for the other users in the database table But nothing changed.

Also,we try to add new user to CRM and SETTINGS->SECURITY->USERS. when we click users GET ERROR Too.

IT just Says "An error occured and contact to your Administrator"

We could not find a solution and need urgent help,please!!

Thanks.

How to top showing Recent Records while using Filtered LookupObjects in UCI?

$
0
0

Hi Folks,

Question: Is there any way to hide the recent records list as highlighted below in red in UCI?

Background: We are opening a custom lookup object using Xrm.Utility.lookupObjects(lookupParameters) with the help of a custom button on a subgrid. Filtered records are displayed correctly once we hit the lookup icon but before that Recent Record list is displayed which displays and allows users to select the unfiltered records. Is there any way to stop CRM showing this recent records list?

What's the Javascript code snippet to set the "To" field of an email in Dynamics?

$
0
0

Hi all,

I just need some pointers on getting started with this. I've got a custom lookup field on an entity that points to a lead. I want to when an email is created and regarding is that entity to default the to field to the lead lookup on that entity.

I've been searching around for a sample code snippet and looking through the CRM REST builder but just can't seem to figure it out. Just a simple code snippet will do to point me in the right direction.

I know you've got to create an activitypointer record I think...

Kind regards,

Mike

Using references parameters in web api batch request (CRM 8.2 on prem)

$
0
0

Hi all, 

Does anybody know if batch requests in CRM 8.2 on premise support reference params? Basically I'm trying to create records in the batch request that depend on records created earlier in the change set. 

Per MS documentation "You can use $parameter such as $1$2, etc to reference URIs used in an earlier changeset in a batch request. This section shows various examples on how $parameter can be used in the request body of a batch operation to reference URIs."  https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/execute-batch-operations-using-web-api

I have the following function to test 

function testBatchRequestReferences() {
var data = [];
var account = { name: "Test Account - bulk entry references" };
var contact = { firstname: "Tester", lastname: "bulk entry" };
account["primarycontactid@odata.bind"] = "$1";

var d = new Date();
var batch = "batch_" + d.toString().replace(/ |:/g, "_").replace(/\(|\)/g, '');
var changeset = "changeset_" + d.toString().replace(/ |:/g, "_").replace(/\(|\)/g, '');

data.push("--" + batch);
data.push('Content-Type: multipart/mixed;boundary=' + changeset);
data.push('');

data.push('--' + changeset);
data.push('Content-Type:application/http');
data.push('Content-Transfer-Encoding:binary');
data.push('Content-ID:' + 1);
data.push('');
data.push('POST ' + parent.Xrm.Page.context.getClientUrl() + '/api/data/v8.2/contacts HTTP/1.1');
data.push('Content-Type:application/json;type=entry');
data.push('');
data.push(JSON.stringify(contact));

data.push('--' + changeset);
data.push('Content-Type:application/http');
data.push('Content-Transfer-Encoding:binary');
data.push('Content-ID:' + 2);
data.push('');
data.push('POST ' + parent.Xrm.Page.context.getClientUrl() + '/api/data/v8.2/accounts HTTP/1.1');
data.push('Content-Type:application/json;type=entry');
data.push('');
data.push(JSON.stringify(account));

data.push("--" + batch);
data.push('Content-Type: multipart/mixed;boundary=' + changeset);
data.push('');

data.push('--' + changeset + '--');
data.push('--' + batch + '--');

var payload = data.join('\r\n');

console.log(payload);
debugger;
//batch insert add all of the entries
$.ajax(
{
method: 'POST',
url: parent.Xrm.Page.context.getClientUrl() + '/api/data/v8.1/$batch',
headers: {
'Content-Type': 'multipart/mixed;boundary=' + batch,
'Accept': 'application/json',
'Odata-MaxVersion': '4.0',
'Odata-Version': '4.0'
},
data: payload,
async: true,
success: function (data, textStatus, xhr) {
console.log("added test entries");
console.log(data);
},
error: function (xhr, textStatus, errorThrown) {
alert(textStatus + " " + errorThrown);
}
});

}

the created payload is this 

--batch_Wed_Nov_13_2019_16_20_48_GMT-0800_Pacific_Standard_Time
Content-Type: multipart/mixed;boundary=changeset_Wed_Nov_13_2019_16_20_48_GMT-0800_Pacific_Standard_Time

--changeset_Wed_Nov_13_2019_16_20_48_GMT-0800_Pacific_Standard_Time
Content-Type:application/http
Content-Transfer-Encoding:binary
Content-ID:1

POST cadev.ptclwg.com/.../contacts HTTP/1.1
Content-Type:application/json;type=entry

{"firstname":"Tester","lastname":"bulk entry"}
--changeset_Wed_Nov_13_2019_16_20_48_GMT-0800_Pacific_Standard_Time
Content-Type:application/http
Content-Transfer-Encoding:binary
Content-ID:2

POST cadev.ptclwg.com/.../accounts HTTP/1.1
Content-Type:application/json;type=entry

{"name":"Test Account - bulk entry references","primarycontactid@odata.bind":"$1"}
--batch_Wed_Nov_13_2019_16_20_48_GMT-0800_Pacific_Standard_Time
Content-Type: multipart/mixed;boundary=changeset_Wed_Nov_13_2019_16_20_48_GMT-0800_Pacific_Standard_Time

--changeset_Wed_Nov_13_2019_16_20_48_GMT-0800_Pacific_Standard_Time--
--batch_Wed_Nov_13_2019_16_20_48_GMT-0800_Pacific_Standard_Time--

the response/error i'm getting 

--batchresponse_18c1e513-0b61-4eea-a50e-be682570cd06
Content-Type: multipart/mixed; boundary=changesetresponse_fa263bf1-c77f-4401-8d0c-1f0c860b6b16

--changesetresponse_fa263bf1-c77f-4401-8d0c-1f0c860b6b16
Content-Type: application/http
Content-Transfer-Encoding: binary
Content-ID: 2

HTTP/1.1 500 Internal Server Error
Access-Control-Expose-Headers: Preference-Applied,OData-EntityId,Location,ETag,OData-Version,Content-Encoding,Transfer-Encoding,Content-Length,Retry-After
Content-Type: application/json; odata.metadata=minimal
OData-Version: 4.0

{
"error":{
"code":"","message":"Resource not found for the segment '$1'.","innererror":{
"message":"Resource not found for the segment '$1'.","type":"Microsoft.OData.Core.UriParser.ODataUnrecognizedPathException","stacktrace":" at Microsoft.OData.Core.UriParser.Parsers.ODataPathParser.CreateFirstSegment(String segmentText)\r\n at Microsoft.OData.Core.UriParser.Parsers.ODataPathParser.ParsePath(ICollection`1 segments)\r\n at Microsoft.OData.Core.UriParser.Parsers.ODataPathFactory.BindPath(ICollection`1 segments, ODataUriParserConfiguration configuration)\r\n at Microsoft.OData.Core.UriParser.ODataUriParser.Initialize()\r\n at Microsoft.Crm.Extensibility.OData.CrmEdmEntityReference.CreateCrmEdmEntityReference(Uri link, CrmODataExecutionContext context)\r\n at Microsoft.Crm.Extensibility.OData.TypeConverters.EdmEntityTypeConverter.SetNavigationPropertyToXrmEntity(Entity entity, EntityMetadata entityMetadata, IEdmProperty edmProperty, EntityRelationship entityRelationship, Object propertyValue, Nullable`1 role)\r\n at Microsoft.Crm.Extensibility.OData.TypeConverters.EdmEntityTypeConverter.ConvertToCrmTypeInternal(EdmEntityObject edmTypeValue)\r\n at Microsoft.Crm.Extensibility.OData.TypeConverters.EdmTypeConverterBase`2.ConvertToCrmType(Object edmTypeValue)\r\n at Microsoft.Crm.Extensibility.OData.EdmTypeConverter.ConvertToCrmEntity(EdmEntityObject edmEntity, EntityReference entityReference)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.CreateEdmEntity(CrmODataExecutionContext context, String edmEntityName, EdmEntityObject entityObject, Boolean isUpsert)\r\n at Microsoft.Crm.Extensibility.OData.EntityController.PostEntitySet(String entitySetName, EdmEntityObject entityObject)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()"
}
}
}
--changesetresponse_fa263bf1-c77f-4401-8d0c-1f0c860b6b16--
--batchresponse_18c1e513-0b61-4eea-a50e-be682570cd06
Content-Type: multipart/mixed; boundary=changesetresponse_5eafa4e9-0d6e-4605-8b00-db9bf4b2fd7d

--changesetresponse_5eafa4e9-0d6e-4605-8b00-db9bf4b2fd7d--
--batchresponse_18c1e513-0b61-4eea-a50e-be682570cd06--

Not sure if I'm doing a mistake (doesn't look like it based on MS samples in the link above).

Can anyone please confirm? 

Thank you

Business Process Error - Infinite Loop - Workflow logic

$
0
0

Hello, 

I am creating a new workflow and processes with in the case entity in Dynamics 365. 

I have complete all the fields in the stages and want to test it live, but i keep receiving this error when attempting to create a new Case record.

I have searched top to bottom and can not find any errors in the Process, Workflow, Fields, Stages...All other forms are working and successful. 

Please assist!!!

Creating link to External Website with the dynamic record Id in CRM Dynamics 365 (on-prem) in workflow email

$
0
0

Hello Experts,

I have a scenario in which I am composing an email for a workflow which contains the url to include consist of two parts i.e.

Static Url part: https://www.example.com/booking/feedback/form/

Dynamic field value in crm:    bookingId

Requirement:

I want to create a url in the workflow email composer i.e. https://www.example.com/booking/feedback/form/<bookingId>

NOTE: <bookingId> is the crm field and unique for each booking.

Anyone can give a hint that how I can achieve this task?

Looking forward....

Cheers,

Naveed.

sholud we use html2Canvas.js in crm 365 for create pdf from HTMl

$
0
0

Hello

I am get error from html2canvas.js when  I am create pdf from html.

Error:

new_html2canvas.min:20 Uncaught (in promise) Error: Element is not attached to a Document
    at new_html2canvas.min:20
    at new_html2canvas.min:20
    at Object.next (new_html2canvas.min:20)
    at new_html2canvas.min:20
    at new Promise (<anonymous>)
    at a (new_html2canvas.min:20)
    at Vs (new_html2canvas.min:20)
    at new_html2canvas.min:20
    at getCanvas (new_AccountBasicInformation?Data=AccountId%3d936B419F-9F4B-E111-BB8D-00155D03A715:350)
    at createPDF (new_AccountBasicInformation?Data=AccountId%3d936B419F-9F4B-E111-BB8D-00155D03A715:333)
(anonymous) @ new_html2canvas.min:20
(anonymous) @ new_html2canvas.min:20
(anonymous) @ new_html2canvas.min:20
(anonymous) @ new_html2canvas.min:20
a @ new_html2canvas.min:20
Vs @ new_html2canvas.min:20
(anonymous) @ new_html2canvas.min:20
getCanvas @ new_AccountBasicInformation?Data=AccountId%3d936B419F-9F4B-E111-BB8D-00155D03A715:350
createPDF @ new_AccountBasicInformation?Data=AccountId%3d936B419F-9F4B-E111-BB8D-00155D03A715:333
onclick @ new_AccountBasicInformation?Data=AccountId%3d936B419F-9F4B-E111-BB8D-00155D03A715:370
Promise.then (async)
createPDF @ new_AccountBasicInformation?Data=AccountId%3d936B419F-9F4B-E111-BB8D-00155D03A715:333
onclick @ new_AccountBasicInformation?Data=AccountId%3d936B419F-9F4B-E111-BB8D-00155D03A715:370

Code:

function createPDF(){
     
      var pdfName = filename+".pdf";
      getCanvas().then(function (canvas) { 
         var 
          img = canvas.toDataURL("image/png"), 
          doc = new jsPDF({ 
           unit: 'px', 
           format: 'a4' 
          }); 
         doc.addImage(img, 'PNG', 20, 20); 
         doc.save(pdfName); 
         form.width(cache_width);


     });
     }
     // create canvas object 
       function getCanvas() { 
        form.width((a4[0] * 1.33333) - 80).css('max-width', 'none'); 
        return html2canvas($('#root'), { 
         imageTimeout: 2000, 
         removeContainer: true 
        }); 
       } 

Thanks & Regards


Plugin Profiler Error

$
0
0

Whenever i try to profile a plugin, the below error occurs.

When i don't profile, the plugin execution is successful. This is happening since last 2 days for Online 9.1 version. Any suggestions please?

Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.TypeLoadException: Method 'get_UserAzureActiveDirectoryObjectId' in type Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.

Field Security Profile based on Security Role

$
0
0

Is there any way we can add users in field security profile having specific security role ?

Currently we can add only Users and Teams there.

Add custom Attribute to custom Entity

$
0
0

Hi, Experts!

I create new Entity - nav_role

It has Attribute - "nav_rolecode" with Type - Set of Parameters. (in Web interface you can select the desired option from the drop down list).

Each Parameter has Label and Value - so how can I set this Attribute in c#?

for example - i tried this:

Entity NavRole = new Entity("nav_role");
    NavRole.Attributes["nav_systemuserroleid"] = new EntityReference("systemuser", FindUID);
    NavRole.Attributes["nav_validfrom"] = DateTime.Today;
    NavRole.Attributes["nav_rolecode"] = "808630010";

"808630010" it's a Value of Parameter in Set of Parameters. So it  doesn't work - for "nav_rolecode"

Help me please with this....

Disable Unified Interface

$
0
0

Hi

I have created a new trail org of Dynamics 365, but i'm unable to disable unified interface.

i have looked in

Advanced Settings

Administration  > System Settings 

but unable to see the option to disable the unified interface

Any help will be appreciated.

Many Thanks

Muhammad Bilal

is there a setFetchXml equivalent for Timeline?

$
0
0

Hello Community,

I'm currently trying to wrap my mind around a requirement that I've received, and while I know I could so something close to that by adding a subgrid and using setFetchXml() on that subgrid, I'm hoping that there's a way to keep using the Timeline instead:

System: We're using the Unified Interface, and the latest updates are applied. We're not using any of the OOTB apps but created model-driven Apps of our own instead.

Situation:

We're tracking Cases [incident] at our Service Desk level while sending out Work Orders [msdyn_workorder] to the 2nd level technicians, so we have a single point of contact for each ticket. E-Mails created for the WorkOrder are only visible in the WorkOrder, while E-Mails created for the Case are only visible in the Case.

Requirement:

Technicians want to see at least all of the E-Mails of the Case in the Work Orders Timeline, especially the E-Mail that's the initial email from the customer.

So my question is: Is it possible to do this in the Timeline at all? Changing the E-Mails regardingobject wouldn't work as there can be multiple Work Orders for a given Case.

Activity buttons, Can I change the label of buttons?

$
0
0

Can I change the label of these buttons?

Trace log find entity that caused error

$
0
0

I tried to query the activityid in the entity activitypointer -> no results. How do I find out the entity logicalname and the id off the record that caused that? Why does the log not contain such an important information? From all logfiles I ever saw on Windows and Linux machines the CRM logging is the worst.

[2019-11-14 07:16:16.340] Process: w3wp |Organization:e1f18b90-ecb3-e211-b55e-000c29329206 |Thread:   30 |Category: Exception |User: 45cc0c51-44ee-4979-96d7-3ad0650709f4 |Level: Error |ReqId: 199bb91d-df53-408f-85aa-f4ad63a6b7e6 |ActivityId: e1c4c705-f860-485e-b5fe-6f9d558ed3f9 | QOIDetailService.Validate  ilOffset = 0x12E
	at QOIDetailService.Validate(IBusinessEntity qoiDetail, IBusinessEntity parentQoi, Boolean IsCreate, ExecutionContext context)  ilOffset = 0x12E
	at QOIDetailService.Create(IBusinessEntity entity, ExecutionContext context, Boolean checkState, BusinessEntity parentEntity)  ilOffset = 0x4A
	at SalesOrderDetailService.Create(IBusinessEntity entity, ExecutionContext context)  ilOffset = 0x87
	at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF
	at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x16
	at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0x6C
	at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x3F
	at InternalOperationPlugin.Execute(IServiceProvider serviceProvider)  ilOffset = 0x43
	at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)  ilOffset = 0x0
	at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x64
	at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)  ilOffset = 0x93
	at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0xDE
	at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)  ilOffset = 0x35
	at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x218
	at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4
	at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)  ilOffset = 0x22D
	at ExternalMessageDispatcher.Execute(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId)  ilOffset = 0x0
	at OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation, UserType targetUserType)  ilOffset = 0x0
	at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Guid targetCallerRegardingObjectId, UserType targetUserType, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode)  ilOffset = 0x2E
	at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext)  ilOffset = 0x4B
	at OrganizationSdkServiceInternal.Create(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary`2 optionalParameters)  ilOffset = 0x0
	at InprocessServiceProxy.CreateCore(Entity entity)  ilOffset = 0x20
	at SalesOrder_Business_Logic.Renew_SalesOrder(IOrganizationService service, ITracingService tracingService, EntityReference salesorderRefToRenew, Int32 type, Boolean priceListUpdate, Guid priceListId)  ilOffset = 0xDFD
	at WF_SalesOrder_Renew.Execute(CodeActivityContext executionContext)  ilOffset = 0x131
	at CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)  ilOffset = 0x14
	at ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)  ilOffset = 0x40
	at ActivityExecutor.TryExecuteNonEmptyWorkItem(WorkItem workItem)  ilOffset = 0x33
	at ActivityExecutor.OnExecuteWorkItem(WorkItem workItem)  ilOffset = 0x25
	at Callbacks.ExecuteWorkItem(WorkItem workItem)  ilOffset = 0xD
	at Scheduler.OnScheduledWork(Object state)  ilOffset = 0xB2
	at SendOrPostThunk.UnhandledExceptionFrame(Object state)  ilOffset = 0x0
	at PumpBasedSynchronizationContext.DoPump()  ilOffset = 0x3C
	at WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout)  ilOffset = 0x23
	at WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)  ilOffset = 0x36
	at SynchronousWorkflowActivityHost.ExecuteWorkflowUsingInvoker(Activity workflow, ICommonWorkflowContext context)  ilOffset = 0x0
	at SynchronousWorkflowActivityHost.StartWorkflow(WorkflowActivationData activationData, ICommonWorkflowContext context)  ilOffset = 0x1A
	at SynchronousWorkflowActivityHost.StartWorkflow(ICommonWorkflowContext context)  ilOffset = 0xBD
	at WorkflowProcessServiceInternalHandler`1.ExecuteSyncWorkflow(Guid workflowId, PipelineExecutionContext pipelineContext, IGenericEventData workflowInstanceData, Boolean isTriggered, BusinessProcessFlowContext businessProcessFlowContext)  ilOffset = 0x55
	at WorkflowProcessServiceInternalHandler`1.ExecuteTriggeredSyncWorkflow(Guid workflowId, PipelineExecutionContext pipelineContext, Lookup primaryEntityInfo)  ilOffset = 0x22
	at WorkflowProcessServiceInternalHandler`1.ExecuteTriggeredSyncWorkflow(Guid workflowId, PipelineExecutionContext pipelineContext)  ilOffset = 0x19
	at SyncWorkflowExecutionPlugin.Execute(IServiceProvider provider)  ilOffset = 0x31
	at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)  ilOffset = 0x308
	at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x64
	at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)  ilOffset = 0x93
	at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0xDE
	at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)  ilOffset = 0x35
	at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x218
	at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4
	at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)  ilOffset = 0x22D
	at ExternalMessageDispatcher.Execute(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId)  ilOffset = 0x0
	at OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation, UserType targetUserType)  ilOffset = 0x0
	at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Guid targetCallerRegardingObjectId, UserType targetUserType, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode)  ilOffset = 0x2E
	at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext)  ilOffset = 0x4B
	at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext)  ilOffset = 0x0
	at OrganizationSdkService.Execute(OrganizationRequest request)  ilOffset = 0x0
	at   ilOffset = 0xFFFFFFFF
	at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)  ilOffset = 0x222
	at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)  ilOffset = 0x97
	at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)  ilOffset = 0x48
	at MessageRpc.Process(Boolean isOperationContextSet)  ilOffset = 0x65
	at Wrapper.Resume(Boolean& alreadyResumedNoLock)  ilOffset = 0x1B
	at ThreadBehavior.ResumeProcessing(IResumeMessageRpc resume)  ilOffset = 0x8
	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>Crm Exception: Message: The unit id is missing., ErrorCode: -2147206387

The XrmToolbox Plugin "Trace Viewer" cannot even retrieve something from the entity plugintracelog (maybe because of a bug https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/189346/plugin-trace-log-not-working-on-dynamics-crm-2016-on-premise/602836 )

Any ideas?


Incorrect form load issue

$
0
0

Hi All,

I have a HTML web resource to launch the selected account form for account creation and other one is for load the account form on which the record is created.

But, the JavaScript web resource which is used to reopen the account record within the particular account form (in which created) is not working as expected.

Somehow it launch the incorrect form and the field which i am using to separate the form name is also get update.

Is there any way to not update a field once it has some value or Need to update the code?

Code is given below: - 

function onLoad()
{
//if the form is update form
if (Xrm.Page.ui.getFormType()==2){
// variable to store the name of the form
var lblForm;
// get the value picklist field
var relType = Xrm.Page.getAttribute("new_formname").getValue();
// switch statement to assign the form to the picklist value
//change the switch statement based on the forms numbers and picklist values
switch (relType) {
case 'Site':
lblForm = "Site";
break;
case 'NoPileups - Site':
lblForm = "NoPileups - Site";
break;
case 'Account - Franchise':
lblForm = "Account - Franchise";
break;
case 'Distributor':
lblForm = "Distributor";
break;
case 'Organization':
lblForm = "Organization";
break;
case'Sage-Organization':
lblForm = "Sage-Organization";
break;
default:
lblForm = "Sage-Site";
}
//check if the current form is form need to be displayed based on the value
if (Xrm.Page.ui.formSelector.getCurrentItem().getLabel() != lblForm) {
var items = Xrm.Page.ui.formSelector.items.get();
for (var i in items) {
var item = items[i];
var itemId = item.getId();
var itemLabel = item.getLabel()
if (itemLabel == lblForm) {
//navigate to the form
item.navigate();
return;
} //endif
} //end for
} //endif
}
}//endif

invalid fetch xml error

$
0
0

fetchxmlAccholding = @"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false' {0}>
<entity name='new_productholding'>
<attribute name='new_productholdingid' />
<attribute name='new_name' />
<attribute name='createdon' />
<order attribute='new_name' descending='false' />
<filter type='and'>
<condition attribute='new_clientid' operator='eq' value=""" + ClientId + @""" />
<condition attribute='new_clientcaseid' operator='eq' value=""" + ClientCaseId + @""" />
</filter>
<link-entity name='new_casestage' from='new_casestageid' to='new_remediationstatusid' alias='ad'/>
<attribute name='new_casestagename' />
</link-entity>

</entity>
</fetch>";

can any body tell me why this gfetch is invalid i am getting error in plugin

Can't Update a javascript webresource

$
0
0

I am getting this error while trying to update a javascript webresource . I tried to clear the cache but no use.

Exception handling error

$
0
0

Hi We have an error pops up on Dynamics 365 every time it has been navigated 

the error log is as below 

Unhandled exception: 
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.Xml.XmlException: Microsoft.Crm.CrmException: File Not Found
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute()
at Microsoft.Crm.ApplicationQuery.RetrieveMultipleCommand.RetrieveData()
at Microsoft.Crm.ApplicationQuery.ExecuteQuery()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.GetData(QueryBuilder queryBuilder)
at Microsoft.Crm.Application.Controls.SharePointGridDataProvider.GetData(QueryBuilder queryBuilder)
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareGridData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareData()
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context) ---> Microsoft.Crm.CrmException: File Not Found
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute()
at Microsoft.Crm.ApplicationQuery.RetrieveMultipleCommand.RetrieveData()
at Microsoft.Crm.ApplicationQuery.ExecuteQuery()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.GetData(QueryBuilder queryBuilder)
at Microsoft.Crm.Application.Controls.SharePointGridDataProvider.GetData(QueryBuilder queryBuilder)
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareGridData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareData()
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)
--- End of inner exception stack trace ---
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #6AEEBA24Detail: 
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>a10f3976-d826-4ca8-a7ab-870dbb267085</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>System.Xml.XmlException: Microsoft.Crm.CrmException: File Not Found
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute()
at Microsoft.Crm.ApplicationQuery.RetrieveMultipleCommand.RetrieveData()
at Microsoft.Crm.ApplicationQuery.ExecuteQuery()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.GetData(QueryBuilder queryBuilder)
at Microsoft.Crm.Application.Controls.SharePointGridDataProvider.GetData(QueryBuilder queryBuilder)
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareGridData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareData()
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context) ---&gt; Microsoft.Crm.CrmException: File Not Found
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute()
at Microsoft.Crm.ApplicationQuery.RetrieveMultipleCommand.RetrieveData()
at Microsoft.Crm.ApplicationQuery.ExecuteQuery()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.GetData(QueryBuilder queryBuilder)
at Microsoft.Crm.Application.Controls.SharePointGridDataProvider.GetData(QueryBuilder queryBuilder)
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareGridData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareData()
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)
--- End of inner exception stack trace ---
at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #6AEEBA24</Message>
<Timestamp>2019-11-14T11:35:39.6924264Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>a10f3976-d826-4ca8-a7ab-870dbb267085</ActivityId>
<ErrorCode>-2147088634</ErrorCode>
<ErrorDetails xmlns:d3p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>File Not Found</Message>
<Timestamp>2019-11-14T11:35:39.6924264Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

dynamics 365 deployment manager error

$
0
0

dynamics 365 deployment manager is  MMC could not create the snap-in

Viewing all 79901 articles
Browse latest View live


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