Optimizer Statitics Gathering Task is not updating stale statistics

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production PL/SQL Release 11.2.0.2.0 - Production
******************** List stale statistics for Schema IGR using dbms_stats.gather_database_stats **************************
DECLARE
ObjList dbms_stats.ObjectTab;
BEGIN
dbms_stats.gather_database_stats(objlist=>ObjList, options=>'LIST STALE');
FOR i in ObjList.FIRST..ObjList.LAST
LOOP
IF ObjList(i).ownname = 'IGR' THEN
dbms_output.put_line(ObjList(i).ownname || '.' || ObjList(i).ObjName || ' ' || ObjList(i).ObjType || ' ' || ObjList(i).partname);
END IF;
END LOOP;
END;
IGR.USER_INFO TABLE 189 < --------------------- 189 Tables with stale statistics
PL/SQL procedure successfully completed.
**************************** Check date IGR Table(s) last analyzed ***********************************************
SELECT MAX(last_analyzed) last_analyzed
FROM dba_tables
WHERE owner = 'IGR'
LAST_ANALYZED
14-DEC-11
*************************** Check status of Task 'auto optimizer stats collection' **********************************
SELECT client_name, job_name, job_status, job_start_time
FROM dba_autotask_job_history
WHERE client_name = 'auto optimizer stats collection'
ORDER BY job_start_time
CLIENT_NAME JOB_NAME JOB_STATUS JOB_START_TIME
auto optimizer stats collection ORA$AT_OS_OPT_SY_11952 SUCCEEDED 12-FEB-12 10.07.23.059313 AM EUROPE/LONDON
auto optimizer stats collection ORA$AT_OS_OPT_SY_11955 SUCCEEDED 12-FEB-12 02.07.33.879238 PM EUROPE/LONDON
auto optimizer stats collection ORA$AT_OS_OPT_SY_11958 SUCCEEDED 12-FEB-12 06.07.43.783262 PM EUROPE/LONDON
auto optimizer stats collection ORA$AT_OS_OPT_SY_11961 SUCCEEDED 12-FEB-12 10.07.54.206488 PM EUROPE/LONDON
Any suggestions welcome
Thanks
Steve

Thank you for the feedback.
I have manually updated the statistics on a single Table successfully and the Table has been removed from the list of stale statistics. So this is further evidence the daily Task "Optimizer Statistics Gathering Task" is failing to update stale statistics.
Any further comment or suggestion welcome
Thanks
Steve
SQL> SELECT owner, table_name, last_analyzed, num_rows
FROM dba_tables
WHERE owner = 'IGR' AND table_name = 'SYSAUDIT';
OWNER TABLE_NAME LAST_ANAL NUM_ROWS
IGR SYSAUDIT 14-DEC-11 59036
1 begin
2 dbms_stats.gather_table_stats(
3 ownname=> 'IGR',
4 tabname=> 'SYSAUDIT',
5 estimate_percent=> 100,
6 cascade=> DBMS_STATS.AUTO_CASCADE,
7 degree=> null,
8 no_invalidate=> DBMS_STATS.AUTO_INVALIDATE,
9 granularity=> 'AUTO',
10 method_opt=> 'FOR ALL COLUMNS SIZE AUTO');
11* end;
PL/SQL procedure successfully completed.
SQL> /
OWNER TABLE_NAME LAST_ANAL NUM_ROWS
IGR SYSAUDIT 13-FEB-12 104970

Similar Messages

  • Execute SQL Task does not Update from a Date Variable Reliably

    I'm using a DateTime variable in SSIS 2008 that is used to set the SQLStatement property of an Execute SQL Task.
    "DELETE FROM Labor WHERE Week = '" + (DT_WSTR, 100) @[User::Week] + "'"
    Week is the next Sunday:
    DATEADD( "day", @[User::DaysTillSunday] , @[User::TheDayThatIsTwentyMinutesPrior] )
    DaysTillSunday:
    DATEPART( "dw", @[User::TheDayThatIsTwentyMinutesPrior] ) == 1 ? 0 : 8 - DATEPART( "dw", @[User::TheDayThatIsTwentyMinutesPrior] )
    TheDayThatIsTwentyMinutesPrior:
    (DT_DATE)(DT_DBDATE)DATEADD("minute",-20,GETDATE())
    The SSIS Package deletes the current week's data, reloads it with fresh data, then calculates the difference between the current week and last week.
    The problem is that randomly, instead of deleting the current week, it will delete the previous week.  This happens maybe 5-10% of the time.  At least it does until I rebuild the package and import it into SQL Server again.
    I'm guessing that the Execute SQL Task is not updating the value of the Week variable before it executes.  I started with the source type being a variable.  Then I decided to try Direct input and pass in the Week as a parameter (OLE DB Connection
    Type).  That didn't work either.
    Most recently I tried writing the Week variable to a table first, then having a sequence container with all the tasks second.  Slightly better but I still saw the date was wrong 2 times in about 90 executions.  I was hoping that writing the Week
    variable out to the database would force an update of any associated connections to it, but that didn't seem to work.
    Any ideas?  Is this a known issue, am I missing a setting?
    thanks,
    John

    John, computers either work all the time or have a bug. I suspect it is the latter.
    To find it [faster] you need to log what the resulting expression was used in the package.
    I am baffled how rebuilding a package would fix anything like setting a date.
    It might be even dependant on when you run the package.
    Why
    DATEADD("minute",-20,GETDATE())
    DATEADD( "day", -8 , GETDATE() )
    It must be enough to set the week (that appears to be a date) as above.
    Arthur
    MyBlog
    Twitter

  • ERROR 2009-05-24 08:46:36 CJS-00288 Could not update database statistics.

    Hi all.
    i am in the middle of SAP ECC 5.0 installation .In the Database instance installation at the step 29 database update statistics, system stops giving error
    ERROR 2009-05-24 08:46:44
    CJS-00288  Could not update database statistics.<br>
    DIAGNOSIS: Command brconnect -u / -c -f crsyn -o SAPDB5 returned 3.<br>SOLUTION: See brconnect.log for details.
    when i checked in brconnect.log i found below error message
    BR0801I BRCONNECT 7.00 (16)
    BR0999E Loading of SQL client library oci.dll failed - please check Oracle configuration
    BR0310E Connect to database instance DB5 failed
    BR0280I BRCONNECT time stamp: 2009-05-24 08.46.44
    BR0804I BRCONNECT terminated with errors
    Q))Which oracle version are you using since BRTOOLS 7.0 is designed to work with Oracle 10g?
    If you are using an oracle 9.2.* it is needed to install oracle instant client or to downgrade your db tools (brt* tools)...... Through :Forums I came to know that we have to downgrade the br*tools to
    Could you please help me how to downgrade the Brtools or could you please suggest me how to proceed
    please help me
    Thanks
    Senthil

    Hi All,
    Thanks for your help, that error it has passed but now in 31 st step starting RFC jobs
    i get this error
    ERROR 2009-05-25 18:08:05
    FRF-00007  Unable to open RFC connection.
    ERROR 2009-05-25 18:08:05
    FRF-00063  RFC logon failed with message: Failed: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failedConnect_PM  GWHOST=CTSINSAPEC5, GWSERV=sapgw00, ASHOST=CTSINSAPEC5, SYSNR=00
    but early during the last error update database statistics the SAP MMC console was up and running but now SAP is down during this error
    i tried to start SAP manually but it never works dispatcher goes down, i searched in forums and thought to update the kernal, so i updated the kernal also and tried it then also same error
    please help me my situation is very pathatic, i will be greatful if you help me
    Thanks
    Senthil

  • ERROR 2008-04-30 09:10:35 CJS-00288 Could not update database statistics.

    Hi Gurus..
    Hi i am in the middle of NW 2004  installation . At the step 29 database update statistics, system stops giving error
    ERROR 2008-04-30 09:10:35
    CJS-00288 Could not update database statistics.
    DIAGNOSIS: Command brconnect -u / -c -f crsyn -o SAPP47 returned
    3.SOLUTION: See brconnect.log for details.
    When i checked in brconnect.log i found below error message
    BR0801I BRCONNECT 7.00 (16)
    BR0999E Loading of SQL client library oci.dll failed - please check Oracle configuration
    BR0310E Connect to database instance P47 failed
    BR0280I BRCONNECT time stamp: 2008-04-30 09.10.35
    BR0804I BRCONNECT terminated with errors
    Q))Which oracle version are you using since BRTOOLS 7.0 is desinged to work with Oracle 10g?
    If you are using an oracle 9.2.* it is needed to install oracle instantclient or to downgrade your db tools (brt* tools)......  Through :Forums I came to know that we have to downgrade  the br*tools to
    Could you please help me how to downgrade the Brtools.
    It's urgent.
    Points will be awarded .
    Regards
    Jan.

    Hi janakiram
    Now i am facing the same error which you have faced before, have you solved that issue if it so could you pls help me how to solve this
    Hi All,
    i am in the middle of SAP ECC 5.0 installation .In the Database instance installation at the step 29 database update statistics, system stops giving error
    ERROR 2009-05-24 08:46:44
    CJS-00288 Could not update database statistics.
    DIAGNOSIS: Command brconnect -u / -c -f crsyn -o SAPDB5 returned 3.
    SOLUTION: See brconnect.log for details.
    when i checked in brconnect.log i found below error message
    BR0801I BRCONNECT 7.00 (16)
    BR0999E Loading of SQL client library oci.dll failed - please check Oracle configuration
    BR0310E Connect to database instance DB5 failed
    BR0280I BRCONNECT time stamp: 2009-05-24 08.46.44
    BR0804I BRCONNECT terminated with errors
    Q))Which oracle version are you using since BRTOOLS 7.0 is designed to work with Oracle 10g?
    If you are using an oracle 9.2.* it is needed to install oracle instant client or to downgrade your db tools (brt* tools)...... Through :Forums I came to know that we have to downgrade the br*tools to
    Could you please help me how to downgrade the Brtools or could you please suggest me how to proceed
    please help me
    Thanks
    Senthil

  • Updating task does not update project plan

    In PWA, the following steps are taken
    User updates their time in the task window for a task, than submits this task
    The PM approves the time entry from approval center
    The PM then opens the project from PWA or Project pro and the time that approved for this task is not showing up in the project plan
    This happens in all projects
    Project server is not configured with SEM
    At queue jobs, Job state is "Skipped For Optimization" for status update jobs
    Why is the project not recognizing the time entry?
    Thank you.
    Sincerely, Murad YAGLI, MBA PMP MCT MCPD:EAD MCITP MCSD .NET MCDBA MCAD, www.murady.com

    I am running into this same issue with PWA 2013.  I publish a task, have the resource update it via my tasks in PWA, then Open Pro and Check Progress.  Pro redirects me to the Approvals page in PWA.  I approve the task update, Pro pops several
    message windows asking me to wait while the update is processed.  The update processiong finishes and...
    No progress indicated.  No actual work indicated.  I have tried opening the Working vs. Published version of the schedule.  No difference.  It appears to be something specific to this project schedule, as other schedules work just fine. 
    I have multiple resource assignments on the task in question.  I've checked the assignmnet dates, updated task progress in PWA using various methods including work earlier than planned, as planned, work less than planned, anything to get Pro to reflect
    the update.  Pro rcognizes that there IS an update, indicated in the File / Backstag (Updates pending indicator) but it will not process them. 
    Personally I think the assignment level date in the DB is not being handled when accessed by PRO.  All the data is right if you look in PWA. 

  • Sharepoint 2013, MS Project 2013 - Task List not updating when the project file is changed

    Hi
    I have created a SharePoint task list and timeline from a MS Project 2013 file on my PC. I have then created a new Project file from that task list which then places the new project file in the site asset folder and provides me with a synced copy. I now
    only use the SharePoint copy of the project file in my MS Project as any change I make to the project file should be reflected in the Task list and vice-versa
    However if I add some tasks into the middle of the project with MS project, the SharePoint Task list is not updated to show these additional tasks. If I open the SharePoint task list with MS Project - from the task list toolbar - the project file shows the
    added tasks.....so the MS Project file in the site asset folder is correct  but the tasks in the SharePoint task list is not being updated
    Anyone seen this before ?
    Thanks
    Geoff

    Hi Esben,
    According to your description, the error occurred when opening the task list with the content approval enabled in Project.
    Per my knowledge, when we enable the content approval for the task list, the field named Approval Status which is required will be created in the list.
    However, if a project plan doesn’t contain a field that is required in SharePoint, the plan won’t sync.
    The error occurs because of the required field Approval Status when the content approval is enabled in the task list, so we need to add the required field as a custom field in Project.
    More information:
    Sync with a SharePoint tasks list:
    http://office.microsoft.com/en-in/project-help/sync-with-a-sharepoint-tasks-list-HA102828524.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Oracle 11g upgrade: How to update stale statistics for sys and sysman?

    Hi,
    I am in the process of testing Oracle 11g upgrade from Oracle 10.2.0.3. I have run utlu111i.sql on the 10g database.
    The utility utlu111i.sql reports about the stale statistics for SYS and SYSMAN components.
    I executed dbms_stats.gather_dictionary_stats; dbms_stats.gather_schema_stats('SYS'); and dbms_stats.gather_schema_stats('SYSMAN');
    After that the utlu111i.sql still reports the stale statistics for sys and sysman. Does anyone know how to get rid off this warning successfully?
    Thanks,
    Sreekanth

    Does anyone know how to get rid off this warning successfully?Just ignore the warnings. Check The Utlu111i.Sql Pre-Upgrade Script Reports Stale Sys Statistics - 803774.1 from Metalink.

  • Task Request not updating in Outlook 2010

    My manager has sent me a few Task Requests in Outlook 2010. He receives an email message saying I've accepted the task but he cannot see any notes I write in the task, even though he ticks the "keep an updated copy of the task on my task list". 
    He can just see a copy of the original task he sent to me.
    I am the only one this does not work for, everyone else can see updated tasks absolutely fine and weirdly, if I send him a task and he accepts it, I can see any updates he makes (note that this is without pressing the "send status report" button.)
    Any ideas?

    Hi,
    Actually, we have a dedicated support team regarding the Microsoft Outlook. I recommend you ask your question on our Microsoft Outlook forum which is staffed by more experts specializing in this kind of problems. The above thread Ed Crowley provided is exactly
    the Outlook forum.
    Thanks for your understanding.
    If there is any problem with Exchange Server, welcome to our Exchange forum.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • The Creator of an Assigned Tasks is not Updated when Changed from Mobile Device

    We have a Shared Mailbox where we create Tasks and assign them to the appropriate engineer. In Outlook, if they open and modify the assigned task, after they have accepted it of course, and then save it, a message is received in the Shared Mailbox with the
    update. When that is opened and closed, the task on the Shared Mailbox is updated.
    However, if that Task is updated on a mobile device, WP8.1 in this case, the creator does not get a new message with the changes.  If the assigned user looks at it in Outlook, he/she will see the changes.  But the originator never receives a message
    with the changes.
    Am I missing something or is this by design?  Thank you in advance for any assistance.

    Anyone?

  • IPod not updating iTunes statistics

    I just noticed that my ipod isn't updating the play count, last played or rating changes in my itunes library. It's not clearing the unplayed flag on my podcasts either. Did I accidentally turn something off?

    Is your iPod set for automatic updates, or manual update mode?
    Those stats won't update back to iTunes unless you're in automatic update mode.

  • Office 2013 C2R Update Scheduled Task does not work

    Hi all.
    I am having difficulty getting network deployed updates to work correctly. I installed and older version of Office 2013 with the ODT from a network share and set the update path. I then downloaded an update via ODT.
    The issue is the scheduled task does not update office. If I trigger or manually run from a command prompt "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection modeargs reschedulemode tasktrigger
    scheduledtask updateuitype background” from Task Scheduler nothing seems to happen. Monitoring Task Manager it looks like integratedoffice is called albeit very briefly.
    But, if I run "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection background” from a command prompt Office updates, but if I edit the Scheduled Task to above Office does not update if the
    task is triggered.
    As Office can update if the right command is given it would appear that my config.xml etc is correct. Any ideas on why the Scheduled Task does not work?
    Cheers
    Jakes

    What permissions are set on the location of the updates ? C2R currently needs permissions granted for machine accounts as it runs under that context. This will change at some point that C2R gets updated.

  • Could not update database error while installation

    Hi i am in the middle of 4.7 installation (IDES). At the step 29 database update statistics, system stops giving error
    ERROR 2008-04-30 09:10:35
    CJS-00288  Could not update database statistics.
    <br>DIAGNOSIS: Command brconnect -u / -c -f crsyn -o SAPP47 returned
    3.<br>SOLUTION: See brconnect.log for details.
    Can anybody tell what could be the problem.
    Thanks in advance

    Hi
    Thanks for your reply. Following are the details of file brconnect.log:
    BR0801I BRCONNECT 7.00 (16)
    BR0999E Loading of SQL client library oci.dll failed - please check Oracle configuration
    BR0310E Connect to database instance P47 failed
    BR0280I BRCONNECT time stamp: 2008-04-30 09.10.35
    BR0804I BRCONNECT terminated with errors

  • Worklist FYI task is not visible after updating protectednumberattribute2

    Hi,
    I need you guys help please. The case is that or bpel process is creating a FYI task for user notification where a custom worklist screen is created to retreive FYI tasks for the users.
    If any of the FYI task is later updated with the API, the task becomes invisible in the worklist application and also cannot be retreived with the worklist API.
    Below is the code for retreiving and updating the task. Its an struts action and the init method is executed the first time to display all tasks.
    Later the delete method is invoked and again the init method to see the remaining tasks.
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.List;
    import javax.naming.NamingException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import oracle.bpel.services.workflow.IWorkflowConstants;
    import oracle.bpel.services.workflow.StaleObjectException;
    import oracle.bpel.services.workflow.WorkflowException;
    import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
    import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
    import oracle.bpel.services.workflow.query.ITaskQueryService;
    import oracle.bpel.services.workflow.repos.Ordering;
    import oracle.bpel.services.workflow.repos.Predicate;
    import oracle.bpel.services.workflow.repos.TableConstants;
    import oracle.bpel.services.workflow.task.ITaskService;
    import oracle.bpel.services.workflow.task.model.Task;
    import oracle.bpel.services.workflow.verification.IWorkflowContext;
    import org.apache.commons.dbutils.QueryRunner;
    import org.apache.commons.lang.StringUtils;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.DynaActionForm;
    @SuppressWarnings( { "unchecked", "deprecation" })
    public class Crud extends BaseAction {
         private Log log = LogFactory.getLog(getClass());
         private String getRemoteUser(HttpServletRequest request) {
              boolean isDevMode = Boolean.valueOf(System.getProperty("DEV_MODE"));
              String remoteUser = null;
              if (isDevMode) {
                   if ((remoteUser = request.getParameter("remote_user")) != null)
                        request.getSession().setAttribute("remote_user", remoteUser);
                   else
                        remoteUser = request.getSession().getAttribute("remote_user").toString();
              if (remoteUser == null)
                   remoteUser = request.getHeader("REMOTE-USER");
              return remoteUser;
         public void init(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                   HttpServletResponse response) throws WorkflowException {
              log.debug("init");
              IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory
                        .getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
              String remoteUser = getRemoteUser(request);
              log.debug("remote user: " + remoteUser);
              IWorkflowContext wfCtx = WorkflowUtils.getWorkflowContextOnBehalf(AppProperties
                        .getProperty("weblogic.username"), AppProperties.getProperty("weblogic.password"),
                        AppProperties.getProperty("identityContext"), remoteUser);
              log.debug(wfCtx.getClass());
              ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
              // category is CRUD
              Predicate crudPredicate = new Predicate(TableConstants.WFTASK_CATEGORY_COLUMN,
                        Predicate.OP_EQ, "CRUD");
              // should not be a stale task
              crudPredicate.addClause(Predicate.AND,TableConstants.WFTASK_STATE_COLUMN, Predicate.OP_NEQ,
                        IWorkflowConstants.TASK_STATE_STALE);
              log.debug(crudPredicate);
              List queryColumns = new ArrayList();
              queryColumns.add("TASKID");
              queryColumns.add("TASKNUMBER");
              queryColumns.add("TITLE");
              queryColumns.add("PRIORITY");
              queryColumns.add("STATE");
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE1"); // trxTypeId
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE2"); // trxStatus
              queryColumns.add("PROTECTEDTEXTATTRIBUTE1"); // trxNo
              // List optionalInfo = new ArrayList();
              // optionalInfo.add("PAYLOAD");
              Ordering ordering = new Ordering(TableConstants.WFTASK_TITLE_COLUMN, true, true);
              ordering.addClause(TableConstants.WFTASK_PRIORITY_COLUMN, true, true);
              List<Task> tasksList = querySvc.queryTasks(wfCtx, queryColumns, null,
                        ITaskQueryService.ASSIGNMENT_FILTER_MY, null, crudPredicate, ordering, 0, 0);
              request.setAttribute("CRUD_TASKS", tasksList);
              logTaskAttributes(tasksList);
         public void delete(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                   HttpServletResponse response) throws WorkflowException, StaleObjectException {
              log.debug("delete");
              DynaActionForm deleteForm = (DynaActionForm) form;
              IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory
                        .getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
              ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
              String remoteUser = getRemoteUser(request);
              log.debug("remote user: " + remoteUser);
              IWorkflowContext wfCtx = WorkflowUtils.getWorkflowContextOnBehalf(AppProperties
                        .getProperty("weblogic.username"), AppProperties.getProperty("weblogic.password"),
                        AppProperties.getProperty("identityContext"), remoteUser);
              log.debug(wfCtx.getClass());
              // category is CRUD
              Predicate crudPredicate = new Predicate(TableConstants.WFTASK_CATEGORY_COLUMN,
                        Predicate.OP_EQ, "CRUD");
              // assigned to the remote user
              crudPredicate.addClause(Predicate.AND, TableConstants.ASSIGNEE_ASSIGNEE_COLUMN,
                        Predicate.OP_EQ, remoteUser);
              // task is assigned
              crudPredicate.addClause(Predicate.AND, TableConstants.WFTASK_STATE_COLUMN, Predicate.OP_EQ,
                        IWorkflowConstants.TASK_STATE_ASSIGNED);
              // trxNo
              crudPredicate.addClause(Predicate.AND,
                        TableConstants.WFTASK_PROTECTEDTEXTATTRIBUTE1_COLUMN, Predicate.OP_EQ, deleteForm
                                  .getString("trxNo"));
              // is a draft
              crudPredicate.addClause(Predicate.AND,
                        TableConstants.WFTASK_PROTECTEDNUMBERATTRIBUTE2_COLUMN, Predicate.OP_EQ, Double
                                  .valueOf(Constants.TrxTypeId.DRAFT.getTrxTypeId()));
              log.debug(crudPredicate);
              List queryColumns = new ArrayList();
              queryColumns.add("TASKID");
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE1"); // trxTypeId
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE2"); // trxStatus
              queryColumns.add("PROTECTEDTEXTATTRIBUTE1"); // trxNo
              Ordering ordering = new Ordering(TableConstants.WFTASK_TITLE_COLUMN, true, true);
              ordering.addClause(TableConstants.WFTASK_PRIORITY_COLUMN, true, true);
              Task draftTask = null;
              List<Task> tasksList = querySvc.queryTasks(wfCtx, queryColumns, null,
                        ITaskQueryService.ASSIGNMENT_FILTER_MY, null, crudPredicate, ordering, 0, 0);
              logTaskAttributes(tasksList);
              if (tasksList!=null && tasksList.size() > 0)
                   draftTask = tasksList.get(0);
              if (draftTask == null)
                   return;
              try {
                   // settting the task status to Constants.TrxTypeId.DELETED
                   log.debug("update from: "
                             + draftTask.getSystemMessageAttributes().getProtectedNumberAttribute2());
                   draftTask.getSystemMessageAttributes().setProtectedNumberAttribute2(
                             Double.valueOf(Constants.TrxTypeId.DELETED.getTrxTypeId()));
                   wfSvcClient.getTaskService().updateTask(wfCtx, draftTask);
                   log.debug("updated to: "
                             + draftTask.getSystemMessageAttributes().getProtectedNumberAttribute2());
                   c.commit();
              } catch (Exception e) {
                   log.error(e, e);
         private void logTaskAttributes(List<Task> tasksList) {
              // log.debug("task:" + task + " payload: "
              // + (task.getPayload() == null ? "null" :
              // task.getPayload().getContent()));
              log.debug("***********");
              for (Task task : tasksList) {
              log.debug("\ttask owner:" + task.getOwnerUser());
              log.debug("task state:" + task.getSystemAttributes().getState());
              // log.debug("task assigned date:" +
              // task.getSystemAttributes().getAssignedDate());
              log.debug("task status :"
                        + task.getSystemMessageAttributes().getProtectedNumberAttribute2());
              log.debug("task id :" + task.getSystemAttributes().getTaskId());
              log.debug("***********");
    Please help,
    Regards
    Mehdi

    Hi ,
      I am executing the WEbservice using WSNAVIGATOR but its not execute , its getting HTML log error as  below..
    1-Web service returned error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Server" Fault String: "Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE"
    2-
    HTTP/1.1 500 Internal Server Error
    server: SAP NetWeaver Application Server 7.20 / AS Java 7.20
    content-type: text/xml; charset=utf-8
    date: Sat, 26 Nov 2011 11:40:56 GMT
    transfer-encoding: chunked
    Set-Cookie: <value is hidden>
    2e4
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE</faultstring><detail><yq1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException xmlns:yq1='http://sap-j2ee-engine/error'>Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE</yq1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    0
    Thnaks
    Sudhir

  • "This task could not be updated at this time" Error in Outlook 2010 on Workflow Form

    Hi,
    I have setup a workflow to send task notifications to users and am getting an error when attempting to act on the InfoPath based workflow task form that appears in Outlook 2010 when clicking on the "Edit this task" button.  After clicking Approve, the
    form disappears, but after a few seconds a dialog box appears that says:
    "This task could not be updated at this time"
    The funny thing is that the task actually does get updated, but there is often a delay in doing so.  Does this warning appear because the server has a backup of workflow items to deal with?  I saw that in 2007 it meant something wasn't properly
    installed with InfoPath, but I am not sure if that is the case here or not.  Any guidance would be appreciated.
    I am using Office 2010 and SharePoint Server 2010.

    I have the same issue. If I had to guess it's because the workflow in question goes stale and has to recompile, thus it times out on the client even thou it gets submitted to the server so it eventually processes.
    Now either they need a longer time out fix, or we need some way to keep the workflow actively in memory somehow on our end for it to not do it. Preferably the longer timeout method would be best to save on ram, but I bet in bigger environments or workflows
    that get used often this won't be the issue.
    You can pretty much reproduce this if you have 2 tasks from the same workflow, the first one will give the error. then after that if you wait a minute for the workflow to get going, then close your 2nd task, it will be instant. So it's something with the
    way it's getting garbage collected and having to recompile that's causing this delay with the client and a timeout just needs extended or something to give the server a chance to finish loading up the workflow.
    Also there is a good article explaining reasons and solutions:
    http://social.technet.microsoft.com/wiki/contents/articles/2271.aspx
    Best Regards,
    Megren|Blog 

  • Update Row into Run Table Task is not executing in correct sequence in DAC

    Update Row into Run Table Task is not executing in correct sequence in DAC.
    The task phase for this task is "Post Lost" . The depth in the execution plan is 19 but this task is running some times in Depth 12, some times in 14 and some time in Depth 16. Would like to know is this sequence of execution is correct order or not? In the out of the Box this task is executed at the end of the entire load. No Errors were reported in DAC log.
    Please let me know if any documents that would highlight this issue
    rm

    Update into Run table is a task thats required to update a table called W_ETL_RUN_S. The whole intention of this table is to keep the poor mans run history on the warehouse itself. The actual run history is stored in the DAC runtime tables, however the DAC repository could be on some other database/schema other than warehouse. Its mostly a legacy table, thats being carried around. If one were to pay close attention to this task, it has phase dependencies defined that dictate when this task should run.
    Apologies in advance for a lengthy post.... But sure might help understanding how DAC behaves! And is going to be essential for you to find issues at hand.
    The dependency generation in DAC follows the following rules of thumb!
    - Considers the Source table target table definitions of the tasks. With this information the tasks that write to a table take precedence over the tasks that reads from a table.
    - Considers the phase information. With this information, it will be able to resolve some of the conflicts. Should multiple tasks write to the same table, the phase is used to appropriately stagger them.
    - Considers the truncate table option. Should there be multiple tasks that write to the same table with the same phase information, the task that truncates the table takes precedence.
    - When more than one task that needs to write to the table that have similar properties, DAC would stagger them. However if one feels that either they can all go in parallel, or a common truncate is desired prior to any of the tasks execution, one could use a task group.
    - Task group is also handy when you suspect the application logic dictates cyclical reads and writes. For example, Task 1 reads from A and writes to B. Task 2 reads from B and writes back to A. If these two tasks were to have different phases, DAC would be able to figure that out and order them accordingly. If not, for example those tasks need to be of the same phase for some reason, one could create a task group as well.
    Now that I described the behavior of how the dependency generation works, there may be some tasks that have no relevance to other tasks either as source tables or target tables. The update into run history is a classic example. The purpose of this task is to update the run information in the W_ETL_RUN_S with status 'Completed' with an end time stamp. Because this needs to run at the end, it has phase dependency defined on it. With this information DAC will be able to stagger the position of execution either before (Block) or after (Wait) all the tasks belonging to a particular phase is completed.
    Now a description about depth. While Depth gives an indication to the order of execution, its only an indication of how the tasks may be executed. Its a reflection of how the dependencies have been discovered. Let me explain with an example. The tasks that have no dependency will have a depth of 0. The tasks that depend on one or more or all of depth 0 get a depth of 1. The tasks that depend on one or more or all of depth 1 get a depth of 2. It also means implicitly a task of depth 2 will indirectly depend on a task of depth 0 through other tasks in depth 1. In essence the dependencies translate to an execution graph, and is different from the batch structures one usually thinks of when it comes to ETL execution.
    Because DAC does runtime optimization in the order in which tasks are executed, it may pick a task thats of order 1 over something else with an order of 0. The factors considered for picking the next best task to run depend on
    - The number of dependent tasks. For example, a task which has 10 dependents gets more priorty than the one whose dependents is 1.
    - If all else equal, it considers the number of source tables. For example a task having 10 source tables gets more priority than the one that has only two source tables.
    - If all else equal, it considers the average time taken by each of the tasks. The longer running ones will get more preference than the quick running ones
    - and many other factors!
    And of course the dependencies are honored through the execution. Unless all the predecessors of a task are in completed state a task does not get picked for execution.
    Another way to think of this depth concept : If one were to execute one task at a time, probably this is the order in which the tasks will be executed.
    The depth can change depending on the number of tasks identified for the execution plan.
    The immediate predecessors and successor can be a very valuable information to look at and should be used to validate the design. All predecessors and successors provide information to corroborate it even further. This can be accessed through clicking on any task and choosing the detail button. You will see all these information over there. As an alternate method, you could also use the 'All/immediate Predecessors' and 'All/immediate Successor' tabs that provide a flat view of the dependencies. Note that these tabs may have to retrieve a large amount of data, and hence will open in a query mode.
    SUMMARY: Irrespective of the depth, validate
    - if this task has 'Phase dependencies' that span all the ETL phases and has a 'Wait' option.
    - click on the particular task and verify if the task does not have any successors. And the predecessors include all the tasks from all the phases its supposed to wait for!
    Once you have inspected the above two you should be good to go, no matter what the depth says!
    Hope this helps!

Maybe you are looking for

  • How do I add a homail account to Leopard Mail?

    Hi, I have a Hotmail account (ending in @hotmail.co.uk) that I pay a subscription for. I'd like to add this account to Mail, where I already get my AOL mail. Does anyone know the mumbo jumbo I have to type in to set it up? I have no idea what POPs an

  • Problem exporting file with spot colors to pdf

    I have a book which I designed in InDesign CS3. It has 150 images in it which are Photoshop eps files: black line drawings with a spot color fill. InCS3, when I needed to send files back and forth to the publisher, the eps files came out fine in any

  • How to read a Header Attachment in Item component ??

    Dear Experts, My Scenario is as follows : 1. In quotation Overview page ( BT115QH_SLSQ/SQHOverView ),  I have an assisngment block call 'Attachments'. User can create URL attachment here. It is Std. Attachment ( component GS_CM , view Doclist ) Assig

  • Serial Number UDF's Not Uploadable Thru DTW

    Hi, Our current warehouse is setup as serial number managed.  We had to create some UDF's in the serial number table to satisfiy some of our requirements. The problem I have is that I am unable to make a customize template for serial numbers via DTW

  • Why does my CC update box say version 6.05 is up to date?

    I thought the CC update box (on the desktop) showed if your CC programs were completely up to date.  My adobe premiere version is CC 6.0.5.  But 7.0 has been out for months.  Is there a lag time on updates done through the CC updater? Confused.