Initial parameters

Hi,
is it possible to set initial parameters like
optimizer_index_caching or
optimizer_indedx_cost_adj
for a single schema (Oracle 10g)? Or are this parameters valid for the whole DB ? If yes, can someone tell me please how I can set this ?
thanks in advance
Message was edited by:
user641657

Aah ! That is one thing some people might want -- to be able to specify this for specific tables/indexes.
No, these parameters cannot be set at schema/table/index level. They are set/changed at either session or instance level.
In 10g, the recommendation is to NOT set them at all but start with the defaults.
Only in extreme cases might you need to look at these parameters, eg if system statistics are inadequate.
As a rule, don't even think about setting these parameters.
However, some application vendors still ship applications with "recommended" or "directed" values for these parameters. You'd need to ask them WHY ?

Similar Messages

  • Any Easy Way to pass initial parameters to a VI created with New VI?

    In LabVIEW 2010 I can use OpenG's New VI function to create and launch a VI that is built from a template.
    Is there any easy way to pass initial parameters from the VI that creates the New VI to the New VI that will be available as soon as the New VI starts?

    Check out the Control Value Set invoke node. I personally don't like this node, and tst has got a great suggestion to promote cleaner, less fragile syntax for launching VI's dynamically that require input parameters.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Initial parameters to forms

    problem 1: is it possible to get initial parameters in web based forms through which the data can be displayed in the form
    for eg:
    a form displays employee's records based on empno
    how shall i pass empno in http request and
    how shall i use that parameter

    Hi,
    1) you would create a user parameter in Forms, say p_empno
    2) In a when-new-block-instance trigger you program the action that you want to associate with it - most likely setting the where clause of the block. You access teh parameter value by :parameter.p_empno
    3) In teh formsweb.cfg file, you add teh following line to the named configuration section for your application (lets assume the named configuration is "myApp")
    [myApp]
    form= <your fmx file>
    otherparams= p_empno=%empno%
    4) Call your Forms with the following URL
    http://<your server>:<port>/forms90/f90servlet?config=myApp&empno=10
    Frank

  • Nonlinear Curve Fit VI keeps all initial parameters

    My question is about fitting a curve with nonlinear curve fit VI. The fitting function has the formula like
    A/((x/I)^p-C)+B, where fitting parameters are {A, B, C, p, I) and variable is x. I tried to use both Nonlinear Curve Fit VI and Constrained Nonlinear Curve Fit VI, but neither gives me fitting parameters other than what I input as the initial parameters. As an example I am attaching the data set file where the fist column is x and second column is y. The initial fit parameter set is {2,0,1,2,90}. It would be appreciated if someone could point out how I use either these fitting function to get the best fit.
    Attachments:
    60QR.zip ‏1 KB

    Actually my LV code is quite simple and has nearly nothing more than the nonlinear curve fit vi itself. Anyhow I am attached my code here so that you could at least run and see what my question is about. The caller VI is "Curve Fitting.vi". The subVI inside it that calls the curve fitting function has two flavors inside. What is enabled uses the contrained nonlinear curve fit vi while the other one that is currently disabled, calls the function of nonlinear curve fit vi.
    Thanks.
    Attachments:
    Curve Fitting with a Nonlinear Model.vi ‏29 KB
    Curve Fitting.vi ‏17 KB

  • Initial parameteres

    Hi,
    on 11G R2, if in documentation we have :
    JOB_QUEUE_PROCESSESProperty Description
    Parameter type Integer
    Default value 1000
    Modifiable ALTER SYSTEM
    Range of values 0 to 1000
    Basic No Does Modifiable ALTER SYSTEM means that we shoud restart Databse if the parameter changes ?
    What does Basic mean ?
    Thank you.

    No necessary, In that case meaning that the statement to change it should be:
    ALTER SYSTEM SET JOB_QUEUE_PROCESSES=XXXXXX [scope=XXXX];
    instead ALTER DATABASE or ALTER SESSION ..
    "scope" clause determine if you must bounce database or not:
    - memory --> life of the instance only.
    - spfile --> Next startup of database will start with the new value, no affect the current instance when you fired it.
    - both --> for the current instance and preserve it through bounces.
    To check static parameters:
    SQL> select name, isses_modifiable from v$parameter2 WHERE isses_modifiable='TRUE';
    *true = can be modified with "memory" or "both"
    **false = only can be modified with "spfile"

  • Some problem with initial parameters

    hello,
    can anybody tell me is there any way out of this... -just like in servlet i can get aset of name values using <init-param> in the web.xml but i just wanted the same in jsp is there any way for doing it.for example i keep the name and password of user in <init-param> of the deployment discriptor and can get those values using ServletConfig but i just like that i want to access aset of name value pair in jsp
    is there any way of doing it
    waiting for some good tips

    You can define parameters for JSPs as well as servlets:
    <servlet>
      <servlet-name>TestJSP</servlet-name>
      <jsp-file>/test/test.jsp</jsp-file>
      <init-param>
        <param-name>testParam</param-name>
        <param-value>This is a test</param-value>
      </init-param>
    </servlet>
    <servlet-mapping>
      <servlet-name>TestJSP</servlet-name>
      <url-pattern>/test/test.jsp</url-pattern>
    </servlet-mapping>In the JSP, you can access the parameter in the same way as in a servlet using getServletConfig():
    <%=getServletConfig().getInitParameter("testParam")%>

  • How to call a dll with special parameters in Labview?

    Hi,
    I have a dll file (compiled in C++) and I would like to call the individual functions from this dll file.
    I do not know however, how I must correctly define the initial parameters in LabView.
    That is the function, which I would like to call:
    DWORD OpenDiagDriver ( char* port,
    LPCSTR path,
    CANObjects CANObj[],
    WORD BitTiming = 0x4167);
    CANObjects CANObj[] is a pointer to array with CAN configuration data
    typedef struct
    DWORD Ident;
    BYTE Config;
    }CANObjects;
    CANObj[0].Ident= 0x18DA0000;
    CANObj[0].Config= 0x8C;
    CANObj[1].Ident= 0x18DA0000;
    CANObj[1].Config= 0x84;
    WORD BitTiming= 0x4167;
    I made a vi, but it doesn’t work.
    Attachments:
    example.vi ‏29 KB

    Hard to say without the full C source. Are you building the DLL according to the CIN rules (see Using External Code in LabVIEW)? Mapping clusters to C code in DLLs is not a simply process and we generally recommend to create wrappers. However, since your structures are fairly straightforward, you could use the "Adapt to Type" as you are trying to do.
    I recommend checking out the mentioned manual and also the examples in \examples\dll\data passing\Call Native Code.llb and the associated C files.
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Keep in URL parameters shopid and language

    We use B2C ISA 5.0. When we use parameters like ?shopid=XXXXXX&language=en to log into B2C, these parameters disappear from the URL. How can we keep in the URL these parameters for the session in Explorer.
    Regards,

    These initial parameters are used to navigate the application at the start of the program. However, they are not retained in the URL parameter. However, the Shop Id and Language are derivable parameters from objects available in UserSessionData. UserSessionData is an object available in session context and hence can be accessed from any action class or JSP.

  • Using javascript:SP.UI.ModalDialog.showModalDialog with Workflow Initiation

    I'm trying to use "javascript:SP.UI.ModalDialog.showModalDialog" with a workflow initiation page.  I can get it to start but the "Cancel" Button doesn't work.  Can anyone give me a clue?
    javascript:SP.UI.ModalDialog.showModalDialog({url:"{SiteUrl}/Workflows/Assign%20Corrective%20Action/Assign%20Corrective%20Action.aspx?List={ListId}&ID={ItemId}&Source={Source}",title:"Custom Form"});return false;
    David Jenkins

    Hi David,
    To reproduce this issue, Could you give me your detailed process and code?
    In addition, for the 'Cancel' and 'Start' buttons, if you want to reture to the original page after clicking, you can open the custom workflow and create a rule and add a 'Close the form' action for the two button.
    Here is an article about starting a workflow with a initiated parameters through JavaScript, please take a look at:
    http://www.sharepointblogs.be/blogs/timmy/archive/2011/09/15/starting-a-workflow-with-a-initiated-parameters-through-javascript.aspx
    I hope this helps.
    Thanks,
    Wendy
    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]
    Wendy Li
    TechNet Community Support

  • MII 12.1.5 problem: XML-Doc not initialized in second transaction call

    (Sorry- I don't know why the lines are not seperated as in my input text...)
    Hello!
    We are migrating our projects from MII 12.5 to 12.1.5(Build 99).
    Most of the problems we found last year during our 12.1 rampup tests are fixed now.
    We are very happy about the improved expression parser- it now finds all syntax errors which are ignored in 12.0 (like missing parenthesis).
    The new tracing options make is easy to remove such errors.
    We found some small problems but this problem ist not easy to see and the result are some hundred wrong SAP postings:
    In a called transaction we have a XML-Doc action block  which manually configured fields.
    Then we adds rows to this document using the ROW-action block.
    Note: In the calling main transaction the option "reload transaction after each execution" is UNchecked (the default)
    This works fine for the first call of this transaction.
    The problems starts with the second call.
    Some initalization for the XML-Doc ist not executed (see trace below)
    VERY BAD: the ROW-actions to fill the document are executed WITHOUT errors!
    Result: an EMPTY XML-Doc!
    The solution is to check the option "reload transaction after each execution" in the Transaction call action.
    In MII 12.0 the XML-Doc was initalized and filled correctly for both calling options.
    Questions:
    - Is this a bug or a known behaviour?
      During the rampup test we found some problems with local variables and discussed this with SAP (Mr Schuette).
      what I remeber: with the unchecked option the local transaction variables should keep the old values of the last call -
      but XML-Docs should be initialzed always. The big problem is that the ROW action don't raise an error. 
    - Should the option "reload transaction after each execution" be checked as default?  
    - Are there performance differences for both options?
    Best regards,
    Roger Zuehlsdorf
    Trace output:
    ==========================================================
    FIRST CALL of Sub-Transaction
    [DEBUG] [TESTSUB1] Loading action: Document_0, type: IlluminatorDocument
    [DEBUG] [TESTSUB1] [Sequence]: Started sequence execution
    [DEBUG] [TESTSUB1] [Document_0]: Started action execution
    [DEBUG] [TESTSUB1] [Document_0]: Type: IlluminatorDocument, Description:
    [DEBUG] [TESTSUB1] [Document_0]: [Initializing Action][Initializing Parameters: [Document_0.EndDate = Document_0.EndDate=[timestamp:2010-08-23T12:58:51]][Document_0.StartDate = Document_0.StartDate=[timestamp:2010-08-23T12:58:51]][Document_0.Output = Document_0.Output=[xml:<?xml version="1.0" encoding="UTF-8"?>
    <Rowsets DateCreated="2010-08-23T16:09:59" EndDate="2010-08-23T12:58:51" StartDate="2010-08-23T12:58:51" Version="12.1.5 Build(99)">
    <Rowset>
    <Columns>
    <Column Description="" MaxRange="1" MinRange="0" Name="TESTTEXT" SQLDataType="1" SourceColumn="TESTTEXT"/>
    </Columns>
    <Row>
    <TESTTEXT>STRING</TESTTEXT>
    </Row>
    </Rowset>
    </Rowsets>]][Document_0.ColumnSpecifications = Document_0.ColumnSpecifications=[xml:<?xml version="1.0" encoding="UTF-8"?>
    <ColumnSpecifications>
    <ContextItem>
    <Name>TESTTEXT</Name>
    <Description/>
    <MinRange>0</MinRange>
    <MaxRange>1</MaxRange>
    <Value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="string">STRING</Value>
    <ReadOnly>false</ReadOnly>
    </ContextItem>
    </ColumnSpecifications>]]]
    [DEBUG] [TESTSUB1] [Document_0]: Resolving Input Links
    [DEBUG] [TESTSUB1] Action parameter creating time [ <1 ms]
    [DEBUG] [TESTSUB1] Entering action 'Document_0' implementation.
    [DEBUG] [TESTSUB1] Exiting action 'Document_0' implementation
    [DEBUG] [TESTSUB1] [Document_0]: Resolving Output Links
    [DEBUG] [TESTSUB1] [Document_0]: Finished[ <1 ms] Succeeded: true
    Add Row***
    [DEBUG] [TESTSUB1] [Row_0]: Started action execution
    [DEBUG] [TESTSUB1] [Row_0]: Type: IlluminatorRow, Description:
    [DEBUG] [TESTSUB1] [Row_0]: [Initializing Action][Initializing Parameters: [Row_0.IlluminatorDocument = Row_0.IlluminatorDocument=[string:Document_0.Output]]]
    [DEBUG] [TESTSUB1] [Row_0]: Resolving Input Links
    [DEBUG] [TESTSUB1] [Row_0]: Link Stats: Row_0.TESTTEXT, Type [Assign], Time [ <1 ms], Expression: "xxxxxx xTHIS IS MY TEXT xxxxxxxxx "
    [DEBUG] [TESTSUB1] Action parameter creating time [ <1 ms]
    [DEBUG] [TESTSUB1] Entering action 'Row_0' implementation.
    [DEBUG] [TESTSUB1] Exiting action 'Row_0' implementation
    [DEBUG] [TESTSUB1] [Row_0]: Resolving Output Links
    [DEBUG] [TESTSUB1] [Row_0]: Finished[ <1 ms] Succeeded: true
    >>>> Result  OK, Teststring is added to Document_0
    [INFO] [TESTSUB1] [Tracer_0]Exit SUB: TESTTEXT in XML: <?xml version="1.0" encoding="UTF-8"?>
    <Rowsets DateCreated="2010-08-23T16:14:15" EndDate="2010-08-23T12:58:51" StartDate="2010-08-23T12:58:51" Version="12.1.5 Build(99)">
    <Rowset>
    <Columns>
    <Column Description="" MaxRange="1" MinRange="0" Name="TESTTEXT" SQLDataType="1" SourceColumn="TESTTEXT"/>
    </Columns>
    <Row>
    <TESTTEXT>xxxxxx xTHIS IS MY TEXT xxxxxxxxx </TESTTEXT>
    </Row>
    </Rowset>
    </Rowsets>
    ===============================================================================
    SECOND CALL of Sub-Transaction => XML-Doc NOT initalized!?
    [DEBUG] Entering action 'Transaction_Call_0' implementation.
    [DEBUG] [TESTSUB1] [Sequence]: Started sequence execution
    [DEBUG] [TESTSUB1] [Document_0]: Started action execution
    [DEBUG] [TESTSUB1] [Document_0]: Type: IlluminatorDocument, Description:
    [DEBUG] [TESTSUB1] [Document_0]: [Initializing Action][Initializing Parameters: ]
    [DEBUG] [TESTSUB1] [Document_0]: Resolving Input Links
    [DEBUG] [TESTSUB1] Action parameter creating time [ <1 ms]
    [DEBUG] [TESTSUB1] Entering action 'Document_0' implementation.
    [DEBUG] [TESTSUB1] Exiting action 'Document_0' implementation
    [DEBUG] [TESTSUB1] [Document_0]: Resolving Output Links
    [DEBUG] [TESTSUB1] [Document_0]: Finished[ <1 ms] Succeeded: true
    Add Row***  =>  NO error message!?
    [DEBUG] [TESTSUB1] [Row_0]: Started action execution
    [DEBUG] [TESTSUB1] [Row_0]: Type: IlluminatorRow, Description:
    [DEBUG] [TESTSUB1] [Row_0]: [Initializing Action][Initializing Parameters: ]
    [DEBUG] [TESTSUB1] [Row_0]: Resolving Input Links
    [DEBUG] [TESTSUB1] [Row_0]: Link Stats: Row_0.TESTTEXT, Type [Assign], Time [ <1 ms], Expression: "xxxxxx xTHIS IS MY TEXT xxxxxxxxx "
    [DEBUG] [TESTSUB1] Action parameter creating time [ <1 ms]
    [DEBUG] [TESTSUB1] Entering action 'Row_0' implementation.
    [DEBUG] [TESTSUB1] Exiting action 'Row_0' implementation
    [DEBUG] [TESTSUB1] [Row_0]: Resolving Output Links
    [DEBUG] [TESTSUB1] [Row_0]: Finished[ <1 ms] Succeeded: true
    >>>>  Result=> PROBLEM !??? Document_0 is empty:
    [INFO] [TESTSUB1] [Tracer_0]Exit SUB: TESTTEXT in XML: <?xml version="1.0" encoding="UTF-8"?>
    <Rowsets DateCreated="2010-08-23T16:14:15" EndDate="2010-08-23T12:58:51" StartDate="2010-08-23T12:58:51" Version="12.1.5 Build(99)">
    <Rowset>
    <Columns>
    <Column Description="" MaxRange="1" MinRange="0" Name="TESTTEXT" SQLDataType="1" SourceColumn="TESTTEXT"/>
    </Columns>
    </Rowset>
    </Rowsets>
    ===================================================================================
    Edited by: Roger Zuehlsdorf on Aug 24, 2010 4:51 PM

    Hi.
    It is very hard to read your description, but have a look at SP6 patch 2. This contains a fix for initialising of XML documents in transactions. I am not sure weather that is your problem but have a look.
    BR
    Poul.

  • EH&S WWI for GLM print request processing

    Hi all,
    we installed EH&S WWI for GLM print request processing scenario, following the note:"1394553", but when we try to print we receive this error from WWI:
    Start Function 'WWI_PRINTREQUEST_CREATE'
      Initializing parameters
      Receiving data from client
       calling RfcGetData returned 0
        receiving data lasted: 0.0 sec.
        Retrieving print request data from RFC interface
        Using Temp Directory E:\WWI\TEMP\BSV100000000000062
       Delete files in E:\WWI\TEMP\BSV100000000000062
        Creating text file E:\WWI\TEMP\BSV100000000000062\r000000000062.val
        Writing data to text file 39 lines, 1009 characters
        Updating print request status from 0 to 1
        [DB time] Writing print request lasted 9 ms
      Start processing command 'Create print request' in synchronous mode
      Creating print request 000000000062
    WwiSapDms::retrieveDocument: RFC error when calling ABAP function moduleRFC connection is not Unicode
    WwiSapDms::retrieveDocument: RFC error when calling ABAP function module
    key     : RFC_ERROR_SYSTEM_FAILURE
    message : See RFC trace file or SAP system log for more details
    Reading SBV document IB0120510 from Cache failed
        WwiCacheRead resulted with -1
        Updating print request status from 1 to 5
        [DB time] Writing print request lasted 4 ms
      ##### Command 'Create print request' finished with status E #####
        Storing ERR file E:\WWI\TEMP\BSV100000000000062\l000000000062.err into DMS succeeded
        22 lines
      Sending data to client
       calling RfcSendData returned 0
        sending data lasted: 0.0 sec.
    Elapsed time : 0.1 sec.
    We don't understand what kind of RFC or what part of customizing we have to check, could you please help us?
    Thanks,
    Christian

    Dear Pugal
    we are not using GLM + and I am not sure about the technqiue used there to handle load balancing. Regarding general WWI setup I assume you know this Note: EH&amp;amp;S: Availability and performance of WWI and Expert servers
    On the top there is a further SAP Note abvailable which might be of interest. This is referenced here:
    http://de.scribd.com/doc/191576739/011000358700000861002013-e
    May be check OSS note: 1958655; OSS Note 1155294 is more related to normal WWI stuff; but may be check it as well. May be 1934253 might help better
    May be this might help.
    C.B.
    PS: may be check as well: consolut - EHS_MD_140_01 - EH&amp;amp;S-Management-Server einrichten
    The load balancing of synchron WWi servers is donein the "RFC" layer, therefore you have no inffluence here, for asynchron WWI servers you can do a lot to manage the WWI load balancing by using "exits" etc.

  • Can not open the WSDL in a Deployed web service

    I finished a JAXRPC based web service, packaged a war file and then using WSDEPLOY to produce a new war file. The new war file was deployed to Sun APP Server and everything seemed to be fine. But when I tried to open the url, the page displayed many question marks (not encoding problem, I tried many encodings but no change). The following is a copy from the browser (originally in a table, becomes mess here)
    Web ??
    MetSoapEndpoint ???
    ??? http://localhost:8080/MyWS/mysoap/MyWSEndpoint
    WSDL? http://localhost:8080/MyWS/mysoap/MyWSEndpoint?WSDL
    ?? QName? {http://www.agmodel.org/Schema/MyWS/2006/02/MyWSEndpoint}MyWSEndpointPort
    ????? net.agmodel.myws.mysoap.jaxrpc.MyWSEndpoint
    ???? net.agmodel.myws.mysoap.MyWSEndpoint_Impl
    ??? http://localhost:8080/MyWS/mysoap/MyWSEndpoint???
    And I tried to open the WSDL by clicking on the above WSDL address, but get the following error message:
    XML Parsing Error: no element found
    Location: http://localhost:8080/MyWS/mysoap/MyWSEndpoint?WSDL
    Line Number 1, Column 39:<?xml version="1.0" encoding="UTF-8"?>
    I also tried to deploy the service to JBOSS 4.0.4, got exactly the same result.
    Anyone can help me?
    Thanks a lot.
    xinwen

    Nobody answered...
    May bcoz it was on AXIS2.... no issues guys..here is the solution
    Webservice technology is also based on Servlet based techology only
    so in AXIS2 webservice class, implement org.apache.axis2.engine.ServiceLifeCycle interface. You'll get 2 methods here -
    void startUp(ConfigurationContext arg0, AxisService arg1) and
    void shutDown(ConfigurationContext arg0, AxisService arg1)
    these are nothing but init() and destroy() of the servlet.
    Inside these methods u can get servlet context parameters by getAttribute(string) and initial parameters of the servlet by getInitParameter(string)
    Edited by: Neo2001 on Feb 18, 2008 2:31 PM

  • Sharepoint designer 2013 workflow kickoff issue from code

    Problem Statement: Start a  SharePoint 2013 designer Reusable Workflow with STS Authenticated User. We are trying to start to SharePoint 2013 designer Reusable Workflow with
    STS authenticated user using code but when we do that, we get following error. RequestorId: a3ce6dc6-31ec-23f3-0000-000000000000. Details: RequestorId: a3ce6dc6-31ec-23f3-0000-000000000000. Details: An unhandled exception occurred during the
    execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 {"error_description":"The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults
    (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect
    the server trace logs."} {"x-ms-diagnostics":["3001000;reason=\"There has been an error authenticating the request.\";category=\"invalid_client\""],"SPRequestGuid":["a3ce6dc6-31ec-23f3-b3ab-aef56fc7e299"],"request-id":["a3ce6dc6-31ec-23f3-b3ab-aef56fc7e299"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["65"],"SPIisLatency":["0"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["Bearer
    realm=\"de9da885-f7bf-4564-a3a5-
    Alternate approach we are following : We have created a windows authenticated user and gave him all the necessary permission to trigger the workflow(contribute, full control). Then we are creating the User token
    for that user and opening the site with the help of the generated user token. By this approach workflow is getting triggered.
    The problem in this approach is after ¾ days it gives error when trying to kick off workflow from code with user who has not logged in as we are using this AD user only for kickoff purpose.
    InvalidOperationException:
    Operation is not valid due to the current state of the object
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    There is a userprofile for the user and the issue is not a userprofile. We are using direct AD import and we have full sync every 5 minutes. The workflow gets kicked off using a fix user who never logs in but after 4/5 days the token or something gets expired
    and then we have to manually login with that user and then only code can kickoff workflow with that particular user.
    The problem in this approach is after ¾ days it gives error when trying to kick off workflow from code with user who has not logged in as we are using this AD user only for kickoff purpose.
    InvalidOperationException:
    Operation is not valid due to the current state of the object
    We can not kickoff with current user as current user can not be given contribute rights and we can not do it with system account as its not able to kickoff using system account by design of sp2013 workflow.
    So we need to know how to kcikoff workflow with a user who never logs in or logs in only for the first time and then never in production.
    Below code works for few days and then as user does not login with which we kick off workflow the token or something gets expired after 4/5 days.
    userToken = oSPWeb.EnsureUser(“UserAccountName”).UserToken;
    using (SPSite
    oSPSite = new
    SPSite(SPContext.Current.Web.Url,
    userToken))  //Site collection URL
    using (SPWeb
    oSPWeb = oSPSite.OpenWeb())  //Subsite URL
    SPList list = oSPWeb.Lists["Proposal"];
    try
                                oSPWeb.AllowUnsafeUpdates =
    true;
    SPListItem item = list.GetItemById(proposalID);
    var workflowServiceManager =
    new
    WorkflowServicesManager(oSPWeb);
    var workflowSubscriptionService = workflowServiceManager.GetWorkflowSubscriptionService();
                                //get
    all workflows associated with the list
    var subscriptions = workflowSubscriptionService.EnumerateSubscriptionsByList(list.ID);
    foreach (var
    workflowSubscription in subscriptions)
    if (workflowSubscription.Name ==
    "Proposal Workflow")
    //initiation parameters
    var inputParameters =
    new
    Dictionary<string,
    object>();
    inputParameters.Add("Comments",
    "TEST");
    inputParameters.Add("ItemId", item.ID);
    inputParameters.Add("WorkflowStart",
    "StartWorkflow");
    workflowServiceManager.GetWorkflowInstanceService().StartWorkflowOnListItem(workflowSubscription, item.ID, inputParameters);
    break;
                                oSPWeb.AllowUnsafeUpdates =
    false;
    catch (Exception
    ex)
                                Classes.Logger.WriteErrorLog("Sumbit",
    "kickoffWorkflow1", ex,
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

  • Load file does not exist

    We have several users using OLS V4.2 on one of our citrix servers. However, one of our users can upload an excel sheet into OLS. She always gets the error :
    Package Result = Error]
    Package:                     Import excel V2
    Appset:                      Blagden
    Application:                 SALES
    Request Time:                2009-04-14 16:56:18
    Start   Time:                2009-04-14 16:56:18
    End     Time:                2009-04-14 16:56:18
    Total   Time:                00:00:00
    TOTAL STEPS  8
    1. Assign initial parameters:        completed  in 0 sec.
    2. Create Temp Table:                completed  in 0 sec.
    3. Transform Data Task1:             completed  in 0 sec.
    4. update:                           completed  in 0 sec.
    5. update rejected:                  completed  in 0 sec.
    6. Transform Data Task2:             completed  in 0 sec.
    7. Convert data:                     completed  in 0 sec.
    8. Load and process:                 Failed  in 0 sec.
    [Selection]
    XLFILE= DATAMANAGER\DATAFILES\FL_sales reporting outlooksoft_FL1_FL3_A2009_03.xls
    SHEET=TOTAL
    TRANSFORMATION= DATAMANGER\TRANSFORMATIONFILES\my Files\import historical data.xls
    CLEARDATA= No
    RUNLOGIC= Yes
    [Messages]
    [ The load file does not exist ]
    I deleted the user from the userlist and reprocessed security. I added the user again in the admin group and reporcessed user security. Same error.
    When the user logs on on citrix using her profile  and starts Webexcel using my profile - no problem.
    My profile has administrator rights and she may not have them. So I really want her into the usergroup.
    We renamed the file to upload to a file with 8 characters - same problem.
    Anyone any experience with this error and how to solve it ?
    Thanks for your reply.
    Johan

    Hello,
        From what I understand from your log file, this is a custom import package. It is failing into the last step, loading data into the cube and it seems there is no file to be loaded. If the same package is working well for the other users, this means that the user has not enough security rights to load data from that file (maybe the file contains data for which the user is not authorized to see).
       To understand better what is happening, just try to activate the debug using the DEBUG(ON) instruction into EvModifyPackage. This will create more information regarding the parameters passed to your tasks and you will be able to identify the file name passed to Dump&Load task.
    You can verify then into Private publication\user name\Temp files the content of file (and the content of all temporary files generated by your package) and this will help you to understand where is the problem.
    Hope this can help you,
    Mihaela

  • How to send Email Notifications to OID users?

    Hi All,
    I have a requirement where I need to send an email notification from the BPEL process. The Email notification has to be sent to a used who invoked the process the userName is provided in the initiation parameters. But I need to fetch the email id for the give userName from the OID which is integrated with the BPEL Process Manager.
    Is there any way I can fetch the email addresses from the OID in BPEL ?
    Thank you.

    Hi Folks, Finally I found the answer... If the APP server is integrated with the OID(Identity Management is set to Oracle Internet Directory and configured properly) the function ora:getUserProperty(bpws:getVariableData('myUser'),'mail') should return the mail property of the user object in OID.
    If your Identity Management is set to the File-Based system then it will get the user properties from the $ORACLE_HOME/bpel/system/services/config/user_properties.xml.

Maybe you are looking for