none
Error in sp.runtime.js file RRS feed

  • Question

  • Hi 

    When i am executing my code i am getting the below error, i have no idea why i am getting this error and how get rid of it

    The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

    File: sp.runtime.js, Line: 2, Column: 23256

    below is a shadow of my code

    ///////////////////

    function onSucceededCallback1(sender, args) { 

    alert("10");

    var enumerator1 = returnedItems1.getEnumerator();   
    var l1= document.getElementById('L1').innerHTML;  

    var i=1;
    var listItem1='';

    alert("enumerator1  ="+ enumerator1);
    alert("listItem1 ="+ listItem1);

    while (enumerator1.moveNext()) 
    {   
    listItem1 = enumerator1.get_current();
    .

    .

    /////////////////////////////////////


    Thanks

    Paru

    Monday, August 8, 2016 2:32 PM

Answers

  • Hey Paru,

    Check this link

    http://sharepoint.stackexchange.com/questions/118278/error-the-collection-has-not-been-initialized


    Please remember to click 'Mark as Answer' on the answer if it helps you

    Monday, August 8, 2016 7:57 PM

All replies

  • Hey Paru,

    Check this link

    http://sharepoint.stackexchange.com/questions/118278/error-the-collection-has-not-been-initialized


    Please remember to click 'Mark as Answer' on the answer if it helps you

    Monday, August 8, 2016 7:57 PM
  • Hi Paru,

    I am checking to see how things are going there on this issue.

    It would be very appreciated if you can provide the whole code for reproducing the issue.

    Best Regards,

    Victoria


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Thursday, August 11, 2016 2:28 AM
    Moderator