locked
Record outside the valid range RRS feed

  • Question

  • The value of crmp_businessclassopportunitytype on record of type crmp_opportunitysnapshot is outside the valid range.

    This is the error that I am getting in crm 4.0.There is no plug in written for the custom entity opportunity snapshot just a small javascript code written at the enabled onload event.

    Please let me know how to proceed.how to resolve the issue.

    Saturday, January 18, 2014 8:38 AM

Answers

  • I have found the answer to the question.there were two tables mapped to each other.one field had 5 values in the dropdown list and the other had only 4.this was the issue.thatswhy it said that values outside the range
    • Marked as answer by Bachchan11 Thursday, January 23, 2014 9:00 AM
    Thursday, January 23, 2014 9:00 AM

All replies

  • This is the javascript code

    //Checkbox style Multi-Select Picklist
    // PL - the picklist attribute; PLV - used to save selected picklist values
    var PL = crmForm.all.crmp_approvalsforanopportunity;
    var PLV = crmForm.all.crmp_approvalsselected;

    if (PL != null && PLV != null)
    {
      PL.style.display = "none";
      PLV.style.display = "none";

      // Create a DIV container
      var addDiv = document.createElement("<div style='overflow-y:auto; height:100px; border:1px #6699cc solid; background-color:#ffffff;' />");
      PL.parentNode.appendChild(addDiv);

      // Initialise checkbox controls
      for (var i = 1; i < PL.options.length; i++)
      {
        var pOption = PL.options[i];
        if (!IsChecked(pOption.text))
          var addInput = document.createElement("<input type='checkbox' style='border:none; width:25px; align:left;' />");
        else
          var addInput = document.createElement("<input type='checkbox' checked='checked' style='border:none; width:25px; align:left;' />");

        var addLabel = document.createElement("<label />");
        addLabel.innerText = pOption.text;

        var addBr = document.createElement("<br />"); //it's a 'br' flag

        PL.nextSibling.appendChild(addInput);
        PL.nextSibling.appendChild(addLabel);
        PL.nextSibling.appendChild(addBr);
      }

      // Check if it is selected
      function IsChecked(pText)
      {
        if (PLV.value != "")
        {
          var PLVT = PLV.value.split("||");
          for (var i = 0; i < PLVT.length; i++)
          {
            if (PLVT[i] == pText)
              return true;
          }
        }
        return false;
      }
    }

    Saturday, January 18, 2014 8:45 AM
  • I have found the answer to the question.there were two tables mapped to each other.one field had 5 values in the dropdown list and the other had only 4.this was the issue.thatswhy it said that values outside the range
    • Marked as answer by Bachchan11 Thursday, January 23, 2014 9:00 AM
    Thursday, January 23, 2014 9:00 AM