Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

CRM 2011 ODATA call returning HTTP 404 Error on Premise

$
0
0

The following Data Request is issue via ODATA protocol in our Development and Test environment

the call execute find in our Test Environment but have problem in Development and Production.

The customerBuld is a lookup field.

var customerLookUp = Xrm.Page.getAttribute("carter_customerbuid").getValue();
  var customerBuld = customerLookUp[0].id.toString();

guid == {5F000000-CA76-E211-9645-02215E88AFFF}

javascript statement

    var ODataPath = serverUrl + "/XRMServices/2011/OrganizationData.svc" + "/" + EntityName + "Set?$filter= carter_businessunitmaintenanceId eq guid'" + customerBuld + "'&select=carter_Account,carter_brands,carter_market,carter_BusinessUnit/Id";

 var Service = new XMLHttpRequest();

    /********************* Filter Using Lookup Id **************************/
        Service.open("GET", ODataPath, false);
    //
    /********************* Filter Using Lookup Id **************************/

    Service.setRequestHeader("Accept", "application/json");
    Service.setRequestHeader("Content-Type", "application/json; charset=utf-8");
    Service.send(null);

if (Service.status == 200) {
            var RetrieveService = eval('(' + Service.responseText + ')');
            var RetrieveServiceD = RetrieveService.d;
            var chslocation;
            var LengthCount = RetrieveServiceD.results.length;

           // This area is where the retrieve data is process
            
        }
        else {
            alert("Error in retrieving the Marketer legal Address.Please try again.");
        }

 

HTTP:

 GET /DEVXRM/XRMServices/2011/OrganizationData.svc/carter_businessunitmaintenanceSet?

$filter=%20carter_businessunitmaintenanceId%20eq%20guid'{5F000000-CA76-E211-9645-02215E88AFFF}'&select=carter_Account,carter_brands,carter_market,carter_BusinessUnit/Id HTTP/1.1

ISSUE:

IN the Development environment  a HTTP 404 error is generated.

The Development environment is configure with HTTP Authentication

Failure:

IN  the Test environment the desire Data Request info is return in the XMLHTTP Service Call

The Test environment is configure with HTTPS  Authentication

Success:

What technique would you use to find a ROOT CAUSE for this Behavior?

Thank you  for any assistance.

CRM Carter 

 


Viewing all articles
Browse latest Browse all 55831

Trending Articles



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