“The content of the import file is not valid. You must select a text file” – Error on Solution Import in CRM 2015 (and earlier)


Hi,

We got this issue while importing (managed) solution from dev to test organization. We had recently deleted one of our existing 1 – n relationship and had created a new n – n relationship between those entities. The issue was that the new relationship had exactly the same schema name as the old relationship which we deleted.

The solution was to delete the newly created n – n relationship in Dev and create a new one with different schema name. After this change we were able to import the solution successfully.

Hope it helps..

Cannot read property ‘raw’ of undefined error message in CRM 2015 (Update 1.2)


Hi,

After our CRM 2015 Online instance was updated with Update 1.2 https://support.microsoft.com/en-us/kb/3141809 , we started getting weird issues around Boolean fields.

In our existing records having Boolean fields which has no value in it, we started getting the following Jscript error.

<Message>inline control initialization failed for control : tk_sharingrefreshed : with controlMode : normal : and exception details :

Cannot read property ‘raw’ of undefined</Message>


The only way we got it fixed is by changing the format of the field from Two Radio Buttons to either List or Check Box in the form.

Hope it helps ..

Sample code to close a quote as won using WinQuoteRequest in CRM 2016 (and earlier)


Just sharing a sample code to close quote as won through C#


WinQuoteRequest winQuoteRequest = new WinQuoteRequest();
Entity quoteClose = new Entity("quoteclose");
quoteClose.Attributes["quoteid"] = new EntityReference("quote", new Guid("015816C2-2F10-E611-8112-3863BB353ED0"));
quoteClose.Attributes["subject"] = "Quote Close" + DateTime.Now.ToString();
winQuoteRequest.QuoteClose = quoteClose;
winQuoteRequest.Status = new OptionSetValue(-1);
organizationProxy.Execute(winQuoteRequest);

Hope it helps..

Xrm.Page.getControl(arg).getLabel() showing both Label and Description after CRM 2015 Online Update 1.2.


Last week we had Update 1.2 installed in our CRM 2015 Online instances. After that we have started getting following issue.
In alert we were showing Label of the field using Xrm.Page.getControl(arg).getLabel(), and after update it is now showing Lablel as well as description of that field.

alert(Xrm.Page.getControl("parentaccountid").getLabel());



Waiting for the fix, till now removing the description seems like the only solution (temporary one)
Hope it helps


“Uncaught TypeError: Cannot read property ‘firstChild’ of null” error in Business Process Flow in CRM 2015 after CRM 2015 Update 1.2.


Hi,

After CRM 2015 Update 1.2 were installed, we started getting the below error in one of our Opportunity Forms on click of Next Stage in BPF.

 

g WP_20150405_002

We were using Legacy Form Rendering, and we observed this issue was not occurring in case of New Form Rendering.

After trying out several options, what worked was removing one of the sub grids used in the hidden tab.

Hope it helps..

Set PartyList field To in Email in CRM 2015 (and earlier)


Sample code to set the PartyList field for Email Activity.


function setContact() {

var partlistData = new Array();
partlistData[0] = new Object();

// guid of the record
partlistData[0].id = "8B2AD82B-30D6-E511-811F-3863BB356F90";

// name of the record
partlistData[0].name = "Hugh Grant";

// entity schema name
partlistData[0].entityType = "contact";
Xrm.Page.getAttribute("to").setValue(partlistData)

}

Hope it helps..