DBMS_ADVISOR execute task

Since the upgrade from Oracle 10 to 11 I see that DBMS_ADVISOR.EXECUTE_TASK() fails with error message:
ORA-01843: not a valid month
ORA-06512: at "SYS.DBMS_ADVISOR", line 201
ORA-06512: at line 30I tried to look in dbmsadv.sql but couldn't find the reason. It used to work with Oracle 10.

Could someone give me some suggestion as to why I am getting invalid month? Below is my sqlset. This worked fine with 10g:
spool output.dat
--Create SQL Workload - easily done with the statements gathered in a snapshot.
--For example, from 7am to 8am, snapid range is 3153 - 3154
#Use this for new SQLSET
exec DBMS_SQLTUNE.DROP_SQLSET('E_TEST_SQLSET');
exec DBMS_SQLTUNE.CREATE_SQLSET('E_TEST_SQLSET');
declare
  baseline_ref_cursor DBMS_SQLTUNE.SQLSET_CURSOR;
begin
  open baseline_ref_cursor for
     select value(p) from table (DBMS_SQLTUNE.SELECT_WORKLOAD_REPOSITORY(9027, 9029,  'execut
ions > 1 and disk_reads > 100', NULL, 'disk_reads')) p;
  DBMS_SQLTUNE.LOAD_SQLSET('E_TEST_SQLSET', baseline_ref_cursor);
end;
--To see what qualifies for analysis execute the following
set long 1024
select SQL_TEXT from table(DBMS_SQLTUNE.SELECT_SQLSET('E_TEST_SQLSET'));
--To analyize the tuning set:
VARIABLE name VARCHAR2(20)
begin
  :name := 'E_TEST_WORKLOAD';
  :task_name := 'E_SQLACCESS_TASK';
  DBMS_ADVISOR.DELETE_TASK (:task_name);
  DBMS_ADVISOR.DELETE_SQLWKLD(:name);
  DBMS_ADVISOR.CREATE_SQLWKLD(:name);
end;
variable saved_stmts NUMBER
variable failed_stmts NUMBER
begin
  DBMS_ADVISOR.IMPORT_SQLWKLD_STS('E_TEST_WORKLOAD', 'E_TEST_SQLSET', 'NEW', 1, :saved_st
mts, :failed_stmts);
end;
PRINT saved_stmts
PRINT failed_stmts
VARIABLE task_id NUMBER
VARIABLE task_name VARCHAR2(255)
begin
       :task_name := 'E_SQLACCESS_TASK';
       DBMS_ADVISOR.CREATE_TASK ('SQL Access Advisor', :task_id, :task_name);
end;
PRINT task_id
--Now we need to associate the SQL Workload with the Tuning Task:
begin
    DBMS_ADVISOR.ADD_SQLWKLD_REF('E_SQLACCESS_TASK', 'E_TEST_WORKLOAD');
end;
PRINT task_name
--Now execute the advisor task
begin
       DBMS_ADVISOR.EXECUTE_TASK('E_SQLACCESS_TASK');
     end;
SELECT rec_id, action_id, substr(command,1,30) AS command
     FROM user_advisor_actions
     WHERE task_name = :task_name
     ORDER BY rec_id, action_id;
create directory advisor_results as '/tmp/tunedir';
exec DBMS_ADVISOR.CREATE_FILE(DBMS_ADVISOR.GET_TASK_SCRIPT(:task_name), 'DUMPDIR', 'sts_scrip
t.sql');
-- Rank based on cost
SELECT r.type, r.Rank, r.benefit, f.impact_type, f.impact, f.message
FROM dba_advisor_recommendations r, dba_advisor_findings f
WHERE r.task_name = 'TASK_4502' AND r.finding_id = f.finding_id AND r.task_id =  f.task_id
ORDER BY r.rank ASC, r.benefit DESC;I get
TASK_NAME
E_SQLACCESS_TASK
begin
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01843: not a valid month
ORA-06512: at "SYS.DBMS_ADVISOR", line 201
ORA-06512: at line 2

Similar Messages

  • Execute Task works in one area but not the other

    I have two Execute SQL Tasks.  Each executes the same stored procedure from the SQL Statement property with a different parameter and they insert into the same table.  One is at the end of the package and only runs if a Rollback
    is done and it works fine.  The other runs when a script is performed and returns Failure.  When I run the other package and the Script fails the Execute SQL Task gets a green check mark but the table is not updated.
    I've messed with the properties and still no luck. 
    I can right-click on the SQL Task choose "Execute Task" and it works.
    I've run out of ideas.

    uspGenerateTasksForFailedSSISPackage is a stored procedure that inserts into a table. 
    ALTER PROCEDURE [dbo].[uspGenerateTasksForForFailedSSISPackage] 
     @strTaskDescription varchar(max) = NULL
     WITH RECOMPILE
    AS
    BEGIN
    SET NOCOUNT ON;
     Declare
      @dtEnteredDateAndDueDate date = GetDate(),
      @intTodoCategoryCode int = 13,
      @strEnteredBy varchar(20) = 'AUTO'
       INSERT INTO ToDos (UserID, EnteredBy, EnteredDate, DueDate, Description, CategoryCode)
       Values (@strEnteredBy, @dtEnteredDateAndDueDate, @dtEnteredDateAndDueDate, @strTaskDescription, @intTodoCategoryCode)

  • Problem executing task in consolidation monitor

    Hello
    I have a small issue i get the following error message when i try to test executing a task in cons monitor for load from data stream
    Task 001001 cannot be executed in period 001
    Message no. UCS0150
    Diagnosis
    No method with a period category containing period 001 is assigned to task 001001 in version 111 for the time period 2008/001.
    System Response
    Task cannot be executed in period 001.
    Procedure
    If you still want to execute task 001001 in period 001, you need to use period categories that contain period 001 in the customizing settings of the task when you assign a method.
    Here I am trying to collect data using Load from Data Stream, I have defined the method and I am able to test the same in consolidation workbench
    But the same does not work in consolidation monitor
    why??
    Following are defined :
    Method for Load from Data stream
    Method
    Task
    In consolidatin monitor I have
    Hierarchy
    task group and task.
    Regards
    sameer

    Hi Sameer K
    Now I got the same error message, when executing data collection task in cons monitor.
    I did as per inputs provided by you in this thread.  But it was not work.
    Let us explain what occur in my end is i changes period category in data collection task and then save it. After than I close the session and reopen, what ever i changes earlier was not appearing in my workbench in Data collection task.
    Configuration in Data Collection task was:
    Cons Freq: Monthly
    Period Category: All method follows same method.  In this we maintain 1 to 12 periods
    Assign method: Depends on Company (I configred data collection method for each company)
    Pls provide inputs to resolve
    Madhu

  • Error Task Sequence Manager failed to execute task sequence. Code 0x80004005 TSManager

    Dear All,
    I need your Help, as I am getting below mention error in deployment of OS through MDT 2013.
    Expand a string: WinPEandFullOS    TSManager    6/5/2014 11:40:50 AM    1464 (0x05B8)
    Executing command line: cscript.exe "%SCRIPTROOT%\LTIApply.wsf"    TSManager    6/5/2014 11:40:50 AM    1464 (0x05B8)
    Process completed with exit code 5627    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    !--------------------------------------------------------------------------------------------!    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Failed to run the action: Install Operating System.
    Unknown error (Error: 000015FB; Source: Unknown)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Sending status message . . .    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Executing in non SMS standalone mode. Ignoring send a task execution status message request    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Set a global environment variable _SMSTSLastActionRetCode=5627    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Set a global environment variable _SMSTSLastActionSucceeded=false    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Clear local default environment    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Let the parent group (Install) decides whether to continue execution    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    The execution of the group (Install) has failed and the execution has been aborted. An action failed.
    Operation aborted (Error: 80004004; Source: Windows)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Failed to run the last action: Install Operating System. Execution of task sequence failed.
    Unknown error (Error: 000015FB; Source: Unknown)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Sending status message . . .    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Executing in non SMS standalone mode. Ignoring send a task execution status message request    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:\nts_sms_fre\sms\client\tasksequence\tsmanager\tsmanager.cpp,767)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Task Sequence Engine failed! Code: enExecutionFail    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    ****************************************************************************    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Task sequence execution failed with error code 80004005    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Cleaning Up. Removing Authenticator    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Cleaning up task sequence folder    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    DeleteFileW(sVolumeIDFile.c_str()), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,508)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    DeleteFileW(sVolumeIDFile.c_str()), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,508)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Successfully unregistered Task Sequencing Environment COM Interface.    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Command line for extension .exe is "%1" %*    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Set command line: "X:\Deploy\Tools\X86\TsProgressUI.exe" /Unregister    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Executing command line: "X:\Deploy\Tools\X86\TsProgressUI.exe" /Unregister    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    ==========[ TsProgressUI started in process 320 ]==========    TsProgressUI    6/5/2014 11:51:18 AM    552 (0x0228)
    Command line: "X:\Deploy\Tools\X86\TsProgressUI.exe" /Unregister    TsProgressUI    6/5/2014 11:51:18 AM    552 (0x0228)
    Unregistering COM classes    TsProgressUI    6/5/2014 11:51:18 AM    552 (0x0228)
    Unregistering class objects    TsProgressUI    6/5/2014 11:51:18 AM    552 (0x0228)
    Shutdown complete.    TsProgressUI    6/5/2014 11:51:18 AM    552 (0x0228)
    Process completed with exit code 0    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Successfully unregistered TS Progress UI.    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    g_TSManager.Run(), HRESULT=80004005 (e:\nts_sms_fre\sms\client\tasksequence\tsmanager\tsmanager.cpp,657)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Sending error status message    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    In non SMS staqndalone mode.Ignoring SendStatusMessage request    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Finalizing logging from process 1456    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Finalizing logs to root of first available drive    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Successfully finalized logs to C:\SMSTSLog    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Cleaning up task sequencing logging configuration.    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Deployment is going failed.
    Regards
    Sachi

    Note:Only mass storage device drivers and network adapter device drivers should be added to boot images because other types of
    drivers are not needed and will increase the size of the boot image:
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • UCBATCH00 and UCBATCH01 execute task

    Hi All,
    I have to upload my consolidation data in SEM BCS using a task. WE have two program UCBATCH00 to execute a task. When i use this program in foreground then it gives me statistical report about uploaded data. When ever i execute the same program in background then it does not create any report in spool.
    I have to schedule this program in background and need a statistical report in spool for do the analysis later on.
    There is another program UCBATCH01 (Schedule and Execute Task). Even though this program does not create any report in spool when i schedule in background.
    I need to execute my task in background and need a statistical report in spool to analyse later on.
    Thanks in advance.
    Regards
    Praff

    Hi Sayed,
    My apologies. I have a similar query on the Bangladesh slabwise query you posted earlier. If you could, please kindly share with me how do you configure for Bangladesh WHT requirements.
    If you could, please reply to the message that you posted earlier on the query for Bangladesh WHT with your solution.
    Hope to hear from you soon as I am also encountering a similar requirement from my client for Bangladesh too.
    Thanks!
    Cheers,
    Orange

  • Errors when attempt to execute task 'Approve and Deploy to Product'

    Hello all,
    I updated the pricelists from BCC, an error occurred when I attempted to execute task 'Approve and Deploy to Production', it shows ‘atg.epub.workflow.process.WorkflowProcessResources->invalidTargetName : There is no target with the given name Production.’
    Here is the ATGPublishing server error log:
    atg.process.action.ActionException: atg.epub.workflow.process.WorkflowProcessResources->invalidTargetName : There is no target with the given name Production.
    Can anyone tell me how to resolve this error. Thank you in advance.

    Check this in your production BCC component browser.
    /dyn/admin/nucleus/atg/epub/workflow/process/WorkflowProcessManager/?action=seedefinition&process=/Commerce/editCommerceAssets.wdl
    Search for approveAndDeployProject, you will find the target. Make sure its correct and same String value is used in BCC when creating sites.
    And make
    atg/epub/Configuration.properties
    queryWorkflowTargetByID=false
    Otherwise send me the contents from dyn/admin
    Peace
    Shaik

  • Object instance 1200 does not exist (while executing task SWUS)

    hello all,
    i have created a workflow class and two methods (constructor, display) and 1 attribute PLANT (instance,public) in it.
    i am using this class and display method in task t code PFTC.
    While executing this task from SWUS , i am getting this error.Object instance 1000 does not exist.
    As i was going through this blog. i have created everything exactly just like it is mentioned there.
    But still i am getting this error. please guide me to detect where i am mistaken.
    http://scn.sap.com/community/bpm/business-workflow/blog/2006/07/25/using-abap-oo-methods-in-workflow-tasks
    this is class screen-shot and error i am facing while executing the task.
    The methods which are implemented using the interface are emtpy(don't contain any source code lines).

    sorry i forgot to mention that input value 1000 does exist in our system.
    i have also tried F4 help. it is showing all existing plants in our system, but still it is not accepting values select from f4 help.
    Also to add information,
    I have executed class using F8 option in class builder, and it is working perfect.
    source code of display method.(i am trying to view plant in display method just like in blog).
    method DISPLAY.
    break-point.
       data: ls_vt001w type v_t001w.
       CLEAR ls_vT001W.
       ls_VT001W-MANDT = SY-MANDT.
       ls_VT001W-WERKS = me->PLANT.
       CALL FUNCTION 'VIEW_MAINTENANCE_SINGLE_ENTRY'
         EXPORTING
           ACTION    = 'SHOW'
           VIEW_NAME = 'V_T001W'
         CHANGING
           ENTRY     = ls_vT001W.
    endmethod.

  • CannotUser execute task -- " anonymous " has not been assigned task

    Hi,
    I'm trying to build a prototype a workflow using WLI Integration(WLPI).
    I've created a workflow using WLPI Studio and am able to start the instances using
    JMS messages. However, when I try to execute one of the task which I 've assigned
    to user "admin" I get the following error. Please note that I have connected to
    WLPI using "admin" user only and got a handle to worklist. It seems to be an issue
    with security realm but I'm not able to figure out what it is...Can somebody help
    me on it???
    <Mar 26, 2003 5:46:55 PM EST> <Error> <BPM> <500212> <<wlpirequest>
    <started>2003-03-26 17:46:55.332</started>
    <requestor><anonymous></requestor>
    <templateid>1</templateid>
    <template-name>Test</template-name>
    <templatedefinitionid>1</templatedefinitionid>
    <instanceid>22001</instanceid>
    <actions>
    <error time="2003-03-26 17:46:55.362">WorkflowException: User "<anonymous>"
    has not been assigned task "Identify Samp
    les".</error>
    </actions>
    <completed>2003-03-26 17:46:55.372</completed>
    </wlpirequest>
    >
    User "<anonymous>" has not been assigned task "Identify Samples".
    User "<anonymous>" has not been assigned task "Identify Samples".

    Firstly Thanks for the response Chris.
    I'm not using any combination of older version of WLS and 7.0. I've downloaded
    the trial version of weblogic platform 7.0 and working on it.
    I forgot to mention one thing that in order to fix the problem I have modified
    the wlpi-ejb.jar to removethe method permissions.
    Chris Stead <[email protected]> wrote:
    Vinkal,
    Since I see the requester identified as <anonymous>, I am assuming you
    are trying some combination of inter operability between older versions
    of WLS and 7.0. If that is the case, the following link may provide
    some insight for your problem:
    http://edocs.bea.com/wls/docs70/upgrade/upgrade6xto70.html#1050157
    The only caveat is the fact that you are logged in as admin, which
    should be an authenticated user for BPM, therefore not represented by
    the guest user...Have you modified the permissions of the admin user?
    Specifically removed the Execute_Template permission from admin?
    Cheers,
    Chris
    Vinkal wrote:
    Hi,
    I'm trying to build a prototype a workflow using WLI Integration(WLPI).
    I've created a workflow using WLPI Studio and am able to start theinstances using
    JMS messages. However, when I try to execute one of the task whichI 've assigned
    to user "admin" I get the following error. Please note that I haveconnected to
    WLPI using "admin" user only and got a handle to worklist. It seemsto be an issue
    with security realm but I'm not able to figure out what it is...Cansomebody help
    me on it???
    <Mar 26, 2003 5:46:55 PM EST> <Error> <BPM> <500212> <<wlpirequest>
    <started>2003-03-26 17:46:55.332</started>
    <requestor><anonymous></requestor>
    <templateid>1</templateid>
    <template-name>Test</template-name>
    <templatedefinitionid>1</templatedefinitionid>
    <instanceid>22001</instanceid>
    <actions>
    <error time="2003-03-26 17:46:55.362">WorkflowException: User "<anonymous>"
    has not been assigned task "Identify Samp
    les".</error>
    </actions>
    <completed>2003-03-26 17:46:55.372</completed>
    </wlpirequest>
    User "<anonymous>" has not been assigned task "Identify Samples".
    User "<anonymous>" has not been assigned task "Identify Samples".

  • Malformed URL when executing task flow

    Dear Gurus,
    when executing a recently created task flow in my project,after authentication, I get a 401 error message. I have applied the authenitcated-role in my task flow in jan-data.xml file, so this error does not make sense.
    However, i have noticed that in the formed URL there is something strange. In the adf.tfId= part of the URL, the id of the task flow mentioned is different from the adf.tfDoc= part, where the actual XML file of the task flow is mentioned. The id of the task flow in adf.tfId belongs to another task flow.
    Below, the created URL is depicted
    http://127.0.0.1:7101/HERA-Gui-context-root/faces/adf.task-flow?adf.tfId=gui-authentication-flow&adf.tfDoc=/WEB-INF/advanced-authentication-flow.xml&_afrLoop=14818531247046&_afrWindowMode=0&Adf-Window-Id=w0&_adf.no-new-window-redirect=true
    When I manually change the adf.tfId to the id of the task flow I want to run, the task flow runs normally.
    Can somebody explain me what is wrong?

    Hi..
    Check whether here is some point to you
    http://cn.forums.oracle.com/forums/thread.jspa?threadID=1063589

  • Executable task name 200429

    I'm using LV8.5 with NI-DAQmx 8.6.  Getting error code -200429 "Value passed to the Task?Channels In control is an empty string (or I/O control).  The value must refer to a valid task or valid channel"
    This error is intermittent, meaning sometimes it works, and sometimes it doesn't .. although it works most of the time.  However, the error only ever occurs with the executable version of the code, not in the development environment.  I have an indicator telling me the task name just before going into the sub vi where the error occurs (usually something like "_unnamedTask<1E1>"), but the indicator passed out of the sub vi that tells me the task name within shows a blank name ... thus the error.  So it appears the task name/reference is not be passed into the sub vi.  Any clues?
    -John
    Solved!
    Go to Solution.

    Post your VI's so we can see what is going on inside.

  • Error executing task

    Hi all,
    I'm getting the following exception when I try to execute a task:
    java.lang.NullPointerException
    at
    com.bea.wlpi.server.worklist.WorklistBean.taskExecute(WorklistBean.ja
    va:533)
    at
    com.bea.wlpi.server.worklist.WorklistBean_1nnm8f_EOImpl.taskExecute(W
    orklistBean_1nnm8f_EOImpl.java:782)
    at
    com.bea.wlpi.server.worklist.WorklistBean_1nnm8f_EOImpl_WLSkel.invoke
    (Unknown Source)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:296)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:265)
    at
    weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:166
    at
    weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:
    92)
    at
    weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:11
    2)
    Any ideas?
    Egor Savotchkin

    Why are the server and the agent on the same machine? This is a complete violation of the most basic principles of auditing and separation.
    My recommendation would be to install on a completely different server.
    If for some reason you can not do so then you will need to post the commands you used to install the agent and the corresponding pieces of the AV Server install so that we can see what you did incorrectly.
    At this point all I can see is that the agent can not communicate with the server which points to where you pointed the agent when you installed it.

  • Execute Task in PAPI

    Hi Guys!
    I need to know how to run a Task type Decision by PAPI in Oracle BPM Standallone in version 10r3
    Can anyone help?
    Thanks!

    Hi all,
    I need to execute a business decision(Activity type decision), I believe only exists in version Oracle 10r3. If I'm wrong can exist also in version 6.04.
    In my code below, I can get the variables of the activity of decision, but must also get the buttons that the user can click, so when I run on your device the activity I can inform pro BPM server, which was the user selected.
    System.out.println("Mapping Decision Values");
    int mapsize = session.instanceGetData(instance).asMap().size();
    java.util.Iterator obj = session.instanceGetData(instance).asMap().entrySet().iterator();
    for (int i = 0; i < mapsize; i++)
    Map.Entry entry = (Map.Entry) obj.next();
    Object key = (Object) entry.getKey();
    Object value = (Object) entry.getValue();
    System.out.println("Key : "+key.toString()+" - "+"Value: "+value.toString());
    Thank's
    Regards

  • SSIS Sql Execute task

    I have two variables say @[User::X] and @[User::Y]. Both are of String data type.  I found the value of X dynamically using some expression in Expression Task and Y is default path.
    Now how to add these two variables and store the result in another variable so that the third variable can be passed to a script task for further checking.
    Anyone help me please.
    Thanks in advance.

    Create a new variable of type String, set EValuateAsExpression as True for it and set expression as
    @[User::X] + @[User::Y]
    In case X and Y holds numerical value and you want to perform integer arithmetic then it should be this
    (DT_I4) @[User::A] + (DT_I4)@[User::B]
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Execute task in background

    Hello,
    I want to load up to nine panels in a TilePane. For each pane I have to run frist an computation of the content (about 300ms) and second have to build the Panel (about 500ms). What I want is, that there are nine ProgressIndicators which exchanges with every panel after its computation.
    I tried it with the Platform.runlater command as well as with a service class. The result was always the same. The ProgressIndicator are shown, but not animated. After seconds there all all panels at once.
    Is there a possibility, that the Indicators are animated the hole time and that I can exchange them one after another?
    Best Regards,
    Tobias Wilker

    Thanks for the help. This is how I solved the problem:
    import java.util.Random;
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.beans.property.SimpleDoubleProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.concurrent.Service;
    import javafx.concurrent.Task;
    import javafx.concurrent.Worker;
    import javafx.concurrent.Worker.State;
    import javafx.geometry.Insets;
    import javafx.scene.Group;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.ProgressBar;
    import javafx.scene.control.ProgressIndicator;
    import javafx.scene.layout.StackPane;
    import javafx.scene.layout.TilePane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    public class Minimal extends Application {
         private TilePane loadPane;
         private ProgressIndicator[] indicators = new ProgressIndicator[9];
         private Label loading[] = new Label[9];
         private Color[] colors = {Color.BLACK,Color.BLUE,Color.CRIMSON,Color.DARKCYAN,Color.FORESTGREEN,Color.GOLD,Color.HOTPINK,Color.INDIGO,Color.KHAKI};
         private int counter = 0;
         @Override
         public void start(Stage primaryStage) throws Exception {
              //creating Layout
              final Group root = new Group();                                        
              Scene scene = new Scene(root, 400, 400);               
              primaryStage.setScene(scene);
              primaryStage.setResizable(false);
              StackPane waitingPane = new StackPane();
              final ProgressBar progress = new ProgressBar();
              Label load = new Label("loading things...");
              progress.setTranslateY(-25);
              load.setTranslateY(25);
              waitingPane.getChildren().addAll(new Rectangle(400,400,Color.WHITE),load,progress);
              root.getChildren().add(waitingPane);
              //Task for computing the Panels:
              Task<Void> task = new Task<Void>() {
                   @Override
                   protected Void call() throws Exception {
                        for (int i = 0; i < 20; i++) {
                        try {
                            Thread.sleep(new Random().nextInt(1000));
                        } catch (InterruptedException ex) {
                            ex.printStackTrace();
                        final double prog = i*0.05;
                        Platform.runLater(new Runnable() {
                            public void run() {
                                progress.setProgress(prog);
                        return null;
              //stateProperty for Task:
              task.stateProperty().addListener(new ChangeListener<Worker.State>() {
                   @Override
                   public void changed(ObservableValue<? extends State> observable,
                             State oldValue, Worker.State newState) {
                        if(newState==Worker.State.SUCCEEDED){
                             loadPanels(root);
              //start Task
              new Thread(task).start();
              primaryStage.show();
         private void loadPanels(Group root) {
              //change to loadPanel:
              root.getChildren().set(0,createLoadPane());
              //Service:
              final Service<Rectangle> RecBuilder = new Service<Rectangle>() {
                    @Override protected Task<Rectangle> createTask() {
                         return new Task<Rectangle>() {
                              @Override protected Rectangle call() throws InterruptedException {
                                   updateMessage("loading rectangle . . .");
                                  updateProgress(0, 10);
                                  for (int i = 0; i < 10; i++) {
                                    Thread.sleep(100);
                                  updateMessage("Finish!");
                                  return new Rectangle((380)/3,(380)/3,colors[counter]);
              //StateListener
              RecBuilder.stateProperty().addListener(new ChangeListener<Worker.State>() {
                   @Override public void changed(ObservableValue<? extends Worker.State> observableValue,
                                       Worker.State oldState, Worker.State newState) {
                        switch (newState) {
                        case SCHEDULED:
                             break;
                        case READY:
                        case RUNNING:
                            break;
                        case SUCCEEDED:
                            Rectangle rec = RecBuilder.valueProperty().getValue();
                            indicators[counter].progressProperty().unbind();
                            loading[counter].textProperty().unbind();
                            loadPane.getChildren().set(counter, rec);
                            if(counter<8){
                                 counter++;
                                 nextPane(RecBuilder);
                            break;
                        case CANCELLED:
                        case FAILED:
                            loading[counter].textProperty().unbind();
                            loading[counter].setText("Failed!");
                            if(counter<8){
                                 counter++;
                                 nextPane(RecBuilder);
                             break;
              //begin PanelBuilding:
              nextPane(RecBuilder);
         private void nextPane(Service<Rectangle> recBuilder) {
              loading[counter].textProperty().bind(recBuilder.messageProperty());
              indicators[counter].visibleProperty().bind(recBuilder.progressProperty().isNotEqualTo(new SimpleDoubleProperty(ProgressBar.INDETERMINATE_PROGRESS)));
              recBuilder.restart();
         private Node createLoadPane() {
              loadPane = new TilePane(5,5);
              loadPane.setPrefColumns(3);
              loadPane.setPadding(new Insets(5));
              for(int i=0;i<9;i++){
                   StackPane waitingPane = new StackPane();
                   Rectangle background = new Rectangle((380)/3, (380)/3, Color.WHITE);
                   indicators[i] = new ProgressIndicator();
                   indicators.setPrefSize(50, 50);
                   indicators[i].setMaxSize(50, 50);
                   indicators[i].setTranslateY(-25);
                   indicators[i].setTranslateX(-10);
                   loading[i] = new Label();
                   loading[i].setTranslateY(25);
                   waitingPane.getChildren().addAll(background,indicators[i],loading[i]);
                   loadPane.getChildren().add(waitingPane);
              return loadPane;
         public static void main(String[] args) {
              launch(args);

  • Failed executing task 'RUN_PHASE_!_CONVERTER':Error #3123:Database disk image is malformed.

    help!?

    Hi,
    I'm very sorry to hear about the 3123 error. This error is a very low level error from the underlying database Muse uses. It typically indicates the file has been corrupted by something outside of Muse (i.e. failed file transfer, failed file synchronization, file on media that was removed without being ejected, etc.),
    Was the file stored in a synchronized folder (i.e. Dropbox, Creative Cloud Connection, other) or on a server?
    It would be helpful if you could send us the .muse file at [email protected] along with a link to this thread. (If the file is larger than 20Mb you can use a service like Adobe SendNow, SendThisFile or WeTransfer.)
    It's very rare that a file that reports this error can be repaired, but if possible we'll repair the file. Even if it's not possible, examining the file may help us determine the underlying cause of the corruption.

Maybe you are looking for