Dynamics CRM 2011 to 2013 upgrade blocked: "web resource contains a reference to the 2007 web service endpoint"

We have a deployment of Dynamics CRM 4.0 which we are upgrading to CRM 2016.  We have set up a virtual machine each for CRM 2011, 2013, 2015 and 2016 (with all but 2016 being temporary).  We have it working successfully in CRM 2011 by backing up the SQL database, restoring, then importing the organization in Deployment Manager.

However, when following the same procedure on the 2013 we have the following error, which blocks the import:

"The JavaScript web resources in your system contain a reference to the Microsoft Dynamics CRM 4.0 (2007) Web service endpoint. The 2007 endpoints are not supported in this release. For information about how to upgrade custom code, refer to the Microsoft Dynamics CRM 2011 SDK topic "Upgrade Your Code from Microsoft Dynamics CRM 4.0 to Microsoft Dynamics CRM".
We have detected the presence of legacy component(s) during upgrade, these components are not supported in Dynamics CRM 2013. Please refer to upgrade log file ...\Microsoft\MSCRM\Logs\LegacyFeatureCheck.xml for more information.."

The LegacyFeatureCheck.xml log shows "Web resource serviceappointment_ribbon.js contains a reference to the 2007 web service endpoint".

This resource is no longer required, as far as we know - so we could either fix it, or remove it.  The people who programmed this in CRM 4.0 have left the company.

How can we either fix the error, or remove the resource so that it no longer blocks the upgrade?  We have no knowledge of CRM programming.

Thanks in advance!
LVL 2
David HaycoxConsultant EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Feridun KadirPrincipal ConsultantCommented:
If you are sure that it is not needed then you can remove it in the customizaions area. Go to Settings, Customizations, Customize the System and in the new window that opens, navigate to Web Resources on the left hand side and then look for the one you need to remove. Highlight it and then click Delete on the command bar above.

You might get a dependency error when you click delete, in which further investigation will be needed as to where the web resource is used. To discover this, highlight the web resource and then click Show Dependencies on the command bar.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David HaycoxConsultant EngineerAuthor Commented:
Thanks!  That's great, I'll give it a try.  Now that I know where to look though, what's required to update the code to work with CRM 2013 and beyond?  Here's the content for the resource:
function Mscrm_Isv_serviceappointment_Form_Group0_Control0_1(){

   var activityid = crmForm.ObjectId;

   var serverUrl = "/mscrmservices/2006";


   var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

   //alert(serverUrl+ "/crmservice.asmx");

   xmlhttp.open("POST", serverUrl + "/crmservice.asmx", false);

   xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8")

   xmlhttp.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/crm/2006/WebServices/Execute")

   xmlhttp.send("<?xml version='1.0' encoding='utf-8'?>"+"\n\n"+"<soap:Envelope"+

   ' xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"'+

   ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'+

   ' xmlns:xsd="http://www.w3.org/2001/XMLSchema">'+

   ' <soap:Body>' +

   ' <Request xsi:type="SetStateServiceAppointmentRequest"'+

   ' xmlns="http://schemas.microsoft.com/crm/2006/WebServices"> '+

   ' <EntityId>' + activityid + '</EntityId>'+

   ' <ServiceAppointmentState>Open</ServiceAppointmentState>'+

   ' <ServiceAppointmentStatus>1</ServiceAppointmentStatus>'+

   ' </Request>'+

   ' </soap:Body>'+

   ' </soap:Envelope>')

   var result = xmlhttp.responseXML.xml;

   if (result.indexOf('faultcode') < 0) {
    
    window.location.reload();    

   } else {

    alert(result);

   } 

  }

Open in new window

0
David HaycoxConsultant EngineerAuthor Commented:
Ah, actually it doesn't let me delete it because of a dependency, and we don't want to delete that one.  Can we perhaps edit the dependency ("Service Activity", type: entity, state: managed) to remove the troublesome web resource?
0
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Feridun KadirPrincipal ConsultantCommented:
No you don't want to delete service activity, in fact you can't.  If you really don't need the web resource you could just remove all the code in the function. between the first { and the last } so you are left with:

function Mscrm_Isv_serviceappointment_Form_Group0_Control0_1(){
   
  }

Open in new window


It's a bit difficult to advise how to update the function without knowing more about what it is supposed to do.

The correct thing to do in time is to work out how to remove the dependency from the Service Activity - I think that might need someone to look at your server.

If you can post the dependency message window, that might provide a clue.
0
David HaycoxConsultant EngineerAuthor Commented:
This doesn't say very much, does it help?

CRM dependency error
0
Feridun KadirPrincipal ConsultantCommented:
No, but it does tell me that that the web resource is linked to one of the buttons on the ribbon for the Service Activity form.
0
David HaycoxConsultant EngineerAuthor Commented:
So should I try to do something with this button?  In any case I've amended the web resource as you suggested and will attempt the import to 2013 once more.
0
Feridun KadirPrincipal ConsultantCommented:
Yes, I think so - but that's probably a bit too complicated to resolve here.

Don't forget to publish after making the change to the web resource.
0
David HaycoxConsultant EngineerAuthor Commented:
Fair enough.  Yes, I published the web resource.  It'll be a while now before I know if that's helped, as the database is 85GB and takes over an hour to back up and restore (that's the next job: tidy up the database). Thanks!
0
Feridun KadirPrincipal ConsultantCommented:
Yes, 85G is quite large.

It looks like you are in the UK, can you say where abouts you are located?  I'm in NW Essex.
0
David HaycoxConsultant EngineerAuthor Commented:
Yes indeed: Telford, Shropshire.
0
David HaycoxConsultant EngineerAuthor Commented:
Editing the code for the web resource as instructed removed the block to upgrade from 2011 to 2013.  Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Dynamics

From novice to tech pro — start learning today.