SQL to manually complete bulk open tasks

Hi,
I am using OIM 9.1.0. The below sql is giving all open tasks that were created on a perticular day.
SELECT USR_LOGIN,
OSI.MIL_KEY,
sch.sch_key,
SCH.SCH_STATUS,
OSI.OSI_RETRY_ON,
MIL.MIL_NAME,SCH.*,OSI.*
FROM OSI,
SCH,
MIL,
USR,
ORC
WHERE SCH_CREATE >=TO_DATE('04/23/2012','MM/DD/YYYY')
AND SCH.SCH_STATUS='R'
AND OSI.SCH_KEY = SCH.SCH_KEY
AND OSI.MIL_KEY = MIL.MIL_KEY
AND OSI.ORC_KEY = ORC.ORC_KEY
AND ORC.USR_KEY = USR.USR_KEY;
However when I run the below SQL to complete these open tasks manually, these tasks are not getting completed. Please let me know the sql to manully complete bulk open tasks.
update sch set sch_status='MC' where sch_key=(select sch.sch_key
FROM OSI,
SCH,
MIL,
ORC
WHERE SCH_CREATE >=TO_DATE('04/23/2012','MM/DD/YYYY')
AND SCH.SCH_STATUS='R'
AND OSI.SCH_KEY = SCH.SCH_KEY
AND OSI.MIL_KEY = MIL.MIL_KEY
AND OSI.ORC_KEY = ORC.ORC_KEY);

It is not recommended to manipulate OIM data using SQLs. It is against Audit. If we don't have any other way then only we go for SQLs.
http://otndnld.oracle.co.jp/document/products/id_mgmt/idm_904/doc_cd/javadocs/operations/Thor/API/Operations/tcProvisioningOperationsIntf.html#setTasksCompletedManually%28long[]%29

Similar Messages

  • Bulk insert task issue

    I Have table,It contains 4 millions records,I want load data into Sql Server table using Bulk Insert task.
    How can i load data using Bulk Insert task.Bulk insert task supports only text source.
    Thanks in Advance.

    If its a sql server table to table transfer You can use data flow task with OLEDB Source and destination. In the OLEDB destination use
    table or view - fast load option as the data access mode. 
    Also if databases are in same server you can even use Execute SQL task with statement like
    INSERT INTO DestTable
    SELECT *
    FROM SourceDB.dbo.SourceTable
    which will be set based
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Bulk Insert Task Cannot bulk load because the file could not be opened.operating system error error code 3(The system cannot find the path specified.)

    Following error i am getting after i chnaged the Path in Config File from
    \\vs01\d$\\Deployment\Files\temp.txt
    to
    C:\Deployment\Files\temp.txt
    [Bulk Insert Task] Error: An error occurred with the following error message: "Cannot bulk load because the file "C:\Deployment\Files\temp.txt" could not be opened. Operating system error code 3(The system cannot find the path specified.).". 

    I think i know whats going on. The Bulk Insert task runs by executing sql command (bulk insert) internally from the target sql server to load the file. This means that the SQL Server Agent of the target sql server should have permissions on the file you trying to load. This also means that you need to use UNC path instead to specify the file path (if the target server in on different machine)
    Also from BOL (see section Usage Considerations - last bullet point)
    http://msdn.microsoft.com/en-us/library/ms141239.aspx
    * Only members of the sysadmin fixed server role can run a package that contains a Bulk Insert task.
    Make sure you take care of this as well.
    HTH
    ~Mukti
    Mukti

  • SQL help: Selecting tickets with no open tasks

    Hi Gurus,
    I'm new to SQL. I need your help in a script where I need to fetch the tickets with no open tasks.
    Say, following is the Task table
    Table: Task
    | ticketid | taskid | taskstatus |
    | 1 | 1 | O |
    | 1 | 2 | O |
    | 1 | 3 | O |
    | 2 | 4 | C |
    | 2 | 5 | C |
    | 3 | 6 | C |
    | 3 | 7 | O |
    The query should return the ticketid(s) with all its taskstatus = 'C'.
    Any help would be highly appreciated.
    Thanks

    Hi Surya,
    Here's an Oracle style example (Sorry, I just can't do that ansi stuff)
    SQL> with ticket as (select 1 ticketid, 'C' reason from dual union all
                    select 2 ticketid, 'O' reason from dual union all
                    select 3 ticketid, 'O' reason from dual union all
                    select 4 ticketid, 'C' reason from dual)
    ,taskstatus as (select 1 taskstatusid, 'O' taskstatus from dual union all
                    select 2 taskstatusid, 'C' taskstatus from dual union all
                    select 3 taskstatusid, 'P' taskstatus from dual union all
                    select 4 taskstatusid, 'F' taskstatus from dual union all
                    select 5 taskstatusid, 'O' taskstatus from dual union all
                    select 6 taskstatusid, 'C' taskstatus from dual union all
                    select 7 taskstatusid, 'P' taskstatus from dual union all
                    select 8 taskstatusid, 'F' taskstatus from dual)
          ,task as (select 1 ticketid,  1 taskid, 2 taskstatusid from dual union all
                    select 1 ticketid,  2 taskid, 3 taskstatusid from dual union all
                    select 1 ticketid,  3 taskid, 4 taskstatusid from dual union all
                    select 1 ticketid,  4 taskid, 4 taskstatusid from dual union all
                    select 2 ticketid,  5 taskid, 1 taskstatusid from dual union all
                    select 2 ticketid,  6 taskid, 1 taskstatusid from dual union all
                    select 2 ticketid,  7 taskid, 1 taskstatusid from dual union all
                    select 3 ticketid,  8 taskid, 2 taskstatusid from dual union all
                    select 3 ticketid,  9 taskid, 2 taskstatusid from dual union all
                    select 3 ticketid, 10 taskid, 6 taskstatusid from dual union all
                    select 4 ticketid, 11 taskid, 2 taskstatusid from dual union all
                    select 4 ticketid, 12 taskid, 6 taskstatusid from dual union all
                    select 4 ticketid, 13 taskid, 4 taskstatusid from dual union all
                    select 4 ticketid, 14 taskid, 8 taskstatusid from dual)
    select a.ticketid, c.taskstatus
      from  task a, ticket b, taskstatus c
    where a.ticketid = b.ticketid
       and c.taskstatusid = a.taskstatusid
       and (c.taskstatus = 'C' or c.taskstatus = 'F')
       and b.reason = 'C'     
       and not exists (select null
                         from task a1, taskstatus c1
                        where a1.ticketid = a.ticketid
                          and c1.taskstatusid = a1.taskstatusid
                          and (c1.taskstatus = 'O' or c1.taskstatus = 'P'))
    order by 1,2
      TICKETID T
             4 C
             4 C
             4 F
             4 F
    4 rows selected.Please note, how I made test data, that way is much more helpful than your tables
    Regards
    Peter

  • When closing my Firefox window, all processes are not closing requiring me to open task manager and kill the process before using Firefox again. Received recent upgrade and hasn't worked right since then.

    I open Firefox, use it, then close the window. Try to reopen Firefox and it fails with a message that a previous process is still running. Requires me to open Task Manager and kill the old process.

    Try to wait a bit longer before reopening Firefox to give Firefox more time to close completely.<br />
    Try to use "Firefox/File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") to close Firefox if you are currently doing that by clicking the close X on the title bar.
    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    *https://support.mozilla.com/kb/Firefox+hangs

  • How to send a work item ( Mail ) as open tasks in WEB UI

    Hi,
      I have a requirement as to send a WF work item of mail text to WEB UI as open tasks.  Upon click of te link; the mail txts comes there with the link detials to the service contract number and service contract quotation. Upon click of the links it need to redirect to the respective documents.
    The requirement is as such that 60 days prior to the contract end date we need to trigger a mail that 'the contract expires in 60 days,do you  need to renewal it'. This text need to go to the WEB UI respective agent of this mail as tasks. Upon click of the task description link need to navigate to the mail text with the details of the contract and quotation numbers in link. upon click of the lnk it needs to navigate such that they can change accordingly and the contractrenewal process is completed.
    How to acheive this one.
    Thanks and Regards,
    Satish Akkina

    Hi,
    Sending Mail to Outlook : U need the Following things done for this:-
    1> Use the Mail Step in the WF and Choose the Receipient as the E-Mail Address and Give the E-Mail Address there.
    2> Check the Configurations that need to be done in Transaction SCOT. SMTP Server Settings are done to get the Desired Results.
    From the external mail, they should have the flexibility to approve or reject PO.
    To get Workitems in Outlook..!!
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
    Problem in transferring the workitems into OUTLOOK
    /people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox
    Workflow Items in Outlook
    Let me know if u still face any issues.
    Regards,
    Kanika

  • If your database in Full Recovery mode, can you use Bulk Insert Task to load data

    If your database in Full Recovery mode, can you use Bulk Insert Task to load data

    If your database in Full Recovery mode, can you use Bulk Insert Task to load data
    Yes you can ofourse but dont be in idea that logging will be mininal. Loggign will be as per recovery model full. Every thing will be logged. If you are going to use bulk insert task you can consider switching recovery model to Bulk logged but you will not
    have option to do point in time recovery.
    PS: please dont create duplicate threads
    If you read first Note section in below link it clearly states that yes logging will be full and you can use
    http://technet.microsoft.com/en-us/library/ms191244(v=sql.105).aspx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Cannot fetch a row from OLE DB provider "BULK" with bulk insert task

    Hi, folks:
    I created a simple SSIS package. On the Control Flow, I created a Bulk INsert Task with Destination connection to a the local SQL server, a csv file from a local folder, specify comma delimiter. Then I excute the task and I got this long error message.
    [Bulk Insert Task] Error: An error occurred with the following error message: "Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.The bulk load failed. The column is too long in the data file for row 1, column 1. Verify that the field terminator and row terminator are specified correctly.".

    I got the same error with some additional error details (below).  All I had to do to fix the problem was set the Timeout property for the SQL Server Destination = 0
    I was using the following components:
    SQL Server 2008
    SQL Server Integration Services 10.0
    Data Flow Task
    OLE DB Source – connecting to Oracle 11i
    SQL Server Destination – connecting to the local SQL Server 2008 instance
    Full Error Message:
    Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E14.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E14  Description: "Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".".
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E14  Description: "The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.".
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E14  Description: "The Bulk Insert operation of SQL Server Destination has timed out. Please consider increasing the value of Timeout property on the SQL Server Destination in the dataflow.".
    For SQL Server 2005 there is a hot fix available from Microsoft at http://support.microsoft.com/default.aspx/kb/937545

  • I have to open Task Manager to quit the Firefox process almost every time b4 it will shut down I just uninstalled & downloaded another copy/version & will reinstall again. Thought you would want to know. I am anjulz on comcast

    I have to open Task Manager & quit the Firefox process manually b4 it will stop. When I did it the last time b4 I just uninstalled my memory usage was up to like over 300,000 with only 1 tab open. Just downloaded another copy/version & will reinstall. Hopefully this will stop the problem. thought you would want to know this.

    The proper way to close Firefox is through the File menu "Exit" or the equivalent with the Firefox button.
    More detail in item '''#38 Firefox already running '''
    of
    [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6) (#fx4interface)]
    Firefox already running, to properly shutdown Firefox when closing the last window use File → Exit/Quit (or Firefox button → Exit). Closing Firefox with the [X] in the upper right corner closes the window ("Ctrl+W") but that does not necessarily close Firefox if it has subtasks running. If you want to close and reopen Firefox use the "Restart" within Add-ons if you made a change requiring a restart, or install "[https://addons.mozilla.org/firefox/addon/restartless-restart/ Restartless Restart]" ("Ctrl+Alt+R") which will allow you to take Firefox down and restart without having to check the Windows Task Manager to see if Firefox first actually ended. [http://kb.mozillazine.org/Firefox_hangs Firefox hangs]

  • BAPI to Close notification with Open tasks

    Hi All,
    Can you let me know if there is any BAPI to close/delete the open tasks for a notification?
    Regards
    Shiva

    BAPI_ALM_NOTIF_CLOSE           Complete PM/CS Notification
    BAPI_ALM_NOTIF_TASK_COMPLETE   PM/CS Notification: Complete Task
    BAPI_ALM_NOTIF_TASK_RELEASE    PM/CS Notification: Release Task
    BAPI_ALM_NOTIF_TASK_SUCCESS    PM/CS Notification: Set Task to Successful

  • Closing an open task programatically

    HI,
    I have created a custom component in order to establish connection to BPM .
    The flow is such that , the connection gets established and i need to fetch the tasks based on the workflowInstance and user ID specified.
    I am able to fetch the tasks from which i extract the task state.
    Need to close the state of an open task i.e need to update the state of the task to close. Not able to do it.
    How do i achieve this?
    This is the piece of code that is supposed to perform the functionality.
    Please have a look and provide your inputs in order to achieve the needed.
    Function Call:
    this.updateTaskOutCome(task1, "CLOSE");
    Function Defnition:
    public int updateTaskOutCome(final task,
                                     final String outcome) {
            // variable to show success or failure
            int success = 0;
            // creating reference for TaskQueryService
            TaskQueryService taskQueryService = null;
            // creating reference for WorkflowContextType for admin context
            WorkflowContextType adminContext = null;
            // creating reference for WorkflowContextType for user context
            WorkflowContextType userContext = null;
            TaskService taskService = null;
            oracle.bpel.services.workflow.task.model.Task outcomeUpdatedTask =
                null;
            CredentialType adminCredentialtype = this.createAdminCredentialType();
            CredentialOnBehalfOfRequestType onBehalfRequestType =
                queryFactory.createCredentialOnBehalfOfRequestType();
            // calling getService method og BPMConnection
            //get taskQueryService Object from BPMConnection
            //taskService = getService("taskAction");
            //creating WorkflowContext for admin
            //setting admin context to onBehalfRequestType
            try {
                taskQueryService = (TaskQueryService)getService("taskQuery");
                adminContext = taskQueryService.authenticate(adminCredentialtype);
                onBehalfRequestType.setOnBehalfOfUser("username");// admin username given
                onBehalfRequestType.setWorkflowContext(adminContext);
                //creating WorkflowContext for user
               userContext= taskQueryService.authenticateOnBehalfOf(onBehalfRequestType);
                // getting BPM Client for performing user actions
                taskService = (TaskService)getService("taskAction");
                // creating UpdateTaskOutcomeType object and setting its property
                UpdateTaskOutcomeType updateTaskOutcomeType =
                    taskActionFactory.createUpdateTaskOutcomeType();
    //            //setting outcome
                updateTaskOutcomeType.setOutcome(outcome);
                //setting task
                updateTaskOutcomeType.setTask(task);
                // setting userContext
               updateTaskOutcomeType.setWorkflowContext(userContext);
                // calling webservice operation for performing user action
                //setting success variable
                outcomeUpdatedTask =
                        taskService.updateTaskOutcome(updateTaskOutcomeType);
            } catch (StaleObjectFaultMessage e) {
                Report.trace("mysectionstring",
                             "inside staleobject fault message catch block", null);
    //        } catch (WorkflowErrorMessage e) {
    //            TaskQueryServiceFaultType faultInfo = e.getFaultInfo();
            } catch (Exception e) {
                e.printStackTrace();
            if (outcomeUpdatedTask != null) {
                success = 1;
            return success;
    Thanks in advance,
    Bharath

    Any one facing similiar issue?
    Could someone please provide some information.
    Thanks,
    Bharath

  • Open Task Button does not come in Outlook

    I have a three level approval workflow in which each level an email is generated to the approve to approve or reject.
    But suddenly the Open Task Button does not pop up in Outlook 2010 anymore can you tell me why?
    Srinivasan Kidambi

    had the same issue with External users not using Outlook. This is how I fixed it:
    Open the task list that the workflow is using and connect it to Outlook. Then kick off a workflow to make a new task. Once the task is made open the task from Outlook. The bottom options (review, perform the specific req. for the task, and Open this task)
    are now links. Hover your mouse over the link and you will see the address.
    Now open SPD, connect to your site and open the work flow assc. to the doc lib.
    Start editing the workflow and click the "Approval" link
    Click "Change the behavior of a single task"
    You are going to have to look for all the instances of "then e-mail task notification to "Current Task:Assigned to"
    Open "Current Task:Assigned to"
    Click where you want he link to go and hit the Hyperlink button
    name the link whatever you want, then hit the string builder ("..." button)
    Copy the link from the Task in Outlook into the string builder (if you use External addressing you can also hard code the External address).
    At the very end of the link where is says ID=(then a number) delete the number and DO NOT put a space. Click the Add or Change Lookup button and use "Current Task: Approval" "ID" "As String" and click ok. Should like this:
    Now this will not pop the form up, but it will send the user straight to the task form (might have to enter username and password) for the correct task. Remember to do this to all the "Current Task:Assigned to" in the workflow. It sounds like a chuck of
    work but it does not really take thaty long on the OOTB Approval workflow.
    Just wanted wanted to add my two cents.
    Also check
    http://social.technet.microsoft.com/Forums/en-US/417466a3-cdcb-4559-8453-9fff6da4aceb/getting-around-a-missing-open-this-task-button-in-a-nonoutlook-email?forum=sharepointcustomizationprevious
    If this helped you resolve your issue, please mark it Answered

  • What constitutes an "open' task?

    How does the system decide which tasks to put in this list? Is it based on status, created date? A combination of fields?
    Any help would be appreciated!
    B

    I thought that was the case, but when I look at the open tasks on the homepage, it only seems to have ones for the current month. Is this correct?

  • Manually execute a povisioning task for a user in OIM 11g

    Experts,
    In OIM 11g, I would like to execute a resource provisioning task for a user thru OIM admin console.
    In OIM 10g, when we select a resource profile for a user, it used to show the list tasks that are executed. There we can add a new task to run manually there.
    How to do the same in OIM 11g. in OIM 11g, it is not even showing the lists of tasks executed during provisioning.
    Please let me know.

    If you are talking about manually adding the provisioning tasks to a user for a particular resource, then you can go to the resource profile of the user, select the particular resource -> click the 'Resource History' button on the right corner and from there you can manually add the tasks.
    -Bikash

  • Filtering My Open Task in SAP CRM based on Status, Transaction & Partner Function

    Hello
    Whenever i create a Task in SAP CRM, it displays that transaction in the My Open Task of all Business Partners involved in that Transaction.
    I want to restrict the My Open Tasks based on Transaction Type, Status and Partner Function.
    1) The system should work as it is for all other Tasks but for my Custom Transaction Type the logic should be based on status of the Transaction
    2) When My Open Task component is prepared the system should consider the Status and Partner Function as well i.e. if the status is Approval of Manager, the system should show the Open Task only to the Manager and not other parties.
    3) if the status of the Transaction is Open, the system should only display this Transaction / Task only to Employee Responsible and not to Manager and other people involved in their My Open Tasks.
    I have gone through the following post in SCN:
    https://scn.sap.com/thread/2056959
    I have implemented the method DO_PREPARE_OUTPUT as per the post but it does not do anything. When i redefine the method GET_QUERY_RESULT and remove everything,it does not prepare any list.
    If possible please specify which method needs to be redefined in the component/view CRMCMP_GS_WC/TodaysTasks & if possible please share the code that needs to be maintained in that method.
    Thanks

    Hi,
    Method DO_INIT_CONTEXT should be redefined
    This should be redifined to get the collections with your required filter criteria.
    * get the collection of entities for the tasks
       lr_col      = get_query_result( gc_status-open ).
    If this does not help, Delete the collections which are not required after above selection but before this code.
       me->typed_context->resultnew->collection_wrapper->set_collection( lr_col ).
    Thanks
    Ajay Singh

Maybe you are looking for

  • How can I install Office 2008 on my new MacBook Pro Retina?

    I have a license key and a cd to install from, but no slot in my MacBook to insert the CD into. I heard I can download Office 2008 from the Microsoft website, can anyone supply me with a link to the download? Not the30-day trial, the full version. Ca

  • Complex condition in OWB

    Hi , I have designed the process flow where i have a plsql transformation which is further connected to route activity, route has to take decision if the plsql transformation value is 'yes' then run the mapping else route the other flow which will ru

  • Generating a sequence.....

    hi, I have the following requirement. I need to generate an unique sequence in a specified format : Xnnnn where nnnn = 0000 - 9999 So it looks like this: X0000,X0001,X0002 and so on .. i need to acheive this through progammatically i believe. Any ide

  • My toolbar will only open when I press alt and then only the top line

    the complete top toolbar is not visable on any web page. to use file print history or bookmark I have to press ALT. the top line then disapears when a website is chosen. I then have to repeat this for every bookmark choice.

  • Unwanted line created during 3D render

    Hi, When rendering a 3d mesh plane occasionally a line appears straight across the object (attached). I've tried rendering at different quality levels, this doesn't make the slightest difference. Any and all help is greatly appreciated in preventing