Adding custom webpart throwing Javascript error -The collection has not been initialized.

Hi,
I created a Javascript CSOM visual webpart and added to page. In the IE developer tools console, I am getting an error as below:
"SCRIPT5022: 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.
SP.Runtime.js, line 2 character 35853".
My code is as below:
<script type="text/javascript" src="../../_layouts/15/MicrosoftAjax.js"></script>
<script type="text/javascript" src="../../_layouts/15/SP.Runtime.js"></script>
<script type="text/javascript" src="../_layouts/15/sp.js"></script>
<script type="text/javascript" src="../_layouts/15/sp.ui.controls.js"></script>
<script type="text/javascript" src="/_layouts/15/test/Scripts/jquery-1.8.2.js"></script>
<script type="text/javascript" src="/_layouts/15/test/Scripts/Rotator.js"></script>
<script type="text/javascript" src="/_layouts/15/test/Scripts/bjqs-1.3.js"></script>
<link rel="stylesheet" type="text/css" href="/_layouts/15/test/CSS/bjqs.css" />
<SharePoint:FormDigest ID="FormDigestRotator" runat="server">
</SharePoint:FormDigest>
<div id="banner-fade">
<ul id="carousel" class="bjqs">
</ul>
</div>
// In Rotator.js
$(document).ready(function () {
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', loadConfigData);
function loadConfigData() {
var clientcontext = new SP.ClientContext.get_current();
var oweb = clientcontext.get_site().get_rootWeb();
var olist = oweb.get_lists().getByTitle("LibName");
var configquery = SP.CamlQuery.createAllItemsQuery();
Allpictures = olist.getItems(configquery);
clientcontext.load(Allpictures, 'Include(Title,ImgSubURL)');
clientcontext.executeQueryAsync(Function.createDelegate(this, this.Configsuccess), Function.createDelegate(this, this.Configfailed));
How to fix this javascript error? Due to this, the "Check-in" option is not working.
Update: i believe the error is with "executeQueryAsync". How to fix this?
Thanks

Hi,
I suggest you create a simple demo first, once it works, then add other customization into your project gradually. It will be easier to composite the correct code.
Please apply the code below in your project for a try:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
_spBodyOnLoadFunctionNames.push("callCSOM");
var clientContext;
var website;
var str="";
// Make sure the SharePoint script file 'sp.js' is loaded before your
// code runs.
function callCSOM()
//alert("call");
$("#Button1").click(function()
ExecuteOrDelayUntilScriptLoaded(sharePointReady, "sp.js");
// Create an instance of the current context.
function sharePointReady() {
clientContext = SP.ClientContext.get_current();
website = clientContext.get_web();
clientContext.load(website);
clientContext.executeQueryAsync(onRequestSucceeded, onRequestFailed);
function onRequestSucceeded() {
str="website.get_title(): "+website.get_title();
alert(str);
function onRequestFailed(sender, args) {
alert('Error: ' + args.get_message());
</script>
<input id="Button1" type="button" value="Run Code"/>
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support

Similar Messages

  • SCRIPT5022: 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.

    Hi,
    i have a simple javascript which throws me the following error:
    SCRIPT5022: 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.
    I am using it under O365 inside an Content Editor WebPart. I have a list called "myTestList" with several items and one column called "points". I want to retrieve only the items which
    i have created and sum the points to show it inside a div. This is my code.
    <div id="myPoints" style="font-size: 50px;">0​</div>
    <script language="javascript" type="text/javascript">
    SP.SOD.executeOrDelayUntilScriptLoaded(retrieveMyItems, "sp.js");
    function retrieveMyItems() {
    var clientContext = new SP.ClientContext.get_current();
    var oList = clientContext.get_web().get_lists().getByTitle('myTestList');
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name='Author' /><Value Type='Integer'><UserID /></Value></Eq></Where></Query></View>");
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem, 'Include(points)');
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onMyItemsQuerySucceeded), Function.createDelegate(this, this.onMyItemsQueryFailed));
    function onMyItemsQuerySucceeded(sender, args) {
    var listItemInfo = 0;
    var listItemEnumerator = collListItem.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var oListItem = listItemEnumerator.get_current();
    listItemInfo = listItemInfo + parseInt(oListItem.get_item('points'));
    var div = document.getElementById("myPoints");
    div.innerHTML = listItemInfo;
    function onMyItemsQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>​
    Whats wrong here?
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    Solved!
    The set_viewXml line must be:
    camlQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name='Author' /><Value Type='Integer'><UserID Type='Integer'/></Value></Eq></Query></Where></View>");
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

  • 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

    hi sir,
    I have try to update task assignments using csom model.
     erro message ::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
     foreach (PublishedAssignment assignItem in item.Assignments)
                                Guid id =assignItem.Id;
                               cc.Load(assignItem, a => a.Resource,a=>a.PercentWorkComplete);
                               cc.ExecuteQuery();
                               EnterpriseResource er = cc.EnterpriseResources.GetByGuid(assignItem.Resource.Id);
                               cc.Load(item.Assignments,c=>c.Where(uu=>uu.Id==id).IncludeWithDefaultProperties( l=> l.Task.Assignments,l=>l.Work));
                               cc.ExecuteQuery();
                               er.Assignments.Single(ll => ll.Id == id).Work = "9";
                               cc.Load(er);
                               cc.ExecuteQuery();
                               StatusAssignmentCollection sac = er.Assignments;
                               sac.Update();
                               sac.SubmitAllStatusUpdates("hello vijay");
    vijay

    Hi Vijay,
    You didn't load the 'er.Assignments' collection.
    Make sure it's loaded and it should work
    Hope this helps

  • ESB Error: Designtime cache has not been initialized

    Hi,
    I get following error when trying to deploy the ESB or even try to open the ESB Control:
    Designtime cache has not been initialized Please look in logs for following signs of failure. Fix them and restart. (a) Database access errors (b) ESB Bootstrap errors (c) OC4J class load errors (d) Product installation errors (e) Export ESB params and verify if host and port parameters are correct. Please contact Oracle Support if unable to fix the issue.
    Does any one knows what the problem is ? I tried restarting the Application server many times but this problem is not solved...

    Hi,
    First things I would check :
    - check connectivity between SOA and Dehydration DB
    - check if DB and DB listener are running
    - check in esb_parameter table from ORAESB schema if DT_OC4J_HOST and DT_OC4J_PORT point to the machine where ESB-DT is running
    - if you made a recent upgrade - have you also upgraded the DB schemas for esb and bpel ?
    Hope it helps
    Mihai

  • -18370 error, scc system has not been initialized

    Hi,
    I'm getting the error in the subject when choosing the menu source control/scc provider options.  I am using perforce, and I have a workspace open with projects and files.  Also, when going to configure/station options/source control, I do not see perforce in the drop down menu.  Is there perhaps a module I missed when installing teststand?  I know I've used this in the past but stopped when I realized the directories in the workspace were not auto-populating, limiting it's usefulness.  I went back to using P4V.  But now I am using a workspace for deploying teststand and would like to get source control working again.  Any ideas?
    Thanks
    David J.
    Solved!
    Go to Solution.

    Hi,
    I found this link: http://maillist.perforce.com/perforce/downloads/component.html
    From TestStand help: TestStand integrates with any SCC system that supports the Microsoft SCC interface. 
    The Visual Studio SCC plug-in should work.
    Thanks,
    Jim

  • The deployment has not been installed.

    hi am trying to instal jstl library in my WebLogic Server Version: 10.3.6.0,am geting this error
    The deployment has not been installed.
    Message icon - Error weblogic.management.ManagementException: [Deployer:149105]An attempt was made to deploy a library located at 'C:\Oracle\weblogic\user_projects\domains\base_domain\servers\AdminServer\upload\jstl-1.2.war' with name 'jstl 1.2.' that is different from the one specified in the manifest of the library: 'jstl'.
    but i have put diffirent name ,and when i put jstl name it say the name already exist i what to install  jstl 1.2 and jstl 1.1.2 it it possible

    For installing your application choose "Install this deployment as an application" option in Install Application Assistant window.

  • The ConnectionString property has not been initialized random error

    Hi,
    Can someone please help me?
    I randomly get an error when running my website:
    The ConnectionString property has not been initialized.
    First time I run the web page it works. Second time it fails. Is this got anything to do with static methods?
    This is my code in DAL layer:
    ConStrings.cs
    public class ConStrings
    /// </summary>
    public static string PizzaDeliveryConnectionString
    get
    // get from PL web.config
    string myconnectionString = ConfigurationManager.ConnectionStrings["PizzaDeliveryConnectionString"].ConnectionString;
    return myconnectionString;
    public static SqlConnection GetPizzaDeliveryConnection()
    return new SqlConnection(PizzaDeliveryConnectionString);
    DLCustomer.cs
    public class DLCustomer
    static SqlConnection connString = DL.ConStrings.GetPizzaDeliveryConnection();
    public static DataSet GetCustomerByPhoneNumber(string phonenumber)//static is good for returing data from db
    DataSet ds = null;
    ds = new DataSet();
    try
    using (var connection = connString)//using doesn't require connection closed
    connection.Open();
    using (SqlCommand cmd = new SqlCommand("GetCustomerByPhoneNumber", connection))
    cmd.Connection = connection;
    cmd.CommandType = System.Data.CommandType.StoredProcedure;
    cmd.Parameters.AddWithValue("@phonenumber", phonenumber);
    using (SqlDataAdapter da = new SqlDataAdapter(cmd))
    da.Fill(ds, "CustomersTable");
    return ds;
    catch (SqlException ex)
    return ds;
    BUSINESS LAYER
    Customer.cs
    public class Customer
    private string phonenumber;
    private DL.DLCustomer customerData;
    public int CustomerId { get; set; }
    public string CustomerName { get; set; }
    public String PhoneNumber
    get
    return this.phonenumber;
    set
    this.phonenumber = value;
    if (this.PhoneNumber == "")
    throw new Exception("Please provide Tel ...");
    public Customer () // Default Constructor
    //An instance of the Data access layer!
    customerData = new DL.DLCustomer();
    /// Function Find customer. Calls the
    /// function in Data layer.
    /// It returns the details of the customer using
    /// customer ID via a Dataset to GUI tier.
    /// </SUMMARY>
    public static DataSet GetCustomerByPhoneNumber(Customer customer)
    if (customer.phonenumber == "")
    throw new Exception("Please provide phonenumber to search");
    DataSet data = null;
    data = DL.DLCustomer.GetCustomerByPhoneNumber(customer.phonenumber);
    return data;
    Presentation layer
    protected void btnOrder_Click(object sender, EventArgs e)
    Customer customer = new Customer();
    //string dt = Request.Form[txtDate.UniqueID];
    customer.PhoneNumber = txtPhoneNumber.Text;
    // ClassLibrary1.DbFunc1.GetCustomerByPhoneNumber(customer) ;
    rptCustomers.DataSource = Customer.GetCustomerByPhoneNumber(customer);
    rptCustomers.DataBind();
    web.config
    <configuration>
    <connectionStrings>
    <add name="PizzaDeliveryConnectionString" connectionString="Data Source=mycomp;Initial Catalog=PizzaDelivery;Integrated Security=True" providerName="System.Data.SqlClient" />
    </connectionStrings>

    Hi
    collie12,
    Since you develop in web page. Please try to use
    System.Web.Configuration.WebConfigurationManager.ConnectionStrings["YouConnStringName"].ConnectionString;
    This requires references to System.Configuration.dll and System.Web.dll.
    WebConfigurationManager.ConnectionStrings Property gets the Web site's connection strings.
    Please also try to remove your static keyWords, it will have an effect on "using" statement.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HELP - Receiving error message "The file has not been processed. An error has occurred which stopped the processing of the PDF"

    Have been using Adobe CreatePDF for many months successfully.
    Only recently over the past few days I have been experiencing errors for periods between 3-5 hours on every attempt to convert/combine files. The error reads: "The file has not been processed. An error has occurred which stopped the processing of the PDF"
    It will stay like this and no amount of refreshing the cache, logging in and out will help. I'm running Firefox 34.0.5, windows 7 64bit. Only solution I've found is to wait until the next day and it seems to be working again. Only explanation i can think of is some unexplained maintenance adobe is running behind the scenes because I'm often working late between 12am - 4am.
    When this problem happens, no file types will convert/combine I've tested JPEG, PDF and word docs to PDF.
    I log in and out of my account, I've cleared my cache, I'm using Firefox 34.0.5 which has always worked in the past I just don't understand how this error is happening for such long periods. Starting to reconsider this product when there are free alternatives to simply combine my PDF docs! please help.
    Tom.

    I am still experiencing this problem. Customer service from Adobe has been abysmal!
    I called Adobe tech support at 2am Australian time ( >1 weeks ago) and got onto a help centre in India. I was walked through all the troubleshooting steps and they remotely accessed my PC and confirmed that It was not my PC that was at fault. They reset my password and dialed into my adobe account from their end to attempt a simple conversion and export to PDF which failed. I was told that this problem is not something they can fix, and is a result of something on the back end of their software.
    They advised me that the problem would be passed to a fixed within 12 hours and they would call and email me to confirm everything was OK. I gave my phone number with (area and country code) my email but have not had any communication back.
    I am extremely dissatisfied, and just want this software to function. Is that too much to ask?
    Note: This problem is happening always now, regardless of time being used.
    Tom

  • Kernel upgrade error:The license key library has not been initialized yet.

    We have updated the Solution manager with EHP1 kernel with latest patch55.<br>
    Operating system platform:OS/400.<br>
    We are getting error :The license key library has not been initialized yet.<br>
    We have gone through Note 982056(The license key library has not been<br>
    initialized yet) but after application restart we still are facing problem.<br>
    Also with old kernel(Patch 32) our system is working fine.<br>
    For SAP Router we need to do the kernel Upgrade.<br>
    Work process log:<br>
    *******************************************************************************************************************<br>
    ERROR => DlLoadLib()==DLENOACCESS - dlopen("/usr/sap/S01/SYS/exe/run/libsapcrypto.o") FAILED<br>
      "Could not load module /usr/sap/S01/SYS/exe/run/libsapcrypto.o.<br>
    Additional errors occurred but are not reported."  (errno=2,No such file or directory) [dlux.c       445]<br>
    N  *** ERROR => <br>
    ===...could not load SSF library /usr/sap/S01/SYS/exe/run/libsapcrypto.o .<br>
    The market place does not show any patch for SAP Crypto Library. To include the file libsapcrypto.o in ibm system i.<br>
    Regards,
    Prasad

    Hi Thomas,<br>
    I have applied the SAP Cryptographic Library IBM AIX for RS6000/Power mentioned in the note on system i.<br>
    The following changes are made:<br>
    In the instance profile,
    as4/ADDLIBPATH = /usr/sap/... is added.<br>
    ssf/name=SAPSECULIB<br>
    ssf/ssfapi_lib=<SAP Cryptographic software directory>/libsapcrypto.o<br>
    sec/libsapsecu=<SAP Cryptographic software directory>/libsapcrypto.o<br>
    I am facing similar error with directory run_sec
    Error log:
    ERROR => DlLoadLib()==DLENOACCESS - dlopen("/usr/sap/S01/SYS/exe/run_sec/libsapcrypto.o") FAILED<br>
      "Could not load module /usr/sap/S01/SYS/exe/run_sec/libsapcrypto.o.<br>
    Additional errors occurred but are not reported."  (errno=2,No such file or directory) [dlux.c       445]<br>
    N  *** ERROR => <br>
    ===...could not load SSF library /usr/sap/S01/SYS/exe/run_sec/libsapcrypto.o .<br>
    Regards,
    Prasad

  • "The property or field has not been initialized" Error, when debbuging app

    Hello,
    I'm  following the instructions of a dev book but I get the following error message when debugging the app.
    "The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested."
    The code:
    var collListItems;
    $(document).ready(function () {
    getConfigValues();
    function getConfigValues() {
    var context = SP.ClientContext.get_current();
    var configList = context.get_web().get_lists().getByTitle('Configuration Values');
    var camlQuery = new SP.CamlQuery();
    collListItems = configList.getItems(camlQuery);
    context.load(collListItems);
    context.executeQueryAsync(onGetConfigValuesSuccess, onGetConfigValuesFail);
    function onGetConfigValuesSuccess() {
    var OrgLogoUrl;
    var OrgName;
    var listItemEnumerator = collListItems.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var oListItem = listItemEnumerator.get_current();
    var current = oListItem.get_item('Title');
    switch (current) {
    case 'OrganizationName':
    OrgName = oListItem.get_item('Value');
    break;
    case 'OrganizationLogoUrl':
    OrgLogoUrl = oListItem.get_item('Value');
    break;
    if (OrgName && OrgName.length > 0) {
    $('#DeltaPlaceHolderPageTitleInTitleArea').html(OrgName);
    $('.ms-siteicon-img').attr('title', OrgName);
    if (OrgLogoUrl && OrgLogoUrl.length > 0)
    $('.ms-siteicon-img').attr('src', OrgLogoUrl);
    else
    $('.ms-siteicon-img').attr('src', '../Images/AppLogo.png');
    function onGetConfigValuesFail(sender, args) {
    alert('Failed to get the Configuration Values. Error:' + args.get_message());
    What it have to do is to replace the Title and Site logo, using the "Title" and "Value" fields of the "Configuration Values" list.
    My dev environment: SharePoint online, Azure, VS2013 Ultimate (trial)
    I've tried to reach the author of the book but it's being 4 days and no response, maybe somebody here can help me.
    Thanks in advance.
    Jimmy

    Jaydeep, I don't get the values, see the HTML code below.
    <%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~masterurl/default.master" Language="C#" %>
    <%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%-- The markup and script in the following Content element will be placed in the <head> of the page --%>
    <asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
    <script type="text/javascript" src="/_layouts/15/sp.js"></script>
    <!-- Add your CSS styles to the following file -->
    <link rel="Stylesheet" type="text/css" href="../Content/App.css" />
    <!-- Add your JavaScript to the following file -->
    <script type="text/javascript" src="../Scripts/App.js"></script>
    </asp:Content>
    <%-- The markup in the following Content element will be placed in the TitleArea of the page --%>
    <asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    KA Online Klas
    </asp:Content>
    <%-- The markup and script in the following Content element will be placed in the <body> of the page --%>
    <asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div id="menu">
    <ul>
    <li><a href="../Lists/Configuration Values">Site Configuration</a></li>
    <li><a href="../Lists/Site Assets">Site Assets</a></li>
    </ul>
    </div>
    </asp:Content>

  • Restlet Error "The server has not found anything matching the request URI"

    I want to serve some static html pages along with my restlet services from the same app ( running in Tomcat )
    Here is my web.xml
    <?xml version="1.0" encoding="UTF-8"?> 
    <web-app id="WebApp_ID" version="2.4" 
                xmlns="http://java.sun.com/xml/ns/j2ee" 
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
                     http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> 
       <display-name>first steps servlet</display-name> 
       <!-- Application class name --> 
       <context-param> 
          <param-name>org.restlet.application</param-name> 
          <param-value> 
             firstSteps.FirstStepsApplication 
          </param-value> 
       </context-param> 
       <!-- Restlet adapter --> 
       <servlet> 
          <servlet-name>RestletServlet</servlet-name> 
          <servlet-class> 
             org.restlet.ext.servlet.ServerServlet 
          </servlet-class> 
       </servlet> 
       <!-- Catch all requests --> 
       <servlet-mapping> 
          <servlet-name>RestletServlet</servlet-name> 
          <url-pattern>/*</url-pattern> 
       </servlet-mapping> 
    </web-app>
    Here is my Application router class
    public class FirstStepsApplication extends Application
         @Override
         public synchronized Restlet createInboundRoot()
              Router router = new Router(getContext());
              // Defines only one route
              router.attach("/hello", HelloWorldResource.class);
              router.attach("/login", LoginResource.class);
              router.attach("/", BasicResource.class);
              return router;
    }I've gone back to the basic first steps example.
    It works fine if the url pattern is <url-pattern>/*</url-pattern>
    localhost/rest/login returns a string from my LoginResource, same too for /hello
    However a static html page I have /Mypage.html does not get returned when I enter the URL /MyPage.html
    However, if I then modify the url pattern to be
    <url-pattern>/login</url-pattern>
    and then enter the url /MyPage.html I will get the html page.
    But ...... I get the error "The server has not found anything matching the request URI" when I enter the url /login which worked ok the first case.
    What must I do in order for both Restlet & Static HTML resources to work together?
    Thanks ... J

    yes, basicResource is my own class. It's a catch all for restlet requests that don't match any of the other ones. It just returns String = "My catch all resource"
    Because you highlighted it I decided to try and remove it from my Restlet Router. Presto, it now works, the login & hello requests are serviced by my Restlet resources and the MyPage.html requests are served the mypage.html file. This now brings another question. If from my servlet mapping in web.xml all urls are to be handled by restlet "/*", how then does a mypage.html request not get serviced by my restlet? Seems to be just passed through the restlet framework when there is no router to match it? what do you think?

  • Error during project server 2013 The property or field 'StartDate' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

    Hi sir,
    when I have try to fetch the value of project start date and finish date and some other field value , I have recived error message like The property or field 'StartDate' has not been initialized. It has not been requested or the request has not been
    executed. It may need to be explicitly requested.
    I have used client context for project server 2013.
    I have also load and execute query.but fail to resolve it Please suggest me and provide solution.
    vijay

    Hi,    
    If you use the Include<TSource> Method in the Load method, we will retrieve only the ids of items in this query, so
    the listItems.ListItemCollectionPosition will not be initialized.
    You can use the <ViewFields> tag in CAML Query to specify the field values to return with each item instead.
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to solve the "procedure has not been executed or has no result" error

    Recently we are getting the "procedure has not been executed or has no result" error while executing Procedures and Dynamic SQL queries in our PowerBuilder 12.5 Application. Can anyone  diagnose the cause of such error messages? Better still can someone help us in finding the resolution for this issue?
    Thanks in advance!

    The Database is SQL Server. Here follows the error details:
    ERROR Code: -1
    ERROR Text: procedure has not been executed or has no result
    Row Count:  0
    Terminating application-
    I am not even sure if the error is from Database or from Powerbuilder itself. The code is a simple call to a procedure:
    DECLARE setRequestStatus PROCEDURE FOR sRequestStatus
            // parameters here
    USING SQLCA;
    EXECUTE setRequestStatus;

  • An error occurred while reconnecting...The local device name is already in use. The connection has not been restored.

    Hi, 
    So I have 2 PC's and I sign with the same credentials. I have a hard drive which I decided to share. In the setting I created permissions for the user credentials of both vcomputers and have full control access.
    Basically, everytime I open my laptop after and it wakes up and try to connect to the network drive, I get the error
    An error occurred while reconnecting...The local device name is already in use. The connection has not been restored.
    I need to stay disconnecting all drives and reconnecting them. WHen I restart my PC the network drives restore perfectly. I don't understand why it doesnt work on wake.
    Any ideas?

    It seems that when a machine goes into sleep, the network connection is disconnected, naturally, but the  machine still has the connection mapped. If  you run the 'net use' you will see the connection. When you try to reconnect it, it sees the
    connection and gives you the error.
    I do not know if you can directly modify this behavior. However, as a work around, you could build a simple script like:
    net use 'connection' /delete ( write it into a text file and save it has a .bat file.)
    Use scheduled tasks to have the script run right before the machine goes into sleep. You can do so by setting the task to RUN ON Event: event 42 for the KERNEL_POWER source.
    You can see http://superuser.com/questions/679195/run-a-script-when-hibernating-windows-8 for more info .

  • Error: A transactionid has not been specified in the URL

    Hi,
    While working on some of the OA Framework forms, I noticed that we get the Error:A transactionid has not been specified in the URL.
    The error is not reproduced everytime, but comes only once in a while. If I want to see the message, it does not come. But at times (may be 1 in 25) it shows.
    The complete Error Stack is below:
    Exception Details.
    oracle.apps.fnd.framework.OAException: A transactionid has not been specified in the URL
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1227)
         at oracle.apps.fnd.framework.webui.OAPageBean.handleExceptionInFinalizeRequest(OAPageBean.java:4029)
         at oracle.apps.fnd.framework.webui.OAPageBean.finalizeRequest(OAPageBean.java:3993)
         at oa_html._XxtmgShMobile._jspService(_XxtmgShMobile.java:129)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: A transactionid has not been specified in the URL
         at oracle.apps.fnd.framework.webui.OAJSPHelper.getTransactionId(OAJSPHelper.java:328)
         at oracle.apps.fnd.framework.webui.OAHttpSessionCookieImpl.deleteValue(OAHttpSessionCookieImpl.java:827)
         at oracle.apps.fnd.framework.webui.OAHttpSessionCookieImpl.releaseApplicationModule(OAHttpSessionCookieImpl.java:526)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:584)
         at oracle.apps.fnd.framework.webui.OAPageBean.releaseRootApplicationModule(OAPageBean.java:5350)
         at oracle.apps.fnd.framework.webui.OAPageContextImpl.performReleaseApplicationModule(OAPageContextImpl.java:2490)
         at oracle.apps.fnd.framework.webui.OAPageContextImpl.performReleaseRootApplicationModule(OAPageContextImpl.java:2438)
         at oracle.apps.fnd.framework.webui.OAPageBean.performReleaseApplicationModules(OAPageBean.java:4102)
         at oracle.apps.fnd.framework.webui.OAPageBean.finalizeRequest(OAPageBean.java:3894)
         at oa_html._XxtmgShMobile._jspService(_XxtmgShMobile.java:129)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: A transactionid has not been specified in the URL
         at oracle.apps.fnd.framework.webui.OAJSPHelper.getTransactionId(OAJSPHelper.java:328)
         at oracle.apps.fnd.framework.webui.OAHttpSessionCookieImpl.deleteValue(OAHttpSessionCookieImpl.java:827)
         at oracle.apps.fnd.framework.webui.OAHttpSessionCookieImpl.releaseApplicationModule(OAHttpSessionCookieImpl.java:526)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:584)
         at oracle.apps.fnd.framework.webui.OAPageBean.releaseRootApplicationModule(OAPageBean.java:5350)
         at oracle.apps.fnd.framework.webui.OAPageContextImpl.performReleaseApplicationModule(OAPageContextImpl.java:2490)
         at oracle.apps.fnd.framework.webui.OAPageContextImpl.performReleaseRootApplicationModule(OAPageContextImpl.java:2438)
         at oracle.apps.fnd.framework.webui.OAPageBean.performReleaseApplicationModules(OAPageBean.java:4102)
         at oracle.apps.fnd.framework.webui.OAPageBean.finalizeRequest(OAPageBean.java:3894)
         at oa_html._XxtmgShMobile._jspService(_XxtmgShMobile.java:129)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    Please help me out in resolving this puzzle.
    Thanks
    Sumit

    Sumit,
    As far i understand Tapash is absolutely rite this is due to session time out!
    In fact, the Page errors out only partially. If I continue with my transaction (clicking a button or executing a query) there is no problem. This error i have viewed sometimes too... at various places!
    if you continue ur transaction works fine... this is probably due to ur click transactions independent of sessions are invoked. Just give a try... to increase session duration.... i m not sure how this can be done.... but probably u should in this direction!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Batch Processing .doc 2 .pdf with Acrobat 8 Pro and Office 2004 on Tiger

    I have been through the forum posts and for each relavent thread there is the easy batch process that can be done to solve this issue - however, the major flaw I have is (as seen in the attachment) no option to be able to open Word docs. How do I ena

  • Creating DB2 data source in weblogic 9.2

    Hello, Steps how to create DB2 data source in weblogic 9.2 especially what driver to use for the same.

  • SQLJ calling PL/SQL with records and tables as parameters

    Has anyone used sqlj to to call procedures with records and tables as IN, OUT, or INOUT as parameters? If so how do you assign values to the IN parameter in the record/tables, and get values out of the record/table when it is passed back? Might anyon

  • Photos from iPod on Computer

    Hi everyone, I´m having problems getting my pictures from my iPod onto my computer! Is it possible to get them back? Or will I loose them forever if I update my iPod nano? Because I have pics on my iPod which I don´t have on my computer or anywhere e

  • Can't access my website on MY computer; other computers okay...

    I have my own domain name thru Go Daddy and publish using iweb. Other computers can access my updated website, but when I try to see my website on my computer, I am asked to log in using my .mac name and password. When I do that, it then says: "Not F