JCO - Model Data connection null

Hi Guys,
We have a load of 300 concurrent users using 3 adaptive rfc models froma web dynpro project.
I have set up both JCO Modeldata Destination and RFC Metadata Destination. .For Modeldata Destination, I set up as Message Server.
JCo Pool Configuration  (default settings)
Maximal Pool Size : 5
Maximum Connections: 10
Connection Timeout (msec.): 10
Maximum Waiting Time (msec.): 30
Logon Group: XXXX
User Authentication: Ticket
SNC: OFF
I set up my RFC Metadata Dest as Application Server, User Authetication: Userid/Password.
(This configuration is suggested by a lot SDN experienced fellows as best practice)
Also I disconnect the connections immediately after execution in the finally block using
wdContext.<your model element>().modelObject().modelInstance().disconnectIfAlive();
But I get the below error after around 100 users logon and run the application.
com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null
I can see from my back end R/3 and also in the web dynpro console the connections still alive  for users and accumulating ..so wondering whats the use of disconnectIfAlive.
I thought Maximum Connections of 10 in jco pool modeldata should suffice as this is for each usnique and not the total.Am I right here.
Is there any other settings where I need to  specify that a maximum of around 400 logon is expected
and jco pool configured accordingly? Also how to close the pool connections immediately when not in use..
Please advise what I should do to solve this problem.
Thanks.
Ashok

Hi Ashok,
Why are using three models is there any specific buisness purpose or is it resuable?
Every model consumes one connection.
Look at page no. 38 of this document for optimising the use of JCOs in webdynpro
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/705f2b2e-e77d-2b10-de8a-95f37f4c7022
What is the value of gw/max_conn in your R/3. This decides how many connections is allowed in the backend.
http://help.sap.com/saphelp_nw04/helpdata/en/80/ee67f9591c442b98b6c81059fb552d/frameset.htm
/people/sunil.ojha5/blog/2008/02/08/rfc-quota-part-2
Look at page no. 8 of this document for setting gw/max_conn
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9d1b49ff-0701-0010-53ba-ab1d66794419
Maximum value for gw/max_conn is 2000. Try to set some value below this.
Best Wishes
Idhaya R

Similar Messages

  • JCO - Model Data Destination connection is broken from time to time

    Hi, SDN Fellows.
    I have set up both JCO Modeldata Destination and RFC Metadata Destination. For Modeldata Destination, I set up as Message Server.
    JCo Pool Configuration
    Maximal Pool Size :  5
    Maximum Connections: 10 
    Connection Timeout (msec.): 10 
    Maximum Waiting Time (msec.): 30
    Logon Group: Public
    User Authentication: Ticket
    SNC: OFF
    I set up my RFC Metadata Dest as Application Server, User Authetication: Userid/Password.
    (This configuration is suggested by a lot SDN experienced fellows as best practice)
    From time to time, I am getting this error when I run my Web Dynpro application in the portal.
    <i>Could not create JCOClientConnection for logical System: XXX_WD_MODELDATA_DEST - Model: class com.lenovo.model.locid.ZIBP_RFC_GET_LOCIDS. Please assure that you have configured the RFC connections and/or logical system name properly for this model!</i>
    Sometimes, I have to increase the JCo Pool Configuration: like
    Maximal Pool Size :  5 to 20
    Maximum Connections: 10  to 50
    Connection Timeout (msec.): 10  to 50
    Maximum Waiting Time (msec.): 30 to 60
    to solve the problem.
    Sometimes, I need to restart the server node to "clear the JCO caches and the running JCO instances.
    From the WDJ development, I have combined all the 10-12 adaptive JCO MODELs to one MODEL to reduce the JCO connections.
    But I still not able to nail down the actual cause of the problems.
    I am currently in the Dev environment with less users. I am just worry that things get worse if we move to Prod which have higher users activities on the WDJ application.
    Please advise what I should do to solve this problem. 
    Thanks.
    Kent

    Hi Kent,
    you can do two steps here:
    1. If you havent already done so - please close the model connection from your code after execution of each BAPI. Close the connection with code like below:
    wdContext.<your model element>().modelObject().modelInstance().disconnectIfAlive();
    this will ensure that there is no hanging connection even for a single moment.
    2: Go though the documents am listing below. We need to understand these JCo destination's connection pool settings. Increasing the connection pool numbers without understanding will increase the problem rather decreasing it.
    See
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/guertler/how%20to%20configure%20the%20jco%20destination%20settings.pdf">THIS</a> Help file here. An excellent one.
    Also see
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de">RFC DOs & DONTs</a>
    First link I provided should be immensely helpful in calculating the connection numbers for your application. But it has to be calculated by you only as other wont understand your application and its usage better than you.
    Hope it helps!!!
    Shubhadip

  • Failed JCO destination name 'WD_RFC_METADATA_DEST'    and MODEL DATA

    Hi Friends
    I am created "WD_RFC_METADATA_DEST". this meta data.When i am created this metadata i was called message server as technical system of CRM server.
    means i am created metadata for CRM System
    Once metadata had complted then i was cheing click on "Text"
    Here it display this error message
    Model Data test
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=ecc15 GROUP=PUBLIC R3NAME=E15 MSSERV=sapmsE15 PCS=1 ERROR       Group PUBLIC not found TIME        Fri Feb 19 01:12:26 2010 RELEASE     700 COMPONENT   LG VERSION     5 RC          -6 MODULE      lgxx.c LINE        4299 DETAIL      LgIGroupX COUNTER     1
    Meta data test
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=ecc15 GROUP=PUBLIC R3NAME=E15 MSSERV=sapmsE15 PCS=1 ERROR       Group PUBLIC not found TIME        Fri Feb 19 01:13:19 2010 RELEASE     700 COMPONENT   LG VERSION     5 RC          -6 MODULE      lgxx.c LINE        4299 DETAIL      LgIGroupX COUNTER     1
    What is problem. i m not getting can u tell me how slove this problem.
    Regards
    Vijay Kalluri

    Hi Vijay,
    You need check following thing to resolve this issue.
    1. Check the your host file entries for CRM System (Start>Run>enter 'drivers'>etc>hosts)
    2. Check SLD test is successfull or not.
    3. As per your error message group PUBLIC not found. Check in the CRM system (T-code : SMLG) whether PUBLIC group is available or not.
    Then check JCO destination parameter again and test it.
    Hope this will helps you.
    Thanks
    Arun

  • Jco connection :null

    Hi sap gurus
    I am using rfc  connection for executing bapi using some jco connections. but if  the jco are being used for one time it is being executed . but when we deploy application another time . the exception is received as dynamicrfcexecution error jco connection:null.
    when we change the poolsize it is being . the rfc is executed  for only one time.
    please suggest a way to close jco connections . if already present.
    Thanks & Regards
    prasad

    hi , logon mechanism  while creating the JCO Destinations.
    Is  Logon Ticket
    This is code what iam using for rfc access
    Zhr_Emp_List_Input input = new Zhr_Emp_List_Input();
              wdContext.nodeZhr_Emp_List_Input().bind(input); 
         wdContext.nodeZhr_Emp_List_Input().currentZhr_Emp_List_InputElement().setPernr("10" );
              try {
                   wdContext.nodeZhr_Emp_List_Input().currentZhr_Emp_List_InputElement().modelObject().execute();
                   wdContext.nodeOutput().invalidate();
              } catch (WDDynamicRFCExecuteException e) {
                   wdComponentAPI.getMessageManager().reportSuccess(e.toString());
                                  // TODO Auto-generated catch block
                   e.printStackTrace();
              }finally {          
         wdContext.currentZhr_Emp_List_InputElement().modelObject().modelInstance().disconnectIfAlive();  
    for the above code where  Zhr_Emp_List_Input  is the rfc . which will return employee details when we set the Pernr(personal number) to rfc
    the exception is
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null
    for only one time the rfc is executing . for the other time if we increase the pool size or change the whole jco references for webdynprojava application . we are able to execute the application

  • How describe model data and  get select in DB throw topLink.

    Hello,
    I have table from code
    create table t_tree
    id int primary key,
    parent_id int,
    value varchar2(255)
    Alter table t_tree
    add constraint constr_id_parent foreign key (parent_id) references t_tree (id)
    I must get query
    select level as lv,lpad('-@-', (level-1)*2)||value as MMM, t.* from t_tree t
    connect by prior id=parent_id
    start with T.PARENT_ID is null
    How describe model data and get select in DB throw topLink.
    Dema.

    So you'll probably have to write a function which uses dynamic SQL to retrieve the desired message text, like this untested one:
    CREATE OR REPLACE FUNCTION get_msg(p_db IN VARCHAR2,
                                       p_id IN NUMBER)
       RETURN VARCHAR2
    IS
       msg_txt  VARCHAR2(4000);
    BEGIN
       -- make sure p_db is a valid database link ...
       EXECUTE IMMEDIATE 'SELECT d_msg FROM msg@' || p_db || ' WHERE t_id = :id' INTO msg_txt USING p_id;
       RETURN msg_txt;
    EXCEPTION
       WHEN NO_DATA_FOUND THEN
          RETURN NULL;
    END get_msg;
    /The you can update likeUPDATE mex
       SET t_msg = get_msg(db_id, t_id);Hth, Urs

  • Connection ==null and Connection is closed, difference

    Hi experts,
    I wonder what are the differences between "Connection==null" and "Connection is closed"?
    I closed a connection on one JSP page after a bean has retrieved data. Then, on the same page I call another bean to connect to the database. Because the Connection object has been created earlier, therefore Connection is not NULL, but it is closed. So, the second bean has to initiate another connection(if I knew how to test the "closed" status)
    Is it true that if the Connection is closed, then it should become null?
    I think I must have make quite a few mistakes in above statement:). Please help. Thanks a lot.

    connection.isClosed() will tell you if the connection object is closed or not. If it is closed, then the connection object can be dropped because you will not be able to create any new statements from that connection object. Just recreate another connection to use when this occurs.

  • WSDL Data connection not working - SAP Interactive Forms(Adobe Based)

    Greetings,
    I am trying to explore the features of Adobe based forms in SAP (WAS 6.4) and have been trying to create an interactive form.
    I am trying to use the WSDL file Data Connection but with no success. This is what I have been doing, starting with a blank form in the "Layout" tab,
       - In the "Data View", created a "New Data Connection".
       - Selected "WSDL file" Option.
       - Browsed to and selected the desired WSDL file.
       - Selected the WebService Option listed (Only one in my case).
    The WebService in this case is programed to "Request" two numbers and "Response" back the sum. (This was just for trial).
    - The connection subsequently appeared in the "Data View".
       - Expanded the "Request" and "Response" trees and dragged the elements to the "Body Page" screen.
       - Dragged the Data Connection Button to the screen.
       - On the Properties of the Button, Went to the "Object" tab and then to the "Execute" tab.
       - Checked "Re-Merge Form Data" and Run at "Client and Server"
       - Generated the PDF Preview
       - On the preview, entered the values for the "Requested" fields and clicked the button. It displays the error message "Couldn't post data to ".
    This was my long story, but with this background, what I want to know is:
       - How do i get it to work, I expected to see the sum in the field.
       - What is meant by running at "Client or Server".
    We do use a proxy server to connect to the Internet.
    As a bottom line, I intend to make an interactive form with which I can display real-time transactional data on the form from our R/3 46C server based on a user input on the form itself (eg: PO info on entering of PO number on the form output itself)
    Best Regards,
    Sanyam Kapur

    Hi Sanyam,
    Looking for messages with zero reply I have found yours.
    Even if it is some time ago, when you posted the message, I would like to give some hints here:
    Web Dynpro does not allow to access data coming directly from a Web Service and display it within a pdf file. You need to create a Web Service modell first. Then you would bind the InteractiveForm property to the context and the data can be shown.
    Hope that helps.
    Best regards,
    Karin

  • Unable to find data source null [Caused by: jdbc/Apps1DataSource not found]

    Hi,
    I am using OA Adapter which listens to an EBiz HRMS event, and I am encountering the following error in $Home\j2ee\oc4j_soa\log\oc4j_soa_default_group_1\oc4j\log.xml while registering the ESB service.
    Error details:
    <MSG_TEXT>Failed to process control event for Service "DefaultSystem.SyncWorkerPartyEbizOAAdapter" due to an error while adding the Service! Reason : oracle.tip.esb.server.common.exceptions.BusinessEventFatalException: An unhandled exception has been thrown in the ESB system. The exception reported is: "ORABPEL-12517
    AdapterFrameworkImpl::endpointActivation - Endpoint Activation Error.
    The Resource Adapter Oracle Applications Resource Adapter was unable to activate the endpoint oracle.tip.adapter.apps.AppsWFBesQueueDequeueActivationSpec:{MessageSelectorRule=tab.user_data.event_name = 'oracle.apps.per.api.person.update_person', QueueName=WF_BPEL_Q, Consumer=ORA_6krj2dpn70s36c1g6h1k8dhi8h, DatabaseSchema=APPS, AppsEventSchema=ANY_SCHEMA} due to the following reason: javax.resource.ResourceException: Unable to find data source null Caused by: jdbc/Apps1DataSource not found
    Please correct the reported issue and redeploy the BPEL process.
         at oracle.tip.adapter.fw.jca.AdapterFrameworkImpl.endpointActivation(AdapterFrameworkImpl.java:566)
         at oracle.tip.esb.server.service.impl.inadapter.ESBActivationAgent.activateInboundJcaEndpoint(ESBActivationAgent.java:390)
         at oracle.tip.esb.server.service.impl.inadapter.ESBActivationAgent.performEndpointActivation(ESBActivationAgent.java:306)
         at oracle.tip.esb.server.service.impl.inadapter.ESBActivationAgent.activateEndpoint(ESBActivationAgent.java:236)
         at oracle.tip.esb.server.service.impl.inadapter.ESBActivationAgent.activateEndpoint(ESBActivationAgent.java:209)
         at oracle.tip.esb.server.service.impl.inadapter.InboundAdapterService.activateEndpoint(InboundAdapterService.java:177)
         at oracle.tip.esb.server.service.impl.inadapter.InboundAdapterService.activateService(InboundAdapterService.java:119)
         at oracle.tip.esb.server.service.EsbServiceFactory.activateEsbService(EsbServiceFactory.java:222)
         at oracle.tip.esb.server.service.EsbServiceFactory.addEsbService(EsbServiceFactory.java:240)
         at oracle.tip.esb.server.common.RuntimeESBSystem.addService(RuntimeESBSystem.java:211)
         at oracle.tip.esb.common.system.ServiceEventsHandler.handleCreateService(ServiceEventsHandler.java:72)
         at oracle.tip.esb.common.system.MetadataChangeListener.handleServiceEvent(MetadataChangeListener.java:136)
         at oracle.tip.esb.common.system.MetadataChangeListener.onMetadataChange(MetadataChangeListener.java:85)
         at oracle.tip.esb.common.control.ControlMessageHandler.handleMessage(ControlMessageHandler.java:115)
         at oracle.tip.esb.server.dispatch.agent.ESBWork.process(ESBWork.java:162)
         at oracle.tip.esb.server.dispatch.agent.ESBWork.run(ESBWork.java:120)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: Unable to find data source null
         at oracle.tip.adapter.apps.AppsManagedConnectionFactory.getDataSourceConnection(AppsManagedConnectionFactory.java:411)
         at oracle.tip.adapter.apps.AppsManagedConnectionFactory.getConnection(AppsManagedConnectionFactory.java:288)
         at oracle.tip.adapter.apps.AppsManagedConnection.getConnection(AppsManagedConnection.java:85)
         at oracle.tip.adapter.apps.AppsConnection.getJdbcConnection(AppsConnection.java:70)
         at oracle_tip_adapter_apps_AppsConnection_Proxy.getJdbcConnection()
         at oracle.tip.adapter.aq.database.MessageReader.establishDBconnection(MessageReader.java:358)
         at oracle.tip.adapter.aq.database.MessageReader.&lt;init>(MessageReader.java:265)
         at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.init(AQActivationSpecDequeuer.java:142)
         at oracle.tip.adapter.aq.AQEndpoint.&lt;init>(AQEndpoint.java:99)
         at oracle.tip.adapter.aq.AQResourceAdapter.endpointActivation(AQResourceAdapter.java:73)
         at oracle.tip.adapter.apps.AppsResourceAdapter.endpointActivation(AppsResourceAdapter.java:147)
         at oracle.tip.adapter.fw.jca.AdapterFrameworkImpl.endpointActivation(AdapterFrameworkImpl.java:541)
         ... 20 more
    Caused by: javax.naming.NameNotFoundException: jdbc/Apps1DataSource not found
         at com.evermind.server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
         at com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:257)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:197)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at oracle.tip.adapter.apps.AppsManagedConnectionFactory.getDataSourceConnection(AppsManagedConnectionFactory.java:408)
         ... 31 more
    </MSG_TEXT>
    I have added the connection properties in $Home\j2ee\oc4j_soa\application-deployments\defaul\oc4j-ra.xml as follows:
    <connector-factory location="eis/Apps/apps1" connector-name="Oracle Applications Adapter">
         <config-property name="xADataSourceName" value="jdbc/AIADataSource"/>
         <config-property name="dataSourceName" value=""/>
         <connection-pooling use="none">
         </connection-pooling>
         <security-config use="none">
         </security-config>
    </connector-factory>
    Please correct me if the connection properties are wrong.
    I tried AppsEventSchema with 'NO-SCHEMA' and 'ANY-SCHEMA' also.
    If I use File Adapter I was able to register the ESB and instances were created successfully.
    My versions:
    JDEV:      10.1.3.3.0
    SOA:     10.1.3.3.0
    I have done a lot of research on this but in vain. Is there any patch for rectifying this error?
    Help me on this issue pl.
    Regards
    RK

    You need to check your datasource name jdbc/AIADataSource
    Check out your data-sources.xml to make sure you didn't mistype it.

  • Data connection error to analysis services via unattended account after configure kerberos

    Hi, I setup connection to SASS from dashboard designer using Unattended Account, and everything was fine. Then I started to configure connection with Kerberos using Per-user Identity authentication, and after long customization it started to work. But in
    the same time Unattended Account authentication stopped working.
    From dashboard designer I got error:
    PerformancePoint Services was unable to connect to "dbserver\instance". Verify that the server name is correct and that the Unattended Service Account has permission to connect to the server.
    Additional details have been logged for the administrator.
    And in SharePoint server in application log:
    The Unattended Service Account "dom\unaccount" does not have access to the following data source server.
    Data source location: http://testit/sites/adrian/Data Connections Library for PP/35_.000
    Data source name: New Data Source
    Server name: dbserver\instance
    Exception details:
    Microsoft.AnalysisServices.AdomdClient.AdomdConnectionException: Authentication failed. ---> System.ComponentModel.Win32Exception: The target principal name is incorrect
       at Microsoft.AnalysisServices.AdomdClient.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean& handshakeComplete)
       at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Authenticate(ConnectionInfo connectionInfo, DateTime startTime)
       --- End of inner exception stack trace ---
       at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Authenticate(ConnectionInfo connectionInfo, DateTime startTime)
       at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo)
       at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)
       at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetInstancePort(ConnectionInfo connectionInfo)
       at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)
       at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo)
       at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)
       at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Connect(Boolean toIXMLA)
       at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP)
       at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open()
       at Microsoft.PerformancePoint.Scorecards.DataSourceProviders.AdomdConnectionPool`1.<>c__DisplayClass4.<GetConnection>b__2()
       at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
       at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
       at Microsoft.PerformancePoint.Scorecards.DataSourceProviders.AdomdConnectionPool`1.GetConnection(String connectionString, ConnectionContext connectionCtx, String effectiveUserName, CultureInfo culture, NewConnectionHandler newConnectionHandler,
    TestConnectionHandler testConnectionHandler, String targetAppId)

    Hi Adrian,
    Sorry for misunderstanding and thanks for the additional information.
    As I searched, there are tips for your situation:
    1. of the great new features of PerformancePoint Services is that you can now select different authentication options for each data source you create rather than having to decide on one authentication model to use for each web application. 
    2.If SharePoint is configured in standalone mode Per-user Identity authentication is only supported if the data source and the application server are located on the same machine.  Kerberos constrained delegation is required to connect to a data source
    located on a separate machine from the application server in a farm deployment.
    3.Per-user Identity is only supported with Windows credentials, neither anonymous or forms login are supported.
    For more information:
    http://blogs.msdn.com/b/performancepoint/archive/2010/05/06/data-source-authentication-in-performancepoint-services-for-sharepoint-2010.aspx
    http://blogs.technet.com/b/tothesharepoint/archive/2010/06/23/performancepoint-services-troubleshooting.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Tree table is not reflecting the updated model data changes at the front end

    I have two tables ,
    1) Provider table(tree table)  2)member table
    I have implemented drag and drop functionality using jQuery UI on both tables.
    In my scenario when I drag a member from the member table and drop it on the Provider table and also when I delete an assigned member from the provider table I will update the data fetched from odata model and again I will call the method which binds the data to the provider table so that the table will reflect the changes.
    here is the code,
    on drop:
    $("#Provider tbody tr").droppable({
      drop: function(event){
           oController.AssignMember(oProviderId, oMemberId)
      }).disableSelection();
    Assign member function:   here am updating the model.
    AssignMember : function(oProviderId, oMemberId){
      var oModel = new sap.ui.model.odata.ODataModel("../../../services/provider.xsodata/", true);
      var oParameters = {};
      oParameters.PROVIDER_ID = oProviderId;
      oParameters.MEMBER_ID = oMemberId;
      oParameters.CREATED_ON = new Date();
      oModel.setHeaders({"content-type" : "application/json;charset=utf-8"});
      oModel.create( "/PROVIDERMEMBERS", oParameters, null, function() {
      var oController = sap.ui.controller("adsm.provider.member_assignment_view");
      oController.GetProviderData();
      },function(jqXHR) {
      var errorMessage = jqXHR.response.body;
      var jsondata = JSON.parse(errorMessage);
      sap.ui.commons.MessageBox.alert(jsondata.error.message.value);
    GetProviderData function: here i bind the data to the table
    GetProviderData: function(){
    var oModel = new sap.ui.model.odata.ODataModel("../../../services/provider.xsodata/", true);
    var Context = "/PROVIDERS?expand=ASSIGNEDMEMBERS&$select=NAME,ID,ASSIGNEDMEMBERS/NAME,ASSIGNEDMEMBERS/ID,ASSIGNEDMEMBERS/PROVIDER_ID";
      var oTable = sap.ui.getCore().byId("tblProviders");
      oModel.read(Context, null, null, true, onSuccess, onError);
      function onSuccess(oEventdata){
      var outputJson = {};
      var p = 0;
      var r = {};
      if (oEventdata) {
      r = oEventdata;
      try {
      if (oEventdata.d){
      r = oEventdata.d;
      } catch(e){
      //alert('oEventdata.d failed');
      try {
      if (oEventdata.d.results){
      r = oEventdata.d.results;
      } catch(e){
      //alert('oEventdata.d.results failed');
      try {
      if (oEventdata.results){
      r = oEventdata.results;
      } catch(e){
      //alert('oEventdata.results failed');
      $.each(r, function(i, j) {
      outputJson[p] = {};
      outputJson[p]["NAME"] = j.NAME;
      outputJson[p]["ID"] = j.ID;
      outputJson[p]["PROVIDER_ID"] = j.ID;
      outputJson[p]["DELETE"] = 0;
      var m = 0;
      if (j.ASSIGNEDMEMBERS.results.length > 0) {
      $.each(j.ASSIGNEDMEMBERS.results, function(a,b) {
      outputJson[p][m] = { NAME: b.NAME,
      ID : b.ID,
      PROVIDER_ID: b.PROVIDER_ID,
      DELETE: 1};
      m++;
      p++;
    var oModel = new sap.ui.model.json.JSONModel();
      oModel.setData(outputJson);
      oTable.setModel(oModel);
      function onError(oEvent){
      console.log("Error on Provider Members");
    oTable.bindRows({
      path:"/"
    Its working fine in chrome but in IE the model data gets updated but the table is not reflecting the changes at front end.Can anyone suggest me a possible solution to fix this?
    Please have a look at the attached screen shots.
    Best regards,
    Amala Suganya.

    Hi Amala,
    I think this will help you:
    Disabling Cache for CRUD/FI OData scenarios for a UI5 Application on Internet Explorer
    Kind regards,
    RW

  • Date and null problem

    Hello Techies,
    I am using mysql 5.0 and trying to inserting couple of values in to a table called books.
    CREATE TABLE books(
        book_id   INT AUTO_INCREMENT PRIMARY KEY,
        author_id INT,
        title     VARCHAR(255),
        pub_date  DATE);when i insert null values in the pub_date thru jdbc,I am getting the following exception.
    SQLExceptionIncorrect date value: 'null' for column 'pub_date' at row 1But when tried from command prompt with the following query, values are inserted into the database.
    INSERT INTO books VALUES(2, 2, "java", null);Here is my code.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Iterator;
    public class databaseTest {
         public static void main(String args[])
              Connection conn = null;
                 ArrayList  col = new ArrayList();
              //Collection  col = new ArrayList();
              try
              //DBBackupPM dd = new DBBackupPM();
                conn = getConnection();
                   col.add("1");
                   col.add("1");
                   col.add("java");
                   col.add("null");
              String query = "INSERT INTO books VALUES(?,?, ?, ?);";
              PreparedStatement ps = conn.prepareStatement(query);
              int j=0;
              for(int i =0;i<col.size();i++)
                   j++;
                   System.out.println(col.get(i).toString());
                   ps.setString(j,col.get(i).toString());
              ps.executeUpdate();
              System.out.println("Query Xcuted");
              catch (SQLException sqe) {
                   // TODO: handle exception
                   System.out.println("SQLException"+sqe.getMessage());
              System.out.println("collection size"+col.size());
              Iterator it = col.iterator();
              while(it.hasNext())
                   System.out.println("yyuy"+it.next());
         public static  Connection getConnection() {
              System.out.println("inside GetConnection()");
              Connection conn = null;
              try {
                   String driverName = "org.gjt.mm.mysql.Driver";
                   Class.forName(driverName);
                   String serverName = "localhost";
                   String mydatabase = "test";
                   String url = "jdbc:mysql://" + serverName + "/" + mydatabase +"?autoReconnect=true";
                   String username = "root";
                   String password = "xxx";
                   conn = DriverManager.getConnection(url, username, password);
                   System.out.println("connection established");
              } catch (ClassNotFoundException cnfe) {
                   // Could not find the database driver
                   System.out.println("classNotFoundExcpetion" + cnfe.getMessage());
              } catch (SQLException sqe) {
                   // Could not connect to the database
                   System.out.println("SQLException" + sqe.getMessage());
              return conn;
    }can u guys tell me why I am getting the xception .
    regards,
    krish

    public class databaseTest {
         public static void main(String args[])
              Connection conn = null;
                 ArrayList  col = new ArrayList();
              //Collection  col = new ArrayList();
              try
              //DBBackupPM dd = new DBBackupPM();
                conn = getConnection();
                   col.add("1");
                   col.add("1");
                   col.add("java");
                   col.add("null");You are not inserting a null value here. You are trying to insert the text "null" as the value for the pub_date field. That won't work because the string "null" is not a valid date. What you're actually doing is this:
    INSERT INTO books VALUES(2, 2, "java", "null");Note the quotes around "null".
    You should set the column to the value null, not to the string "null".

  • How to consume the sharepoint online Library data to Excel sheet using ODATA connection. That ODATA connection file resides in "SharePoint Online -Data Connections Library"

    I have created a OData Connection to my Library and published to SharePoint online site.
    To refresh the data, property is set like "Refresh when opening file"
    When I downloaded and open the file, the new data is consumed to me successfully because this ODF file referenced to my local computer
    If any other user downloads the file its not opening as reference file points to my local machine.
    I want to keep this ODF file in "Data connections" Library (or in any site/Library) and establish the connection to the excel sheet. so that any one can use the ODF file.
    or else any other alternative to use ODF file globally and get the SP Library data to excel ?

    Hi,
    it will use the connection in the ADF library. I recommend though that you not save database connect information in the ADF library. Instead:
    - define the ADF BC model to use JDBC data sources
    - In the ADF library, configure it to only contain the data source name
    - In the view project (the workspace) configure the database connection exposed by the library
    When the library is imported, check Application Resources --> Connections and right click on the imported connection name to configure it
    Frank

  • Unable to refresh one or more data connections in the workbook.

    Hi All,
    I'm Getting below error once i refresh all the connection in Power query.
    External Data Refresh Failed
    An error occurred while working on the Data Model in the workbook. Please try again.
    We were unable to refresh one or more data connections in this workbook.
    Please Suggest..!
    Regards,
    Bhupinder

    These data model issues can be a bit tricky to diagnose. Can you please try disabling "Load to Data Model" and then re-enabling it for the queries that are causing trouble?

  • Running out of data connections

    Problem Statement:
    Running out of data connections after some time and
    the following SQLException is thrown:
    "failed to create a data connection with any of the
    specified drivers"
    Problem Description:
    I have an application that is running under iPlanet
    6.0 on solaris using Oracle 8 and type 2 Oracle
    driver.
    The application is using a number of stateless
    session beans.
    Normally, my servlets instantiate the remote beans in
    order to make access to their interfaces. For
    example, I have a servlet that fetches all of
    the accounts for a given customer. First, The servlet
    does the fetch by calling JNDI to lookup the "home"
    interface, then does a "create" call on the home
    interface to get the "remote" interface
    (see snippets of code below, the ejbCreate()).
    Second, the servlet calls up a specific method that
    extracts the customer's accounts (see snippets of
    code below, the method getAccountList()).
    At first all seem to work well, however after some
    random time my beans start to throw the SQLException
    "failed to create a data connection with any of the
    specified drivers"
    At first I thought that I am not closing the
    connections, but all of of my connections,
    statements, and result sets, are closed
    and even set to null in a finally block as you can
    see in the snippets of code below.
    If I restart iAS, all of the connections get released
    and things look normal again till the problem
    re-occurs.
    Initially, we had this problem on SP2, so we upgraded
    to SP3 thinking that this may solve the problem,
    however the problem remained on SP3.
    Another thing, this same application works perfectly
    well on my laptop which has similar iPlanet
    configurations except that operating system is
    Windows 2000 Advanced Server, and Oracle 8.0.4.0.0.
    System Configuration:
    Following is my system configuration and related
    iPlanet 6.0 settings.
    -1- iPlanet 6.0 SP3
    -2- Type 2 Oracle driver
    -3- SunOs, sparc SUNW, Ultra-250, solaris 5.8
    -4- Oracle 8.1.6.0.0 64-bit Production
    -5- Following are the entry settings in the iPlanet
    registry under
    Software\iPlanet\Application Server\6.0\CCS0\DAE2\ORACLE_OCI
    - CacheCleanInterval = 120
    - CacheConnTimeOut = 120
    - CacheDebugMsgs = 0
    - CacheFreeSlots = 16
    - CacheInitSlots = 64
    - CacheMaxConn = 64
    - CachMaxGlobalConn = 128
    - ConnGiveUpTime = 60
    - RMThreadMax = 32
    - RMThreadMin = 0
    - RSBufferInitRows = 25
    - RSBufferMaxBufferSize = 6553600
    - RSBufferMaxRows = 100
    - RSBufferMaxSize = 32768
    - SQLDebugMsgs = 0
    Snippets of Code:
    The following snippets of code come from a stateless
    session bean and consist of a local data member, the
    ejbCreate() method, and a typical rmi method that
    does the database connection and extraction of
    related records.
    javax.sql.DataSource dataSourceObj = null;
    public void ejbCreate()
    throws java.rmi.RemoteException, javax.ejb.CreateException
    javax.naming.Context ctx = null;
    // Ensure first that the _props have been
    // successfully instantiated by the constructor.
    if (_props != null) {
    try{
    ctx = new javax.naming.InitialContext();
    }catch (Exception ex){           
         nbUtility.logError(ex,"Error while creating Initial Context !");
    try{
    // DEBUG:
    System.out.println("ejbCreate(): NB_DATASOURCE = " + props.getPropertyValue(props.NB_DATASOURCE));
    // DEBUG:
         dataSourceObj = (javax.sql.DataSource) ctx.lookup(_props.getPropertyValue(_props.NB_DATASOURCE));
    catch (Exception ex){
         ex.printStackTrace();
    if (dataSourceObj == null)
    throw new javax.ejb.CreateException("Couldn't get DataSource object from environment");
    } else {
    throw new javax.ejb.CreateException("Couldn't create the property manager: NB_CONFIG_FILE is null, empty, not set, or the file doesn't exist.");
    * Given a customer number, this method
    * returns the list of accounts that belongs to
    * this customers.
    public nbAccountList getAccountList(String CustomerNo)
    throws java.rmi.RemoteException {
    nbAccountList accountList = null;
    if ((CustomerNo != null) && (!CustomerNo.equals(""))) {
    java.sql.Connection conn = null;
    java.sql.Statement stmt = null;
    java.sql.ResultSet rset = null;
    try {
    accountList = new nbAccountList();
    String sql = "SELECT * FROM " +
    props.getPropertyValue(props.NB_DBTABLE_ACCOUNT) +
    " WHERE " +
    "(" + props.getPropertyValue(props.NB_DBFIELD_ACCOUNT_CUSTOMERNO) +
    "='" + CustomerNo + "')";
    // DEBUG:
    nbDebug.write("accounts list SQL= " + sql);
    // DEBUG:
    // Let's get the connection, the statement, and the record set.
    conn = dataSourceObj.getConnection();
    stmt = conn.createStatement();
    rset = stmt.executeQuery(sql);
    // Let's loop for each single account
    int index = 0;
    nbAccount account = null;
    while (rset.next()) {
         String AccountNo = rset.getString(_props.getPropertyValue(_props.NB_DBFIELD_ACCTPERMIS_ACCOUNTNO));
    // Instantiate an account object
    account = new nbAccount(AccountNo);
    index++;
    } catch (SQLException e) {
         nbUtility.logError(e, "SQLException while trying to get accounts data.");
    } finally {
    try {
    if (rset != null) { rset.close(); rset = null; }      
    if (stmt != null) { stmt.close(); stmt = null; }
    if (conn != null) { conn.close(); conn = null; }
    } catch (SQLException e) {
         nbUtility.logError(e, "SQLException while trying to close connection.");
    return (accountList);      
    }

    I've experienced similar problems. Unfortunately, all efforts by iPlanet
    technical support to resolve the issue have failed. (They do keep calling
    and asking if they can close the ticket for some reason)
    One thing that's totally anoying is the ksvradmin monitory crashes when I
    try to have it report any connection pool information. They verified it's a
    bug in SP3 but won't say if it's fixed in SP4 or provide an estimate.
    To date here's what I've tried (by tech support's recomendation):
    1) Configure for global transactions. (even thow I'm not using them)
    (Failed)
    2) Switch to using 3rd party driver (We were previously using native)
    (Failed)
    3) Ran report on oracle showing number of connections used during iplanet's
    failed attempt. Report from Oracle shows 2 connections open, but iPlanet is
    configured for 120.
    4) Increased the connection pool size. (I didn't know why based on the
    above info) (Increased to 300) (Failed)
    Well there's my history. We crash after about 3 days of heavy usage. I'm
    about to give up and just reset my servers each night. Will help me with
    logfile rotation of the kjs files as well.
    Rodger Ball
    Sr. Engineer
    Business Wire
    "Bilal Chouman" <[email protected]> wrote in message
    news:[email protected]...
    Problem Statement:
    Running out of data connections after some time and
    the following SQLException is thrown:
    "failed to create a data connection with any of the
    specified drivers"
    Problem Description:
    I have an application that is running under iPlanet
    6.0 on solaris using Oracle 8 and type 2 Oracle
    driver.
    The application is using a number of stateless
    session beans.
    Normally, my servlets instantiate the remote beans in
    order to make access to their interfaces. For
    example, I have a servlet that fetches all of
    the accounts for a given customer. First, The servlet
    does the fetch by calling JNDI to lookup the "home"
    interface, then does a "create" call on the home
    interface to get the "remote" interface
    (see snippets of code below, the ejbCreate()).
    Second, the servlet calls up a specific method that
    extracts the customer's accounts (see snippets of
    code below, the method getAccountList()).
    At first all seem to work well, however after some
    random time my beans start to throw the SQLException
    "failed to create a data connection with any of the
    specified drivers"
    At first I thought that I am not closing the
    connections, but all of of my connections,
    statements, and result sets, are closed
    and even set to null in a finally block as you can
    see in the snippets of code below.
    If I restart iAS, all of the connections get released
    and things look normal again till the problem
    re-occurs.
    Initially, we had this problem on SP2, so we upgraded
    to SP3 thinking that this may solve the problem,
    however the problem remained on SP3.
    Another thing, this same application works perfectly
    well on my laptop which has similar iPlanet
    configurations except that operating system is
    Windows 2000 Advanced Server, and Oracle 8.0.4.0.0.
    System Configuration:
    Following is my system configuration and related
    iPlanet 6.0 settings.
    -1- iPlanet 6.0 SP3
    -2- Type 2 Oracle driver
    -3- SunOs, sparc SUNW, Ultra-250, solaris 5.8
    -4- Oracle 8.1.6.0.0 64-bit Production
    -5- Following are the entry settings in the iPlanet
    registry under
    Software\iPlanet\Application Server\6.0\CCS0\DAE2\ORACLE_OCI
    - CacheCleanInterval = 120
    - CacheConnTimeOut = 120
    - CacheDebugMsgs = 0
    - CacheFreeSlots = 16
    - CacheInitSlots = 64
    - CacheMaxConn = 64
    - CachMaxGlobalConn = 128
    - ConnGiveUpTime = 60
    - RMThreadMax = 32
    - RMThreadMin = 0
    - RSBufferInitRows = 25
    - RSBufferMaxBufferSize = 6553600
    - RSBufferMaxRows = 100
    - RSBufferMaxSize = 32768
    - SQLDebugMsgs = 0
    Snippets of Code:
    The following snippets of code come from a stateless
    session bean and consist of a local data member, the
    ejbCreate() method, and a typical rmi method that
    does the database connection and extraction of
    related records.
    javax.sql.DataSource dataSourceObj = null;
    public void ejbCreate()
    throws java.rmi.RemoteException, javax.ejb.CreateException
    javax.naming.Context ctx = null;
    // Ensure first that the _props have been
    // successfully instantiated by the constructor.
    if (_props != null) {
    try{
    ctx = new javax.naming.InitialContext();
    }catch (Exception ex){
    nbUtility.logError(ex,"Error while creating Initial Context
    try{
    // DEBUG:
    System.out.println("ejbCreate(): NB_DATASOURCE = " +
    props.getPropertyValue(props.NB_DATASOURCE));
    // DEBUG:
    dataSourceObj = (javax.sql.DataSource)
    ctx.lookup(_props.getPropertyValue(_props.NB_DATASOURCE));
    catch (Exception ex){
    ex.printStackTrace();
    if (dataSourceObj == null)
    throw new javax.ejb.CreateException("Couldn't get DataSource
    object from environment");
    } else {
    throw new javax.ejb.CreateException("Couldn't create the
    property manager: NB_CONFIG_FILE is null, empty, not set, or thefile
    doesn't exist.");
    * Given a customer number, this method
    * returns the list of accounts that belongs to
    * this customers.
    public nbAccountList getAccountList(String CustomerNo)
    throws java.rmi.RemoteException {
    nbAccountList accountList = null;
    if ((CustomerNo != null) && (!CustomerNo.equals(""))) {
    java.sql.Connection conn = null;
    java.sql.Statement stmt = null;
    java.sql.ResultSet rset = null;
    try {
    accountList = new nbAccountList();
    String sql = "SELECT * FROM " +
    props.getPropertyValue(props.NB_DBTABLE_ACCOUNT)
    +
    " WHERE " +
    "(" +
    props.getPropertyValue(props.NB_DBFIELD_ACCOUNT_CUSTOMERNO) +
    "='" + CustomerNo + "')";
    // DEBUG:
    nbDebug.write("accounts list SQL= " + sql);
    // DEBUG:
    // Let's get the connection, the statement, and the record
    set.
    conn = dataSourceObj.getConnection();
    stmt = conn.createStatement();
    rset = stmt.executeQuery(sql);
    // Let's loop for each single account
    int index = 0;
    nbAccount account = null;
    while (rset.next()) {
    String AccountNo =
    rset.getString(_props.getPropertyValue(_props.NB_DBFIELD_ACCTPERMIS_ACCOUNTN
    O));
    >
    // Instantiate an account object
    account = new nbAccount(AccountNo);
    index++;
    } catch (SQLException e) {
    nbUtility.logError(e, "SQLException while trying to get
    accounts data.");
    } finally {
    try {
    if (rset != null) { rset.close(); rset = null; }
    if (stmt != null) { stmt.close(); stmt = null; }
    if (conn != null) { conn.close(); conn = null; }
    } catch (SQLException e) {
    nbUtility.logError(e, "SQLException while trying to close
    connection.");
    return (accountList);
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Not able to configure BDC (Business Data connectivity )service in SharePoint 2012 Using Powershell Script

    HI
    Now there is an  issue while iam running powershell script for BDC service.
    Below is the script i am using to configure BDC service.
    Param(           
        [Parameter(Mandatory=$true,ValueFromPipeline=$true)]           
        [string]$ServiceName = $null,
        [Parameter(Mandatory=$true)]           
        [string]$ServiceProxyName = $null,
        [Parameter(Mandatory=$true)]           
        [string]$AppPoolAccount = $null,
        [Parameter(Mandatory=$true)]           
        [string]$AppPoolName = $null,
        [Parameter(Mandatory=$true)]           
        [string]$DatabaseServer = $null,
        [Parameter(Mandatory=$true)]           
        [string]$DatabaseName = $null
    # check to ensure Microsoft.SharePoint.PowerShell is loaded if not using the SharePoint Management Shell
    $snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}
    if ($snapin -eq $null) {
        Write-Host "Loading SharePoint Powershell Snapin"
        Add-PSSnapin "Microsoft.SharePoint.Powershell"
    Write-Host "Successfully Sharepoint Powershell snapin Loaded"
    Write-Host "Started executing Powershell script for configuring Business Data Connectivity Service in sharepoint farm ..."
    Write-Host -ForegroundColor Yellow "Checking if Application Pool Accounts exists"
    $AppPoolAccount = Get-SPManagedAccount -Identity $AppPoolAccount -EA 0
    if($AppPoolAccount -eq $null)
    Write-Host "Please supply the password for the Service Account..."
    $AppPoolCred = Get-Credential $AppPoolAccount
    $AppPoolAccount = New-SPManagedAccount -Credential $AppPoolCred -EA 0
    Write-Host -ForegroundColor Yellow "Checking wether the Application Pool exists"
    $AppPool = Get-SPServiceApplicationPool -Identity $AppPoolName -ErrorAction SilentlyContinue
    if (!$AppPool)
    Write-Host -ForegroundColor Green "Creating Application Pool"
    $AppPool = New-SPServiceApplicationPool -Name $AppPoolName -Account $AppPoolAccount -Verbose
    Write-Host -ForegroundColor Yellow "Checking if BDC Service Application exists"
    $ServiceApplication = Get-SPServiceApplication -Name $ServiceName -ErrorAction SilentlyContinue
    if (!$ServiceApplication)
    Write-Host -ForegroundColor Green "Creating BDC Service Application"
    $ServiceApplication = New-SPBusinessDataCatalogServiceApplication –ApplicationPool $AppPool –DatabaseName $DatabaseName –DatabaseServer $DatabaseServer –Name $ServiceName
    Write-Host -ForegroundColor Yellow "Starting the BDC Service"
    #$ServiceInstance = Get-SPServiceInstance | Where-Object { $_.TypeName -like "BDC Service*" }
    #Start-SPServiceInstance $ServiceInstance
    Get-SPServiceInstance | where-object {$_.DisplayName -eq $ServiceName} | Start-SPServiceInstance > $null
    Write-Host -ForegroundColor Green "Done - BDC Service is up and running."
    Error i am getting ->
    Started executing Powershell script for configuring Business Data Connectivity S
    ervice in sharepoint farm ...
    Checking if Application Pool Accounts exists
    Checking wether the Application Pool exists
    Creating Application Pool
    VERBOSE: Leaving BeginProcessing Method of New-SPServiceApplicationPool.
    New-SPServiceApplicationPool : The trust relationship between the primary
    domain and the trusted domain failed.
    At C:\SP2013Service\BDC1.ps1:67 char:12
    + $AppPool = New-SPServiceApplicationPool -Name $AppPoolName -Account
    $AppPoolAcco ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidData: (Microsoft.Share...ApplicationPool:
       SPCmdletNewIisWebServiceApplicationPool) [New-SPServiceApplicationPool], S 
      ystemException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewIisWe
       bServiceApplicationPool
    VERBOSE: Leaving ProcessRecord Method of New-SPServiceApplicationPool.
    VERBOSE: Leaving EndProcessing Method of New-SPServiceApplicationPool.
    Checking if BDC Service Application exists
    Creating BDC Service Application
    New-SPBusinessDataCatalogServiceApplication : Cannot bind argument to
    parameter 'ApplicationPool' because it is null.
    At C:\SP2013Service\BDC1.ps1:75 char:84
    + ... pplicationPool $AppPool –DatabaseName $DatabaseName –DatabaseServer
    $DatabaseSer ...
    +                    ~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [New-SPBusinessD...viceApplicat
       ion], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
       icrosoft.SharePoint.BusinessData.SharedService.SPNewBusinessDataCatalogSer 
      viceApplication

    hi guys,
    same script i have modified with parametes,in below script i have hard corded values for parameters,and it is executing without errors.
    Below is script executing without error->
    Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
    #Settings
    $ServiceName = "BDC Service"
    $ServiceProxyName = "BDC Proxy"
    $AppPoolAccount = "DOMAIN\USERNAME"
    $AppPoolName = "BDC SP Ser App Pool"
    $DatabaseServer = "SPSQL"
    $DatabaseName = "SP2013 BDC"
    Write-Host -ForegroundColor Yellow "Checking if Application Pool Accounts exists"
    $AppPoolAccount = Get-SPManagedAccount -Identity $AppPoolAccount -EA 0
    if($AppPoolAccount -eq $null)
    Write-Host "Please supply the password for the Service Account..."
    $AppPoolCred = Get-Credential $AppPoolAccount
    $AppPoolAccount = New-SPManagedAccount -Credential $AppPoolCred -EA 0
    Write-Host -ForegroundColor Yellow "Checking wether the Application Pool exists"
    $AppPool = Get-SPServiceApplicationPool -Identity $AppPoolName -ErrorAction SilentlyContinue
    if (!$AppPool)
    Write-Host -ForegroundColor Green "Creating Application Pool"
    $AppPool = New-SPServiceApplicationPool -Name $AppPoolName -Account $AppPoolAccount -Verbose
    Write-Host -ForegroundColor Yellow "Checking if BDC Service Application exists"
    $ServiceApplication = Get-SPServiceApplication -Name $ServiceName -ErrorAction SilentlyContinue
    if (!$ServiceApplication)
    Write-Host -ForegroundColor Green "Creating BDC Service Application"
    $ServiceApplication = New-SPBusinessDataCatalogServiceApplication –ApplicationPool $AppPool –DatabaseName $DatabaseName –DatabaseServer $DatabaseServer –Name $ServiceName
    Write-Host -ForegroundColor Yellow "Starting the BDC Service"
    #$ServiceInstance = Get-SPServiceInstance | Where-Object { $_.TypeName -like "BDC Service*" }
    #Start-SPServiceInstance $ServiceInstance
    Get-SPServiceInstance | where-object {$_.DisplayName -eq $ServiceName} | Start-SPServiceInstance > $null
    Write-Host -ForegroundColor Green "Done - BDC Service is up and running."
    if any body want need more information please can u respond me to
    Email id:[email protected]

Maybe you are looking for

  • Possible Failing Hard Drive...advice for moving forward

    I've been having lengthy delays caused by spinning beach ball of death and decided to get serious about my back-ups while I figured out what was wrong. In addition to Time Machine, have purchased a drive just to have a clone copy of hard drive and a

  • '$' in output device

    Hi! What does in mean when the output device starts with '$'? Thanks!

  • How to select renewal length for skype number?

    Mhy skype numebr is due for renewal, but where or how can I access option to select renewal length?

  • Upgrade to JSTL 1.2 and JSF 1.2

    I created a Portal project in weblogic workspace studio 1.1 (weblogic portal 10.2). The portal was created with the default facets. I did not add JSF facet etc. Now all I am trying to do is upgrade to JSTL 1.2 from the add/remove project facets page.

  • 6 hours

    No matter what I try, my Jsp returns a "NullPointerException" everytime I try and run it. Can anyone see where my problem lies? The methods that I am using and the jsp code are displayed below,      public void roomsBooked(String arrivalDate, String