Quantcast
Viewing all 79901 articles
Browse latest View live

The size necessary to buffer the XML content exceeded the buffer quota.

When I am trying to import a solution through code and sending a request to crm using _service.Execute() method then I am getting this error: The size necessary to buffer the XML content exceeded the buffer quota as size of my solution as exceeded the max size of xml buffer. Is there any way in which we can increase the default size of the request?


Error Using Xrm.WebApi on Address Form: jQueryApi is not defined

We are upgrading from Dynamics 365 online v8 to v9. In the onload event for the Address form, we have some javascript that calls the Web API. Currently, we build an XMLHttpRequest to do this, but if possible, I'd like to switch to using the new Xrm.WebApi object. Here's simplified test code:

Xrm.WebApi.retrieveMultipleRecords("customeraddresses").then(
	function(results) {Xrm.Utility.alertDialog("there are results")},
	function(error) {Xrm.Utility.alertDialog(error.message)}
);

We have this code hooked up to both the Contact and Address form onload events. On the Contact form, it works just fine, but on the Address form, we get the following error:

ReferenceError: jQueryApi is not defined
    at XrmClientApi.OnlineSdk.retrieveMultipleRecords (global.ashx?ver=-766924453:4561)
    at Function.Xrm.WebApi.retrieveMultipleRecords (global.ashx?ver=-766924453:2887)
    at RemoveUsedPremierAddressTypes (tre_AddressTypeFilter.js?ver=-766924453:15)
    at AddressOnLoad (tre_AddressFormScript.js?ver=-766924453:6)
    at crmForm_window_onload_handler (FormScript.js.aspx?businessRulesVersion=1033&formid=df5bef3a-9237-40bd-a27c-2cd7fd434706&FormName=crmForm&fver=345355024&isbulkedit=false&ver=-766924453:24)
    at crmFormOnLoadHandler (FormScript.js.aspx?businessRulesVersion=1033&formid=df5bef3a-9237-40bd-a27c-2cd7fd434706&FormName=crmForm&fver=345355024&isbulkedit=false&ver=-766924453:6)
    at executeAction (pageloader.js?ver=-766924453:76)
    at pageloader.js?ver=-766924453:56

I assume this object is missing because the Address form hasn't been updated to match the new UI in v9. Does that mean we will need to continue to create our own XMLHttpRequest for the Address form, or might the form get updated so we can also use Xrm.WebApi there in the near future?

Importing solution gives error few components are missing having dependencies in the Field Service Solution. Need Help

Sending emails take 6 - 10 minutes email router CRM 2011

Hi

We configured our CRM router to set out mails using O365 mail service, we have custom workflows that generate mails. recently we figured the mail sending delay where all mails include entity email (Eg : Contact) in CC or To. 

But when i put test mail form activities option to CRM user is sending mail in regular way where no delay

in event viewer i found following two errors repeated way 

Error 1

#26234 - The E-mail Router service could not process a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.ExchangeOnlinePollingSendEmailProvider. System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.HandleProcessMessageError(Exception exception, Entity emailMessage)
at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.Run()
at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteProviderWork(Object providerQueueRequestObject)

Error 2

#61042 - An error occurred while processing the outgoing e-mail message with subject "Passport Expiry Reminder" for ExchangeOnline: http://ABC/TC for delivery through outlook.office365.com/.../Exchange.asmx. Microsoft.Crm.Tools.Email.Providers.EmailException: Error: At least one recipient isn't valid., Recipient "THEBUWANAGE T G FERNANDO YASEEN" isn't resolved. All recipients must be resolved before a message can be submitted.
at Microsoft.Crm.Tools.Email.Providers.ExchangeOnlinePollingSendEmailProvider.LogEwsResponseErrorWarning(String message, ResponseClassType responseClassType)
at Microsoft.Crm.Tools.Email.Providers.ExchangeOnlinePollingSendEmailProvider.ProcessMessageInternal(Entity emailMessage)
at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.Run()

Please any one have same problem solve or any solution highly appreciate

Kind Regards

Radika

CRM > OneNote—Default date is wrong

When I open OneNote through a CRM account, it wants to auto-populate the date and meeting time; however, the date and time are always 1/1/2000 00:00.  It would be a great function when working correctly, so is this a bug, or how do we get it to insert today's date instead of the start of the millenium?

Cheers

Locking the fields are working in Form sub-grid but not working in associated sub-grid.

Hello Team,

We have a requirement to lock the required fields in Editable Grid. 

We are able to lock the fields on Home Page Grid and Sub Grid we displayed on Form. But the Associated Grid of the entity is still in editable mode.

We are locking the required fields using OnRecordSelect event of the Editable Grid (on Form on Home Page Grid).

Please suggest friends.....

Thanks

Sujay Kamal Peddireddy

Data going missing in our CRM

I have noticed now over the past few months that on a number of our contact records the 'Date of Birth' field is changing itself to contain no data.

I know that the contact records definitely had data in them, as other calculated fields that require the date of birth field have been calculated.

Just wondering if anyone else has noticed something similar, where their data seems to just disappear almost?

Been racking my brain trying to figure out what is causing it, but can't seem to figure it out.

Thanks

Wait until condition Stuck 10-30 mins even after condition met .

I have wait until condition for one activity to completed . That activity create from above step in same workflow .

Noticed that wait start as soon as activity completed and stuck 20 - 30 mins then execute next step  This behavior started after installing SP1.1 in CRM2016  . The same issue exist in D365 also .

Image may be NSFW.
Clik here to view.
 


Email Router - when updating Mailbox's email address returns SQL TIMEOUT ERROR.

Good afternoon,

I have a CRM 2016 OnPremise instance and I can't receive any incoming emails inside of it even though when I run the test access says everything is good.

First, I'm unable to change a queue record email address, because I keep receiving an SQL Timeout error (doesn't matter how much time you increase the timeout it will never change) but if I try to change any other field it works and saves (but not the email field of course).

The same with the Mailbox's records, when I try to change the email it returns a SQL Timeout error.

So what my smart butt did was changing these emails by SQL queries, but after that the emails still won't create inside CRM.

It shows the next warning log in the event viewer:

#35241 - The recipients for the email message with subject "[x]" in mailbox [email address] did not match any known records.

I'm running out of choices here, I wouldn't when I run the diagnosis tool on my organization it's performance is good but there must be something obstructing the communication with the SQL? Any clues? You could save my life :)

SQL TimeOut Error:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SQL timeout expired.Detail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ErrorCode>-2147204783</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>SQL timeout expired.</Message>
  <Timestamp>2018-10-10T14:14:15.5749939Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>

How to activate Address Validation using in Built Functionality?

Hi there,

I have a CRM project where some basic address validation is needed on account / contact.

I have a old demo version up and running that offers a list of formatted addresses in a popup, once you start entering address data (see screenshot). Once you pick the address in the popup, it completes all the address composite fields on account / contact.

But where can I find how to turn that feature on / off ?

Any hints where to find more info on that feature is highly appreciated.

Sunny greetings, Simon

Image may be NSFW.
Clik here to view.

Set Owner Field to Show only Teams entity and My Teams view

Hi All,

We are having a requirement to set "Common Team" as owner for all newly created contacts. I have done this using Workflow.

If a user wants to change the owner to a different team and when they click on Owner lookup, they should view only the teams they belong to.

Hence, we want the Owner field to be locked to Teams entity and My Teams view.

I just started learning javascript, so I really appreciate if someone can help me with the javascript code for this requirement.

Thanks a ton in advance!

Regards,

Praveen.

Error Trying to Execute FetchXML in Portal Web Template

I am trying to create a custom chart for display in a dashboard in the portal, but I am getting the following error on the portal dashboard: 

[ Liquid error: Exception has been thrown by the target of an invocation. ]

Below is the code in the web template for the dashboard page.  I tried commenting out the code specific to the chart, and the part of the code that triggers the error is the for loop after the end fetch: {% for item in feed.results.entities %}.  Does anyone have any ideas what might be wrong or how to debug this?

...

<div class="col-md-6 hide-chart-legend">
<!-- Opportunities -->
<!--{% chart id:"19A46D6C-82C6-E811-A95D-000D3A3ACDE0" viewid:"1FDF0A3F-856C-E711-8105-E0071B711C21" %}-->
{% fetchxml feed %}
<fetch version="1.0" output-format="xml-platform" mapping="logical" aggregate="true">
<entity name="opportunity">
<attribute name="name" alias="opp_count" aggregate="countcolumn"/>
<attribute name="new_travelyearglobal" />
<attribute name="new_productlineglobal" />
<attribute name="opportunityid" />
<attribute name="new_atacoach" alias="new_atacoach" groupby="true"/>
<filter type="and">
<condition attribute="new_atacoach" operator="eq" value="{{ user.contactid }}" />
</filter>
</entity>
</fetch>
{% endfetchxml %}[
{% for item in feed.results.entities %}
{
"count": "{{ item.opp_count }}",
"owner": " {{ item.new_atacoach.name }}",
"ownerid": "{{ item.new_atacoach.id | escape }}",
"travelyear" : "{{ item.new_travelyearglobal.label }}"
}
{% unless forloop.last %},{% endunless %}
{% endfor -%}
]

<canvas id="opportunityCountByOwnerAndTravelYear"></canvas>
<script src="//cdnjs.cloudfare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>
<script>
$(function(){
$.ajax({
method: "GET",
url: "/opportunitiesbyownerandtravelyearjson/"
})
.done (function(){
var labels = [], datavalues = [];
for (i = 0; i < results.length; i++)
{
labels.push(results[i].owner);
datavalues.push(parseFloat(results[i].count));
}

var dataobj = {
labels: labels,
datasets: [{
data: countdata
}]
}
});

var ctx = $("#opportunityCountByOwnerAndTravelYear");
var opportunityCountByOwnerAndTravelYear = new Chart(ctx, {
type: 'column',
data: dataobj,
options: {
animation: {
animateScale: true
};
legend: {
display: true,
position: "bottom"
}
}
});

});
</script>
</div>

...

Best practices for rolling out solutions with bug fixes, new features?

What are people's recommended practices around their own internal customized solution when rolling out bug fixes and new features?  Presumably there are times when you've got new feature development stretching over a period of time, but you'd like to roll out some bug fixes before that's done. 

  • How do you organize your solutions to keep everything organized and nothing getting into production before it's supposed to?  (But also not clobbering your own changes?) 
  • How many servers do you have other than production?  Do you use totally new servers, or just different organizations?
  • Do you do anything different step-wise for bug fixes vs features?
  • Do you make use of solution segmentation, if you're on a new enough version?  How?

Curious to hear what people have found works well (or doesn't).  Also, this is for a small environment (50 users, 2 customizers) - I assume scope may cause the answers to vary a bit.

Campaign Responses - Update Contacts by Workflow

When creating a campaign response I want to update a custom date field on the contact record.

I have created a workflow to try and achieve this

Image may be NSFW.
Clik here to view.

However when the workflow runs it errors "A record required by this process could not be found"

Plugin Trace:

[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.UpdateEntity]
[UpdateStep1]

Error Message:

Unhandled Exception: Microsoft.Crm.CrmException: Cannot find record to be updated
at Microsoft.Crm.Workflow.Services.UpdateActivityService.Execute(ActivityContext executionContext, UpdateEntity updateEntity)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Is this possible to update a contact record in this way?

Getting option set text from expanded entity using Web API

I know I use the Prefer: odata.include-annotations="OData.Community.Display.V1.FormattedValue"   to get labels from entity option sets. How do I do this for expanded entities?

Example:

10.150.150.122/.../jobopportunities$select=name,positiontitle,account_value,list_value,reportto,startdate&$filter=statecode eq 0&$expand=account($select=sector)

How do I get the sector label instead of or as well as getting the sector value?


Refreshing an associated sub-grid from a button using ribbon workbench

I created a custom button to trigger an on-demand custom workflow using ribbon workbench

after my custom workflow finishing executing i want to refresh the sub-grid in my form, i added a custom JavaScript action but it doesn't work !!

Xrm.Page.getControl("opportunityproductsGrid").refresh();


is there anyway i can do this or another method to refresh my sub-grid ?

i am using Microsoft dynamics 365 online v9

thanks

Viewing Associated Records in PowerApps

Hi, 

In my organization, we make use of a lot of N:1 relationships to organize our Accounts. For example, a customer account is associated to the account for his place of work, his physician, his church, and his wife's place of work. Currently, the best way to view an Account's associations is by using an Associated View. 

I am working with PowerApps to make browsing customer info on the go. Is there a way to display a list of records related to a record, in PowerApps? Searching for records and listing info for each record (i.e. fields for that record) and even related entities such as those where the account is in the "regarding" field is straightforward. My problem is that these related accounts do not appear on any fields in the original account form - they are simply related. 

Thanks in advance

SharePoint Integration with Dynamics 365 CRM

Hi,

Currently I have my Dynamics 365 CRM (Version 9.0) integrated with Online Share point (through Server based Share point integration). I want to disable the default mechanism of folder creation in Share point, as I will be setting up my own custom folder creation through back end logic (code/flows). Any suggestions ?

Entity Ownership

Hi,

I created a custom entity in my Dynamics 365 CRM (version 9.0). Now I want to provide read access to all users on this entity . I don't want to achieve this by updating security roles (or) by creating teams. Any Suggestions ?

Tried Solution : While creating entity , I had setup the ownership to "organization" hoping that all the users in CRM will have at least read access to the entity. But , when I tried to GET entity data in java script , I am facing missing ReadPrivilege error. Whereas , with System admin security role, it's fetching data without any issue.

object reference not set to an instance of an object

I am having an issue with the following code. It is mostly working, but when I create a variable (status) to obtain whether the file is active or inactive (looking for statecode == 0), it is throwing an error saying object reference not set to an instance of an object, but my understanding is that the statecode is an <OptionSetValue>.

I have created a custom plugin which should take in an entity, and if field2 is set to false, it should search for all files related to this entity and update the field2 on those files to equal false.
I have debugged the code and the error is occuring on the line where the var "status" is created, but I cannot understand why this isn't working. Can anyone help?

Here is the main part of the code:

try { Entity entity = (Entity)context.InputParameters["Target"]; Guid recordId = entity.Id; if (entity != null) { Entity Account = service.Retrieve("account", recordId, new ColumnSet("field1", "field2")); var x1 = Account.GetAttributeValue<OptionSetValue>("field1").Value; var x2 = Account.GetAttributeValue<bool>("field2"); //var status = Account.GetAttributeValue<OptionSetValue>("statecode").Value; if ((x2 == false) && (x1 == 10)) { // Query on entity reference to check for files with related GUID QueryExpression filesquery = new QueryExpression("incident"); filesquery.ColumnSet = new ColumnSet("field1", "field2"); filesquery.Criteria.AddCondition(new ConditionExpression("field3", ConditionOperator.Equal, recordId)); var filesqueryresults = service.RetrieveMultiple(filesquery); foreach (Entity a in filesqueryresults.Entities) { var status = a.GetAttributeValue<OptionSetValue>("statecode").Value; // issue with statecode being recognised - object ref not set to instnace of an object if ((a.GetAttributeValue<bool>("field2") != false) && (status == 0) ) { a["field2"] = false; service.Update(a); } } } else if((x2 == true) && (x1 != (10))) { //Other logic } } } catch (Exception e) { throw new InvalidPluginExecutionException(e.Message); }
Viewing all 79901 articles
Browse latest View live


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