Tag Archives: Error

CRM 4.0 Printing Error – This form has been changed and must be saved before printing.

One of user posted this error in this CRM thread, we had similar issue some time back and one of my colleagues had resolved this issue.

Problem
This error comes if you got java script code which is constantly updating some variables in the back ground. This makes CRM Form engine believes that form has been changed so CRM print function will not allow you print CRM form.

Solution
The solution for this is that we over ride existing CRM print on click event and write function to run this print job manually.
Following is example script for Phone call entity. This script needs to put in to the Form On Load Event.

Following text version of above code, change the object type code as per your requirement.

if (document.getElementById('_MBcrmFormPrint') != null)
{
document.getElementById('_MBcrmFormPrint').action = ' openStdWin(prependOrgName("/_forms/print/print.aspx?objectType=4210&id=" + crmForm.ObjectId + "&title=" + CrmEncodeDecode.CrmUrlEncode(parent.document.title))); ';
}

Hope this helps!!

Note: – This is unsupported change so please make sure you take necessary back up before doing this change.

Cheers,
MayankP 🙂

Advertisements

CRM 4.0 Adding Marketing List Member issue

Issues description

Recently we started getting following error while adding data marketing list member.
“There is a problem communication with the Microsoft Dynamics CRM server. The server might be unavailable”.

Solution

After few trial and error found that this error is coming because some of the record owner (System users) are disabled so if you select only records owned by enabled user then this works fine…

Hope this helps…

Regards,
MayankP:)

Dynamic CRM : Troubleshooting methods for any CRM issue

While working with CRM sometimes we get following exception screen with this message, which means there is some exception or issue on this operation.

An error has occurred
Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solution or contact your organisation’s Microsoft Dynamics CRM Administrator. Finally you can contact Microsoft Support.

Following methods will help you crack down the real cause of this exception or error.

Method 1: Check the Event Log

 Log in to CRM and reproduce the error
 Go to CRM Application server -> Run – > Type eventvwr
 And check application event log and find the relevant log and this will have actual exception details regarding this problem.

Method 2: Enable Development Errors on CRM Web site

 On the Microsoft CRM Web server, navigate to \ (typically C:\Inetpub\wwwroot\ or C:\Program Files\Microsoft Dynamics CRM\CRMWeb)
 Open the Web.config file.
 Look for the DevErrors key, and change its value to On.
 Save the Web.config file.
 Login to CRM and reproduce error and you will screen which will give actual error (as shown below)

Method 3: Enable Tracing on CRM Server

 Download CRM diagnostic tool
 Run this tool on CRM Application server and enable the tracing (alternatively you can enable trace as mentioned in this kb article http://support.microsoft.com/kb/907490)
 Login to CRM and reproduce error
 Disabled the tracing
 Go to tracing folder and open log file and locate the exception related to your operation.

Of course after finding actual cause of the exception solution will really different for each exception but above troubleshooting method will help you get in to right direction to fix any dynamic CRM issue.

Hope this helps…

Regards,
MayankP 🙂

One or more of the option value for the pick list are not in the range of the allowed values

We started getting following error in Dynamics CRM when converting phone call to opportunity last week.

“One or more of the option value for the pick list are not in the range of the allowed values”

image

We used to get the problem only when we select the option to close the relevant campaign response only.

Cause
After carefully looking and customization done over the last week or so we found that we have modified the Campaign Response Channel type code pick list and we have removed the value “Phone (value – 2) “

So Dynamics CRM when converting phone call to opportunity looks for channel type code with value 2 and since it is not able to find that value and it was throwing this error.

Solution
We exported the customization for this entity and open customization and modified the pick list option to add this phone call value again.

The reason you can not able do this CRM is that it will not allow you add new pick list value with values lesser than 200000 because CRM reserves pick list option till 20000 for future updates and other language pack but as we know the trick now (of course unsupported) to modify the xml.

Once we have added the value this option back and imported and publish the customization then it started working again…:)

CRM 4.0 Java Script “Error: Access is denied”

If you have written Fetch Xml code using Java script then there would be case when specific user will get the following error

“This page is accessing information that is not under its control. Thos poses a security risk. Do you want to continue?

Case Page

And then if user continues it gets following error

Case Page

Potential Solution:
 Click on Tools in the Internet Explorer tool bar menu and
 Then select Internet Options from the drop down.
 Now click the Security tab and then click the “Custom Level” button.
 Once this is open scroll down until you see the “Access data sources across domains” setting and set the radial button to enable.
 Click the OK button followed by the Apply button to save the settings

Hope this helps