Using of user defined activities in process flow: issue

Hi out there,
there is a problem in my environment which I don't understand and which I want to share with you. Hopefully there is somebody who can help me.
I have a user defined activity in my process flow with the following parameters (where <empty> means no value):
COMMAND: C:\WINDOWS\system32\cmd.exe
PARAMETER_LIST: <empty>
RESULT_CODE: <empty>
SCRIPT: C:\oracle\bise1\scripts\source_file.bat
SUCCESS_THRESHOLD: 0
The bat-file is containing the following:
cd c:\oracle\bise1\owb\owb\bin\win32\
ombplus.bat c:\scripts\source_files.tcl
exit
When I execute the bat-file in the cmd-shell manually it works perfect (the tcl-script copies and renames sourcefiles to naming conventions). But when I want to execute this from the process flow nothing happens. The process is running without reading the correct source files and therefore ends in errors.
Is there anything wrong in the usage of the user defined activity? I prepared the runtime properly.
Any help is appreciated. :-)
Kind Regards,
Jens

Hi Detlef,
thanks for the input. I tried it but then I get the following error message (in german) in the logfile of the process flow:
"Der Befehl "chcp" ist entweder falsch geschrieben oder konnte nicht gefunden werden."
My scripts don't contain letters in this combination. The scripts are working fine when I start them manually from the command shell. Is there maybe something else I need to consider? Is it possible to start omb tcl-scripts via this feature?
Kind Regards,
Jens

Similar Messages

  • Problems using user defined activitys in Process Flows

    Hi everybody,
    i have problems using an user defined activity in my owb process flow.
    I did the following according to https://blogs.oracle.com/warehousebuilder/entry/how_to_use_user_defined_activity_in_owb_process_flow.
    1. create a script in /tmp called test.sh
    2. chmod +x on the script so it can be executed
    3. Changed the Runtime.properties file under ORACLE_HOME/owb/bin/admin
    property.RuntimePlatform.0.NativeExecution.FTP.security_constraint = NATIVE_JAVA
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    property.RuntimePlatform.0.NativeExecution.SQLPlus.security_constraint = NATIVE_JAVA
    property.RuntimePlatform.0.NativeExecution.OMBPlus.security_constraint = NATIVE_JAVA
    4. Creating an Process Flow with just the user defined activity
    5. Deploying the Process flow was successfull
    But everytime i execute the pf i get the following error in my Job Details.
    TEST_PF:USER_DEFINED                                        
    Parameters                                                  
    Log file is available. Click Information button to view.                                             
    It says Log file is available. But i can't find this file. Also i don't know what the problem is.
    Can anybody help me out of this?
    Thanks a lot

    Hi,
    solved the problem by myself.
    I had problems with my script. So i insert set -x into the script an executed the pf again. Know i can see whats happening in a log. You can find this log in the job detail window by pressing the blue ! Button when the whole PF (the first entry) is marked.
    Greetings

  • User Defined Activity "hangs" Process Flow if it runs for more than 10mins

    I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
    However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
    BUT
    If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
    my "user defined" activity has
    COMMAND: /usr/bin/ksh
    PARAMETER_LIST bound to a variable which is set earlier in the process flow.
    RESULT_CODE:
    SCRIPT :
    SUCESS_THRESHOLD : 0
    by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
    I can see that the variable contents assigned to RESULT_CODE look like this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
    or this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
    I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
    (like in Runtime.properties
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    except maybe
    .........Nativeexecution.timeout = .....?????
    Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
    Can anyone help?

    I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
    However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
    BUT
    If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
    my "user defined" activity has
    COMMAND: /usr/bin/ksh
    PARAMETER_LIST bound to a variable which is set earlier in the process flow.
    RESULT_CODE:
    SCRIPT :
    SUCESS_THRESHOLD : 0
    by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
    I can see that the variable contents assigned to RESULT_CODE look like this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
    or this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
    I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
    (like in Runtime.properties
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    except maybe
    .........Nativeexecution.timeout = .....?????
    Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
    Can anyone help?

  • How to use a user defined function in where cluase condition

    Hi,
    I have designed a query by selecting some columns in the tables and some columns are retrieved directly from table and some columns are passing to a user defined function. Now my requirement is i need to use that user defined function result in oracle where condition clause.
    Ex : select marketing_user_id,get_name(marketing_user_id),item_id,get_item_name(item_id),get_country_name(country_id),
    from
    where get_item_name(item_id) in ('x','y','z')
    and get_country_name(country_id) in ('India','America','China');
    When am i trying the query by above format i am getting the wrong resultset.
    BR,
    uma

    I am not sure why your getting the wrong results but you should seriously reconsider the approach your are taking. Using functions like this is very ineffecient and should be avoided at all cost.

  • How to use a user defined function in XI

    Hi Experts,
    I would like learn how to use a user defined function  in Xi during mapping . Is there any step by step on that.
    Besides during when me make communcaton channels I see the following tabs...Paramters ..Identifiers ...Module...
    The module that is given here ...where and how it is used.

    Hi,
    You can write UDFs in java in Graphical mapping to enhance your XI Graphical mapping functionality
    The steps for doing it would be:
    1. Click on Create New function Button found on Bottom left corner on your XI Mapping window.
    2. Write your java code.
    3. Run the Mapping Test as usual.
    >>The module that is given here ...where and how it is used.
    The adapters in the Adapter Framework convert XI messages to the protocols of connected external systems and the other way around. When doing so, some
    functionality might need to be added specific to a situation which is possible with the use of custom modules.
    Typical example would be validation of file content when using a File Adapter or modification of the message payload to a common content structure which is not supported by any of the standard SAP modules.
    An Adapter module is developed as an Enterprise Java Bean and is called locally by the Adapter.
    An example on modules :
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805">How to develop a module for reading file name in a sender file adapter XI 3.0</a>
    Cheers,
    Chandra

  • Error erase Queries in Query Manager- The query is used with user-define...

    Hello Experts
    I have deleted a User Field that had a Formatted Search and now I can not remove it because it is linked according to a UF, the error message is as follows:
    "The query is used with user-defined values [Message 952-23]"
    There will be a way to resolve this issue???
    Thanks in advance

    Hi Juan,
    I have tried this very limited, but the formid, is this a number in your case?
    SELECT * from cshs t0 inner join ouqr t1 on t0.queryid = t1.intrnalkey
    where t1.qname = '[%0]'
    Running this query I can get the form id that I need to recreate, but I have a feeling you already know the form id, is this correct?
    - Is there an error when you try to recreate the form id?
    - Will it not let you recreate the same form id because the id is given by the system?
    If it is not possible to recreate the form id, please prepare a backup and log a message. Support should be able to correct the entry in table cshs.
    Hope it helps.
    Jesper

  • Using a User Defined Function as a constraint within a temporary table.

    Hello, 
    I am trying to create a temp table that uses a UDF in a constraint. I'm getting the following error message 
    Msg 4121, Level 16, State 1, Line 1
    Cannot find either column "dbo" or the user-defined function or aggregate "dbo.CK_LoseTeamSportExists", or the name is ambiguous.
    I've tested the function and it works in other contexts. Any idea? All code below:  
    Thanks, 
    - Bryon
    create function dbo.CK_LoseTeamSportExists (@loseteam int, @sportid int)
    returns bit
    as
    begin
    declare @return bit
    if exists 
    select TeamID, sportid from Link_TeamSport
    where 
    TeamID = @loseteam 
    and
    SportID = @sportid
    set @return = 1
    else set @return = 0
    return @return
    end
    go
    create table #check
    SportID int
    ,WinTeamID int
    ,LoseTeamID int
    ,check 
    (dbo.CK_LoseTeamSportExists(LoseTeamID,SportID) = 1)

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
    use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    >> I am trying to create a temp table that uses a UDF in a constraint. <<
    You do not understand how SQL or any declarative language works! 
    We do not use UDFs (procedural programming)
    We do not use bit flags (assembly language).
    We do not use temp tables (mag tape files).
    We do not use integer as identifiers (what math do you do on them?)
    Your silly “Link_TeamSport” implies a pointer chain; we have no links in SQL. Where is the DDL? 
    Constraints are always predicates in any declarative language. 
    Do you know why you have to create a local variable to pass the non-relational flag back to the calling environment? FORTRAN I and II! These early languages has to use hardware registers in the first IBM computers to return results. In your ignorance, you mimic
    them! 
    We do not use if-then-else control flow in any declarative language. We have CASE expressions that we put where you have a local variable getting an assignment. 
    I see you also put the comma at the start of the line. We did that with punch cards, so we could re-use them 50 years ago. 
    In SQL, we would use REFERENCES to assure a team reference exists. We use names for teams because they are entities, not quantities: 
    CREATE TABLE Game_Results
    (sport_name CHAR(10) NOT NULL PRIMARY KEY,
     win_team_name CHAR(12) NOT NULL
      REFERENCES Teams(team_name)
       ON DELETE CASCADE,
     lose_team_name CHAR(12) NOT NULL
      REFERENCES Teams(team_name)
       ON DELETE CASCADE,
     CHECK (win_team_name <> lose_team_name)); 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Error when using wb_rt_api_exec.run_task api to call process flow

    Dear All,
    I am using OWBV 10.2.0.3 and currently have some issue with it.
    I have a process flow and I'm executing it using wb_rt_api_exec api.
    When I ran it, that process flow failes with below error messages.
    RPE-01003: An infrastructure condition prevented the request from completing.
    RPE-01038: Failed to evaluate expression null. Please modify the expression, redeploy and retry again.
    RPE-01003: An infrastructure condition prevented the request from completing.
    RPE-02227: Cannot test Control Center user OWF_MGR. This user must match the login credentials of the evaluation location configured on owning module.
    ORA-01017: invalid username/password; logon denied
    But using same user when I log on to the OWB client I can run that process flow without any error. So it seems to be there is no any sesurity issues too.
    Furthermore I have done below things.
    OWF_MGR (Processflow user), OWB_MGR (repositiry user) and RUNTIMEUSR (user used to run the processflow) all registered under control center.
    There are couple of forum post here. I followed all those and didnt work anything for me.
    Early response highly regards,
    mc
    Edited by: mc**** on Jan 19, 2011 4:13 PM

    Hi,
    look these forum threads {message:id=3140661} and {message:id=2695999}
    I think you need connect with Design Center under user which you used for executing processflow and register workflow location
    Regards,
    Oleg

  • Use of user define field in Task list

    Hi,
    Please give the solution for the strange requirement of the client as:
    My client wants to define the operation for preventive maintenace in two parts like
    check temperature  :  45 deg celcius.
    check temperature should be like operation and rest what he has to check to be defined in other field  i.e. both should not be together.
    so i find the solution as user defined fields in the task list where i can define this second parameter.
    But the problem is that system is not proposing this second field in the preventive order, only operation field is proposed.
    Please suggest some solution, how can this requirement can be mapped.

    Both operations of the inspection lot will need to be completed at some point.  They are in the same lot so they belong together.  Both operations should be available to the user.  (Unless you used workcenters and security to limit users to specific workcenters).
    Once set up, it will only be available to new inspection lots.  Few things in SAP are retroactive.
    Craig

  • OIM user defined field in process form

    I am trying to create a user defined field (UDF) in a process form. The UDF would be a drop down list of values for the status field.
    I've tried to do this by going to the Administration list, and double clicking on User Defined Field Definition. Then selecting the Form Designer. I can add a column but I cannot add values to the drop down. I know I'm probably doing this wrong.
    How do I add a UDF drop down and its values to a process form?
    Thanks!

    1. Create lookup table for the drop down contents.
    2.In the process form--->go to the properties tab-->select the User defined filed name-->add property--->property Name drop down list -->select lookup code-->in the property value-->provide the lookup table name-->save
    Edited by: user13513300 on Feb 24, 2011 1:45 AM

  • Is there a LabView example in the use of user defined error codes?

    Specifically, I have a VI that tests four arrays of data against various high/low limits. I have pass/fail outputs for 18 tests. I'd like to combine these into an 'error out' cluster with appropriate error codes and messages, for which I've created an x-errors.txt file.
    My first question must be trival - how do I just set the 'status' bit of the error stream to let the general error handler then look up the error desription from the file?
    Secondly - I can't find an example of this in the technical resourses, amI missing something?
    Thanks,
    Mike
    Mike Evans
    TRW Conekt
    N.I. Alliance Member, UK
    http://www.Conekt.net

    There is no example program. There is extensive help on how to do this. Here's the basics.
    1) There are two ways to define user error codes in LV6.1. If you are using LV6.0 or earlier, only one method is possible.
    2) The 6.0 method involves wiring arrays of error codes and arrays of error code strings to the General Error Handler.vi. These codes will be used to explain any error code which is undefined in LV's internal error code database. Error codes reserved for users which are guaranteed not to be used by NI are from 5000 to 9999.
    3) The 6.1 method allows you to create a specially formatted error code file on disk that will be merged with the LV error code database each time LabVIEW launches. For help on this, go to LV's online help, and in t
    he Index tab, type
    "user-defined error codes, in text files"
    (without the quote marks)
    4) If you want to set an error into the error cluster, use the General Error Handler.vi again. Wire your error code value to the Error Code terminal (the leftmost-topmost corner terminal). Wire the name of your VI to the Error Source terminal, and wire "No Dialog" to the Type of Dialog terminal (left-side, near the bottom). The error code cluster that comes out of this VI will either be the error in (if one was set) or a new error code cluster with your error and the status bit set to TRUE.
    5) The attached demo is written in LV6.0.
    Attachments:
    Error_Demo.vi ‏37 KB

  • Use of user defined function in mathscript containing structure

    Hi, I am an beginner user of LabView's MathScript Module,
    I have the following problem when integrating my MATLAB code into LabView, for HMM:   In my program, I tried to call a user defined MATLAB function called 'mixgaussinit.m' It show this error ..
    Error -90162 occurred at Line 36, Column 20: unexpected char: '.'
    C:\HMMall\KPMstats\mixgauss_init.m
    Possible reason(s):
    LabVIEW:  A recognition error occurred while generating a stream of tokens.
    the line 36 of the file is this "mu = reshape(mix.centres', [d M])"
    mix.centers is a structure.. 
     How can this error be corrected?
    Solved!
    Go to Solution.

    I just noticed that these files appear to be under copyright. My first question is do you have the copyright permissions to post them in a public forum? If not then you may wish to delete them. That being said I have examined the code and it seems easy enough to work around your issues (provided you have the copyright permissions). The way to work around the issues is indeed to replace the struct fields with variables. This will of course require you to change a couple function definitions to input and output the neccesary variables which I believe was at most 5 variables. You will also need to redo the error checking code that uses a cell array. Altogether I estimate about 30 minutes of work. I would have given you the work around in these files had the files not been copyrighted. So, unfortunately, you will have to implement the work around yourself.
    Good luck!
    K Scott

  • How to set E-Mail Activitie in Process Flow

    Hi All,
    I am very new to OWB and i created process flow based on documents.Process flow run successfully.Now i need to set E-mail Activity to that process flow. i read some of links and help topics.But iam not clear.so pleaseme tell how to do.
    Thanks,

    Hi
    You just add the Email icon to the palette and if a process runs sucess or error (depends on your transition). Just add the email icon and click on it. Fill in the necessery values, such as
    From
    To
    Subject
    Body
    SMTP server.
    If you have a mailserver installed on your machine - just enter "localhost".
    Else you will need to use an existing email server.
    BR / Ander

  • Alert messages  by using any User Defined Functions

    Hi friends,
          I  have one requirement.. that  when ever  my scenario successully  processed.. (file to file scenario) i need to raise a ALERT message  that is.. Successfully processed..  otherwise.. it should raise a Errors occured during Scenario..  These messages i want to display for my scenario..
       for this requirement what can i do.. my scenario is with out BPMs, so, can u explain with clear steps.. is there any USER DEFINED FUNCTION IS REQUIRED OR  with that UDF 's also  can we do.. and where can we do other settings..
    Thanks
    Babu

    Hi,
    Check this blog.
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Regards,
    Sudheer.

  • Using a user-defined element in ASO cube.

    I have an ASO cube to which I'm adding a new hierarchy/dim containing a single user-defined element as a member. This dim is set to dynamic at dimension level, since I'm going to add additional members with formulas.
    My issue is that as soon as I add this new hierarchy to my cube, all my fact values double! What could cause this and how should I fix this? The user-defined element in this new dim is not connect to the rest of my data in any way, i.e. it is not in any table of my minischema. So why should it have any impact on my data values? Should I be adding a filter of some kind on this user-defined element?
    Fyi- I'm using Essbase Studio (EPM 11.1.2) for cube building and data loading.
    Appreciate any help.
    thanks,
    Axe

    A colleague suggested a reason that SDO_GEOMETRY works is that it is granted to PUBLIC with GRANT OPTION. PUBLIC is not a proper role, somewhere between a user and a role and the issue of having to receive permissions on the type explicitly do not apply.
    If I GRANT EXECUTE ON XTYPE TO PUBLIC WITH GRANT OPTION; it works!
    Thanks for the replies.
    C

Maybe you are looking for

  • Apple applications not opening after Messenger update

    Opening Messenger last night, a box popped up saying that there was a new version to be installed. Alongside this were ticked boxes for 'security' and another application (which I can't remember now). I went ahead with this, but since restarting the

  • I have a 3rd genartion ipod and and the new update is not there please please can someone help

    I have a 3rd genartion ipod and and the new update is not there please please can someone help

  • Macbook Dying by a thousand cuts

    Hi Hope someone can help. Macbook all ok until I downloaded some MAC generated updates recently, sorry I don't know what they were. Anyway, -Battery now won't charge -Bluetooth won't work -Entourage just gives Error 16008 all the time (yes have tried

  • Inconsistent brightness when starting up or waking up

    I have noticed that my 8 mos. old MacBook Pro is experiencing some inconsistent display brightness upon starting up or waking up. It appears that the center of the screen (about two inches wide running from top to bottom) is noticeably darker for abo

  • PS Elements 10 Installation Incomplete??

    I've installed PS elements 10 twice and each time it prompts me to install disk 2 of 3 but the DVD refuses to eject.  After pressing OK the install program reports a sucessful install even though I've never inserted disks 2 or 3.  At that point the D