The ConnectionString property has not been initialized

for the line:adapter.Fill(datatable)this is for Visual Studio 2013here is the complete code:Public Class ClientsRelation
Private Sub ClientsRelation_Load(sender As Object, e As EventArgs) Handles MyBase.Load
TextBox1.Select()
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim result As DialogResult
result = MessageBox.Show("Sure you Wanna Close ?", "Close?", MessageBoxButtons.YesNo)
If result = System.Windows.Forms.DialogResult.Yes Then
Me.Close()
End If
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim IDNumber As Integer
Dim datatable As New DataTable
If (Me.TextBox1.Text = "") Then
MsgBox("ID Number cannot be in blank", MsgBoxStyle.Critical, "Alert")
Me.TextBox1.Select()
Else
IDNumber = Val(Me.TextBox1.Text)
cmd.CommandType = CommandType.Text
cmd.Connection = con
End If
Using con
Dim adapter As New OleDb.OleDbDataAdapter("Select Clients.IDNumber, Clients.FirstName, Clients.LastName, Clients.Telephone, Clients.Email, Cars.VIN, Cars.ClientIDNumber, Cars.Make, Cars.Model, Cars.Color From Clients Inner Join Cars On Clients.IDNumber = Cars.ClientIDNumber Where IDNumber = " & TextBox1.Text & "", con) adapter.Fill(datatable)
End Using
If datatable.Rows.Count = 0 Then
MsgBox("ID Number Not Found, Please Try Again", MsgBoxStyle.Critical, "Alert")
Else
Me.DataGridView1.DataSource = datatable
End If
End Sub
End Class
how do i fix this error?

Also, you probably don't want to have it in a Using block if it is declared at the module level like that because it will get disposed and then you can't resuse it so it defeats the purpose of putting it in a module (which really isn't necessary
anyway - better to put it in the using statement and end then connection when you are done with it).
Reed Kimble - "When you do things right, people won't be sure you've done anything at all"
this form is part of like 20 other forms. i call the con.open at the start of the first form when it loads and i then i con.close when i exit the program. this way the connection is open the whole time for all the forms.

Similar Messages

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

  • ExecuteReader:CommandText  property has not been initialized

    Hi,
    In my program, rptViewer is the object of class ReportViewer.
    When control goes to the line rptViewer.ShowDialog(), then it displays the system massage on sap that "ExecuteReader:CommandText  property has not been initialized". Please tell me the solution to remove this message.
    Regards
    Nisha

    Hi Nisha,
    The ReportViewer object is a .NET object from Microsoft and not part of the SBO SDK.
    Try reviewing the ReportViewer samples from Microsoft and compare them to your own code. The samples can be found here:
    http://www.microsoft.com/downloads/details.aspx?familyid=F38F7037-B0D1-47A3-8063-66AF555D13D9&displaylang=en
    Kind Regards,
    Owen

  • System.InvalidOperationException: ExecuteNonQuery: Connection Property Has Not Been Initialized

    Why is my connection not being initialized?  It seems to me in my syntax I set it up as it should be.  How can I get around this so the connection will be initialized?  I am needing to have a re-usable function as the database parameter needs
    to be passed into the connection string.
    public static void DoSomething_Click()
    string database = "1234";
    OleDbConneciton olc = new OleDbConnection(AccessConnection(database));
    olc.Open();
    try
    OleDbCommand command = new OleDbCommand();
    command.CommandText = ATS;
    command.CommandType = CommandType.Text;
    command.ExecuteNonuery();
    command.Dispose();
    catch (Exception wtf) { Messagebox.show(wtf.ToString()); }
    private static string AccessConnection(string database)
    return string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:\\Test\\{0}.mdb", database);

    You've set up a connection, and a command, but you didn't associate the two. The command you have set up needs to know what connection to use. You haven't set that up.
    command.Connection = olc;

  • Exception calling "ExecuteNonQuery" with "0" argument(s): "CommandText property has not been initialized.

    I have CSV file  which has sdimiler  data I am inserting those  date to desinated table and while executing this  query mentioned below I get error mentioned in TITLE
    insert into SU_EDIT_DETAIL(EDIT_FUNCTION, TABLE_FUNCTION, CODE_FUNCTION, CODE_TYPE,CODE_BEGIN, CODE_END, EXCLUDE, INCLUDE_X, OP_NBR, TRANSCODE, VOID, YMDEFF, YMDEND, YMDTRANS)"
    select  $($line."EDIT_FUNCTION"),($line."TABLE_FUNCTION"), ($line."CODE_FUNCTION"),'DIAG', ($line."CODE_BEGIN"), ($line."CODE_END"),' ',' ',' ','MIS', 'C',' ',20141001, 99991231, 20131120 
    from dual where not exists(select * from SU_EDIT_DETAIL where (EDIT_FUNCTION = ($line."EDIT_FUNCTION") and TABLE_FUNCTION = ($line."TABLE_FUNCTION")
    and CODE_BEGIN= ($line."CODE_BEGIN") 
    and CODE_END= ($line."CODE_END")));
    commit;
    Vijay Patel

    This SQL appears to be Oracle PL/SQL.  You may want to post in the Oracle forum.  If you are habving issues with the ADO.NET objects then you need to supply more of your code.
    ¯\_(ツ)_/¯

  • 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

  • "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>

  • Csom error The property or field 'LoginName' 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 get the value of project owner the error is occured
    The property or field 'LoginName' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
    vijay

    Hi Vijay,
    The owner details are not loaded by default when you load all projects.
    You have to make sure the details of the project owner are loaded before you can access them:
    foreach (PublishedProject pubProj in projContext.Projects){
    User owner = pubProj.Owner;
    projContext.Load(owner);
    projContext.ExecuteQuery();
    Console.WriteLine(owner.LoginName);

  • ADFC-00025: The ADF controller has not been successfully initialized.

    I am using JDeveloper 11.1.2.0.0, create a simple ADF face page, which is running fine in Inetgrated Weblogic server, and package it as a War file by using Jdeveloper, I chose Weblogic 10.3 as the target server. I deployed the War file to Weblogic managed server on the Unix box by using its console. The deployment is fine and the web application is active. I get ControllerException when I run the page. Please see the exception log. I don't know what goes wrong. Thank you very much for your help.
    [ServletContext@20496013[app:TestDeployServer module:TestDeployServer.war path:/TestDeployServer spec-version:2.5]] Servlet failed with Exception oracle.adf.controller.ControllerException: ADFC-00025: The ADF controller has not been successfully initialized. at oracle.adfinternal.controller.util.Utils.createAndLogControllerException(Utils.java:212) at oracle.adfinternal.controller.application.AdfcAppInitializer.initialize(AdfcAppInitializer.java:110) at oracle.adfinternal.controller.state.AdfcContext.initialize(AdfcContext.java:93) at oracle.adfinternal.controller.state.AdfcContext.initialize(AdfcContext.java:79) at oracle.adfinternal.controller.application.WindowLifecycleLogic.windowOpened(WindowLifecycleLogic.java:60) at oracle.adfinternal.controller.application.AdfcWindowLifecycleListener.windowOpened(AdfcWindowLifecycleListener.java:61) at oracle.adfinternal.controller.application.AdfcWindowLifecycleListener.processWindowLifecylce(AdfcWindowLifecycleListener.java:42) at oracle.adfinternal.view.faces.webapp.rich.RichWindowManagerFactory$ApplicationWindowListeners.processWindowLifecylce(RichWindowManagerFactory.java:246) at oracle.adfinternal.view.faces.webapp.rich.RichWindowManager._fireWindowLifecycleEvent(RichWindowManager.java:496) at oracle.adfinternal.view.faces.webapp.rich.RichWindowManager._handleWindowOpened(RichWindowManager.java:536) at oracle.adfinternal.view.faces.webapp.rich.RichWindowManager.renderLoopbackPage(RichWindowManager.java:907) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:109) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    You asked this question in a wrong forum. You should have asked it in {forum:id=83} because the question is related to ADF Faces but not to WebLogic.
    ADF Faces application cannot be deployed as a WAR. You should deploy the application as EAR because ADF Faces applications need some resources which are deployed as part of EAR (e.g. some OPSS configuration filles, some ADF configuration files, JDBC DataSources, etc.).
    Dimitar

  • 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

  • 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

  • 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 license key library has not been initialized yet.

    Hello Experts,
    I just recently installed the SAP ABAP Preview Edition and after getting my license key I tried installing it via transaction SLICENSE. Now, I clicked on new licenses button then from there I clicked on 'INSTALL'. Then it prompted me to load the text file containing the license key. But when I clicked ok the error 'The license key library has not been initialized yet.' appeared. Whats the solution for this? hope you could help me out here guys. Thank you and take care!

    Hello,
    Could you check the following parameters in your profile file (default in c:\SAP\NSP\SYS\profile\NSP_DVEBMSGS00_<HOSTNAME>):
    [code]
    ssf/ssfapi_lib = $(DIR_CT_RUN)\sapsecu.dll
    sec/libsapsecu = $(DIR_CT_RUN)\sapsecu.dll
    check whether '\' exists here ^
    [/code]
    If the backslashes are missing, add them, restart the ABAP application server and try to install the license file again.
    Kind regards,
    Klaus

  • The license key library has not been initialized yet." message.

    Hello you ABAP guys knows everything (amost).
    I am facing problems with licensing the ECC6.0 server. I got a file via e-mail. when trying to install it via "new license" I browse for file sent to me by SAP.
    When trying to install it I get the "The license key library has not been initialized yet." message.
    I tried to find relevant note. The most close note is note 982056  saying to look in trace file (which I do not find).
    i adjusted sec/libsapsecu , ssf/ssfapi_lib and ssf/name parameters and restarted the server but the problem persisted.
    What to do?

    Hi ! I am having the same problem .
    I wanted to extend the demo license of the NSP the first time. When trying to import the license file nsp.txt under transaction SLICENSE, I am getting the message that the license key library has not been initialized yet.
    Could anyone please help ?

  • 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

Maybe you are looking for