Batch processing problem: Seeing the primary key (id) in the test cases...

Another problem we seem to be having is how to read the primary key into a base attribute of an entity.
In batch processing, we may define the "id" as the primary key on the table. We need to get that id and the foreign key ids into the base attributes in the rule set...
How do we go about doing that?

Perhaps better, if you could give me a sample xml config with global and one entity. The only attribute in the entity should be the id... The id should be the primary key in both OPA and Oracle...
The global table in oracle would contain a single column with the global id.
The child table in oracle would contain 2 columns -> one for the global ref id and one for the child key...
I think you will find problems.
As a note we have duct-tape solved this by creating views and making column copies in the views of the child id and then mapping the id in oracle to the duplicate column in the view.
So our child view contains the child table with the child id repeated twice so that we can map...

Similar Messages

  • Problem with varchar2 primary key..

    OWM version 10.1.0.8
    When I am trying to add a column in a version enable table with varchar2 primary key, it fails.
    If primary key is numeric it works.
    See below the test case.
    -- CASE 1. When primary key is number.
    SQL> create table wmtab
    ( wmtab_id number,
    price number,
    title varchar2(80),
    AUTHOR VARCHAR2(10)
    Table created.
    SQL> ALTER TABLE wmtab add (CONSTRAINT PK_kontakt PRIMARY KEY (wmtab_id));
    Table altered.
    SQL> EXECUTE DBMS_WM.EnableVersioning('WMTAB');
    PL/SQL procedure successfully completed.
    SQL> CALL DBMS_WM.BEGINDDL('WMTAB');
    Call completed.
    SQL> ALTER TABLE wmtab_lts add ( FREIGEGEBEN varchar2(1));
    Table altered.
    SQL> CALL DBMS_WM.commitDDL('WMTAB');
    Call completed.
    -- CASE 2. When primary key is varchar2.
    SQL> create table wmtab
    (wmtab_id varchar2(10) constraint wmtab_pk primary key,
    price number,
    title varchar2(80),
    AUTHOR VARCHAR2(10)
    Table created.
    SQL> EXECUTE DBMS_WM.EnableVersioning('WMTAB');
    PL/SQL procedure successfully completed.
    SQL> CALL DBMS_WM.BEGINDDL('WMTAB');
    Call completed.
    SQL> ALTER TABLE wmtab_lts add ( FREIGEGEBEN varchar2(1));
    Table altered.
    SQL> call DBMS_WM.CommitDDL('wmtab');
    call DBMS_WM.CommitDDL('wmtab')
    ERROR at line 1:
    ORA-20199: primary key columns cannot be added/dropped/modified/reordered for
    version enabled tables
    ORA-06512: at "SYS.OWM_DDL_PKG", line 6196
    ORA-06512: at "SYS.LT", line 11930
    ORA-06512: at line 1
    Same problem is reprosucible on OWM 10.2.0.1.
    But its working fine with varchar2 primary key On OWM 10.2.0.4.2/3
    Is there any workaround or we can get patch for 10.1.x.x?

    Hi,
    I was unable to reproduce this behavior on OWM 10.1.0.8. It appears that you have a SR open for this issue, so I would suggest to continue with that process.
    Regards,
    Ben

  • Batch Processing Problem

    I have tried to batch process a number of files on an external firewire hard drive.  I am running Mac OSX 10.6.4 on an iMac and using CS3.  When I go to set up the batch process I choose the folder on the external drive but when I go to start the batch I get an error message that CS3 cannot complete the batch because the disk is not available.
    What on earth is going on?  The disk is fine, is recognised by CS3 when specifying the source folder.
    Any thoughts

    Perhaps better, if you could give me a sample xml config with global and one entity. The only attribute in the entity should be the id... The id should be the primary key in both OPA and Oracle...
    The global table in oracle would contain a single column with the global id.
    The child table in oracle would contain 2 columns -> one for the global ref id and one for the child key...
    I think you will find problems.
    As a note we have duct-tape solved this by creating views and making column copies in the views of the child id and then mapping the id in oracle to the duplicate column in the view.
    So our child view contains the child table with the child id repeated twice so that we can map...

  • Problem with Sting Primary Key

    I have probleme with Sting Primary Key
    when i create new row
    System.out.println("is new:" + acct.getEntityState());
    show 1 - this row is not new
    why?

    Hi,
    I was unable to reproduce this behavior on OWM 10.1.0.8. It appears that you have a SR open for this issue, so I would suggest to continue with that process.
    Regards,
    Ben

  • Can see the test page, Can register the provider but error in portlet

    Hi all,
    I have done the following settings in my web.xml
    web.xml
    <servlet>
    <servlet-name>calsample</servlet-name>
    <servlet-class>oracle.portal.provider.v1.http.HttpProvider</servlet-class>
    <init-param>
    <param-name>provider_root</param-name>
    <param-value>D:\pdk\pdkoct\pdk\urlservices\providers\calsample</param-value>
    </init-param>
    <init-param>
    <param-name>sessiontimeout</param-name>
    <param-value>1800000</param-value>
    </init-param>
    <init-param>
    <param-name>debuglevel</param-name>
    <param-value>3</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>calsample</servlet-name>
    <url-pattern>/calsample/*</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>CalendarServlet</servlet-name>
    <servlet-class>com.jsos.calendar.CalendarServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
         <param-value>d:/tomcat/conf/calconf.txt</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>CalendarServlet</servlet-name>
    <url-pattern>calendar</url-pattern>
    </servlet-mapping>
    provider.xml
    <provider class="oracle.portal.provider.v1.http.DefaultProvider" session="true">
    <portlet class="oracle.portal.provider.v1.http.DefaultPortlet" version="1">
    <id>1</id>
    <name>CalendarServlet</name>
    <title>My Calendar Servlet</title>
    <description>This is my Calendar Servlet implemented as a ServletRenderer.</description>
    <timeout>5</timeout>
    <timeoutMsg>Calendar Servlet Renderer example timed out</timeoutMsg>
    <hasHelp>true</hasHelp>
    <hasAbout>true</hasAbout>
    <showDetails>true</showDetails>
    <showEdit>true</showEdit>
    <showEditDefault>true</showEditDefault>
    <acceptContentTypes>
    <item>text/html</item>
    </acceptContentTypes>
    <portletRenderer class="oracle.portal.provider.v1.http.ServletPageRenderer">
    <appPath>/pdk/calendar</appPath>
    <appRoot>D:\tomcat\webapps\pdk\WEB-INF\lib</appRoot>
         <showServlet>com.jsos.calendar.CalendarServlet</showServlet>
    </portletRenderer>
    </portlet>
    </provider>
    With the above settings, I can see the test page at http://<server_ip>:port/pdk/calsample.
    I am able to register the provider on the Portal server as well.
    While adding the portlet to the portal page, the Calendar Portlet is listed there.
    But, when I press the preview button next to it, It shows "Error: The listener returned the following Message: 500 Internal Server Error".
    Please give me a clue where I am going wrong.
    Thanks in advance.

    Well, over the past few days while desparately trying to make my portlets work, I have tried several things. I started initially with a downloaded version of pdk that contains samples of v1. My first message above reflects the setup I used with v1. While trying to figure-out the problem for error 500, I tried v2 but the same problem persisted.
    However, the clue by Mr. Peter Moskovits to check the application.log has helped me to finally resolve the problem.
    Here is my new WORKING setup:
    \WEB-INF\web.xml:
    <context-param>
    <param-name>oracle.portal.log.LoggerClass</param-name>
    <param-value>oracle.webdb.log.ServletLogger</param-value>
    </context-param>
    <context-param>
    <param-name>oracle.portal.log.LogLevel</param-name>
    <param-value>7</param-value>
    </context-param>
    <!--
    Define the JPDK servlets and their parameters
    -->
    <servlet>
    <servlet-name>SOAPServlet</servlet-name>
    <display-name>SOAPServlet</display-name>
    <description>Extended Portal SOAP Server</description>
    <servlet-class>oracle.webdb.provider.v2.adapter.SOAPServlet</servlet-class>
    <!-- The following parameter enables invalidation caching -->
    <init-param>
    <param-name>invalidation_caching</param-name>
    <param-value>true</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>SOAPServlet</servlet-name>
    <url-pattern>/providers</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>SOAPServlet</servlet-name>
    <url-pattern>/providers/*</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>CalendarServlet</servlet-name>
    <servlet-class>com.jsos.calendar.CalendarServlet</servlet-class>
         <init-param>
         <param-name>config</param-name>
         <param-value>d:/conf/calconf.txt</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>CalendarServlet</servlet-name>
    <url-pattern>/calendar</url-pattern>
    </servlet-mapping>
    \WEB-INF\providers\calendar\provider.xml :
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>true</session>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition" >
    <id>1</id>
    <name>Calendar</name>
    <title>Calendar Portlet</title>
    <shortTitle>Calendar</shortTitle>
    <description>This portlet is my calendar portlet.</description>
    <timeout>30</timeout>
    <timeoutMessage>Calendar Portlet timed out</timeoutMessage>
    <renderer class="oracle.portal.provider.v2.render.RenderManager" >
    <showPage/calendar</showPage>
    </renderer>
    </portlet>
    </provider>
    \WEB-INF\deployment\calendar.properties
    serviceClass=oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter
    loaderClass=oracle.portal.provider.v2.http.DefaultProviderLoader
    showTestPage=true
    definition=providers/calendar/provider.xml
    autoReload=true
    debugLevel=7
    With the above setup, I am able to access the test page successfully at:
    http://[server-ip]:port/jpdk/providers/calendar
    Which lists my portlet, Calendar.
    Upon registering the portlet provider with the above URL, the portlet provider lists my Calendar portlet there and it shows-up the portlet successfully there.
    Thank you all.

  • Hello everyone...I got my very first macbook pro just today and i have a problem deleting the "test" user account. if i can't delete it, the system won't let me turn off the system. I don't know what to do! HELP!!!!

    hello everyone...I got my very first macbook pro just today and i have a problem deleting the "test" user account. if i can't delete it, the system won't let me turn off the system. I don't know what to do! HELP!!!!

    Have you created another admin user? Go to system preferences click users and click the + to add a user; if you haven't already. Once you have another admin user other then the "test" user make sure you're signed out of the test user account. Sign in with the alternate ADMIN USER that you just created or had created already and go back to SYSTEM PREFERENCES and click the same USERS icon near the bottom. Now select the TEST user and click the - sign. This should prompt you if your sure you want to delete the user account. And your done.
    New User created and Test User deleted... I hope this helps.

  • How can I execute the test case written excel sheet

    Hello
    I have written the test cases  in excel sheet. Please tell any one how to execute test case from labview.please send some sample vi

    I'm sorry, but you've provided zero information on what you have. All you've said is that you have an Excel "sheet" with test cases, and that it's written in VBA. What does that even mean? What's written in VBA? Are you trying to call the VBA code? Are you trying to rewrite the VBA code in LabVIEW? Unless you provide a better explanation of what you have and what you are trying to do, we can just keep playing a guessing game.

  • Getting TF42008: The test case management package could not be loaded. Verify that Visual Studio Test Tool is installed and try again.

    We are trying to run unit tests in TFS server.
    Below is the System Configuration:
    Visual studio version: VS 2013 Ultimate
    TFS: TFS 2013
    For this we have created a build and able to run the build successfully. And build page showing one link for Test result. When we click on this link, we got below error message.
    "Getting TF42008: The test case management package could not be loaded. Verify that Visual Studio Test Tool is installed and try again."
    And below is the screenshot of the error message. So please let us know is there and thing else we need to do to solve this issue?

    Hi RS, 
    Thanks for your reply.
    Yes, if you want to open and view test result on your laptop, you need install the VS 2013 on your laptop as well.
    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.
    Click
    HERE to participate the survey.

  • Problem with a primary key when creating a new record in Forms

    My table has a field - MDD_KEY - that is a primary key. It is updated from a sequence with a before-insert database trigger. I know this works properly as the primary key was accurately populated when I inserted 1433 records.
    In Forms 6, I have a form based on that table. I have set the mdd_key as a hidden field because I assume it will be entered by the before-insert trigger. However, when I enter data into the table, and then try to save it, I get a FRM-40202: Field must be entered. - followed by - FRM-40222: Disabled item MDD_KEY failed validation.
    If I set DATA Required to no, when I try to save I get an FRM-40600: Record has already been inserted - but no such record exists in the database. I know this record is unique and does NOT exist because I deliberately made it up.
    In the property palatte, the attributes of the field are:
    DATA Data Type Number
    Required Yes
    DATABASE Database Item Yes
    Primary Key Yes
    Query Only No
    Query Allowed Yes
    Query Length 0
    Insert Allowed Yes
    Update Allowed Yes
    Update Only if Null No
    Lock Record No
    I assume that my problem is that with a new record, the form wants to see the MDD_KEY populated before it saves - but that isn't going to happen until the before insert trigger fires in the database. I assume I have to populate that field within forms, but how do I do that without messing up the database trigger/sequence? I will have to load more data directly into the database - so I need the database trigger in place.
    I have not used primary keys before so I am more than a little bit confused about how and when it should be populated when a new record is created in Forms.
    Any help would be appreciated as I cannot enter new data into my form (works well with existing data).
    Thanks
    Glenn

    hi
    if u have any problem using seq then try that statemetn ur block level in ur form
    PRE-INSERT trigger
    select nvl(max(nvl(srno,0)),0)+1 into :srno from tablename;
    Rizwan

  • Problems Engineering Surrogate Primary Key with Unique Key

    SDDM 3.3.0.747 with 2 problems (at least so far).  I am hoping that the problem is with this SDDM rookie and I have overlooked some setting. PROBLEM 1 I don’t want to start a religious debate about surrogate vs. natural keys but I am having a problem engineering both correctly from the logical model.  I am a rookie when it comes to SDDM but have many years of experience with Designer. By default I like to have both a natural UID  (UK) and a surrogate key based primary UID (PK) which is used for foreign keys.  The problem I am having with engineering is I can successfully engineer the surrogate PK’s, engineer the FK’s using the PK’s but cannot get the unique key to contain the surrogate keys in the child table.  If I check the identifying property in the relations, the PK columns and the UK columns are included in the child PK and the UK contains no columns. The Setup I have defined two reference entities, PROBABILITY and SEVERITY with natural unique keys defined.  I also have a child entity RISK_ASSESMENT with relationships back to the PROBABILITY and SEVERITY entities and both have the “Use surrogate keys:”: check box checked.  The unique key for the RISK_ASSESMENT entity includes the relationships back to PROBILITY and SEVERITY.  None of the entities have a PK or surrogate key defined and they all have the “Create Surrogate Key” check box checked.  In addition the following preferences are set: Data Modeler/Model/Logical   NOT Checked - Use And Set First Unique Key As Primary Key   NOT Checked – Name – Keep as the name of the Originating attribute   Checked – Entity Create Surrogate Key   Checked – Relationship Use Surrogate Key PROBLEM 2 When the foreign key columns are engineered I want the names to have a prefix “FK_” but they don’t.  Templates are set as follows: Data Modeler/Naming Standard/Templates   Foreign Key:  FK_{child}{parent}   Column Foreign Key:  FK_{ref column} Engineer to Relational Model/General Options   Checked - Apply name translation Marcus Bacon

    I have been switching between SD 4 EA1 and SDDM 3.3 trying to get things to work and trying out the template table for adding audit columns (really nice!).
    Concerning Problem1.  No matter what settings I use and whether I use SDDM 3.3 or SDI cannot get the FK columns to be included in the UK even though the relations are included in the UID in the entitty.  When I open the properties of the child table and click on the naming standards button and click ok it complains that the UK is not complete.  I add the FK columns to the UK and all is well including the naming standards.
    Concerning Problem 2.  Sometimes it engineers the names for FK's from the template and sometimes it doesn't.  Didn't see a pattern.  Gave up trying and used Naming Standards button.  I still had to change a few.
    The good new is, that after make changes needed in UK's and Column names of 18 tables, I know have everything deployed to Test except FK Indexes.  I think I have to do those by hand.
    Marcus Bacon

  • Batch processing problems-can anyone help?

    Setup: Quadcore, 4GB RAM, 4 internal drives all with plenty of space, Leopard OS, latest version.
    Software: CS4 with Photoshop Extended; all updates installed. I also have CS3 installed; only use Bridge and PS in both apps.
    Problem: Working in CS4. All edits/crops/corrections done in the Camera Raw window; all edits saved and viewable in Bridge. However, when I use Batch from the Tools dropdown (Tools > Photoshop > Batch), and check all the usual places, select an Action, select a Destination, and hit "Go", the results are totally weird. Some images process as expected, but many are at least two stops overexposed.
    All individual files will Open, and can be Saved As manually; all works fine. That is in fact how my assistant and I got the job done tonight. The Batch Action is simplicity itself: Open, Save As (JPEG level 9), and Close file—but if I run Batch on the same files that can be opened and Saved As perfectly, it all goes crazy; three quarters of the files are totally overexposed, in blocks (10–25, roughly), and at random.
    I have used the Ctrl + Alt + Shift after opening Bridge; I have run Cocktail; and lit the right incense. But this still will not work properly! Can anyone help???

    Batching the same files in CS3 works perfectly, in terms of the processed JPEGs at least being correctly exposed, but the CS4-only edits (like the healing brush) are not recognised, nor are many, tho' not all, of the crops.
    I have decided to deactivate and uninstall, then reinstall CS4, after upgrading to Snow Leopard. Usually, I wait for a few months for others to report on OS update interactions with CS and FCP, but since CS4 as installed was useless and I had done the usual resets of Preferences without any change to Batch Processing's reliability, I felt I could not be worse off.
    So, after upgrading to Snow Leopard, I will reinstall CS4 (and all apps this time, rather than just PS and Bridge, as I usually do) in case there are soime weird unintended consequences of a Custom install.
    Very frustrating and time-consuming, and I wonder what I might have done to create this problem—seeing as no one commented, I can only assume that this is an unique experience.
    I will report back today, hopefully.

  • Problems referencing a primary key field in a master-detail

    Hello,
    I am making an application where I have a master-detail page.
    In the detail section it is possible to add new rows using the standard "Add row"-button that the wizard creates.
    The detail section has a column with a link in it. This link leads to another part of the application.
    When I press this link I would like to send the field "Id" of the current detail row to the page which the link redirects to.
    So far I have concluded that the primary key field "Id" of the detail is only filled out after I do a submit. So I have my column link set up to do:
    javascript: doSubmit('NAVIGATE_1');
    In the branching I am testing on the :REQUEST object to see if it contains 'NAVIGATE_1' - I can't seem to get the value from the "Id" field though. I tried to add #ID# in the javascript submit call - but since the "Id" is filled only after I submitted then this doesnt really work at all.
    Does anyone have an idea on how to make this work in APEX ? Its probably some simple thing that I just didnt think of yet ;)
    Kind regards
    Bo Normann

    I found a way. I dont like it - but it works.
    I made a column link in the detail with the following:
    javascript: doSubmit('NAVIGATE@#ROWNUM#);
    This way I obtain information in the :REQUEST object about which row was clicked.
    In a After submit process on the page I then parse this :REQUEST object like this:
    DECLARE
    v_row NUMBER;
    v_pos NUMBER;
    BEGIN
    v_pos := instr(:REQUEST,'@',-1);
    v_row := substr(:REQUEST, v_pos+1);
    IF APEX_Application.g_f02(v_row) IS NOT NULL THEN
    :P_PRIMARY_KEY_ID:= APEX_Application.g_f02(v_row);
    ELSE
    :P_PRIMARY_KEY_ID:= -1;
    END IF;
    END;
    I know that my "Id" column is named f02 in the form, so this way I can find the id. I then assign this id to a kind of global variable - on the page I redirected to I can now find the Id.
    Talk about ugly code :P

  • Problems with concatenated primary key

    Hi all,
    I am trying to create cache groups of single tables. When I create a cache group (using the browser based cache admin tool) for a table that has a single row primary key, there are no problems. After creating the cache group I can go to TTISQL and issue a select statement of that table to see all the rows.
    However if I create a Cache group in the same way for a table that has a concatenated primary key (using two columns), TimesTen does indeed says that the cache group is created, but then when I issue a SELECT statement for that table in TTISQL, I get "0 rows returned".
    What could be going wrong ? Please advice.
    Thanks in advance

    if you describe the cache group in ttIsql (just enter 'cachegroups;' and hit return) what do you see?
    What message do you get back if you load the cache group in ttIsql:
    load cache group <cgname> commit every 100 rows;

  • Batch processing problems-can anyone helpa

    Posted details in the PS furum:
    http://forums.adobe.com/thread/534436?tstart=0
    TIA

    Batching the same files in CS3 works perfectly, in terms of the processed JPEGs at least being correctly exposed, but the CS4-only edits (like the healing brush) are not recognised, nor are many, tho' not all, of the crops.
    I have decided to deactivate and uninstall, then reinstall CS4, after upgrading to Snow Leopard. Usually, I wait for a few months for others to report on OS update interactions with CS and FCP, but since CS4 as installed was useless and I had done the usual resets of Preferences without any change to Batch Processing's reliability, I felt I could not be worse off.
    So, after upgrading to Snow Leopard, I will reinstall CS4 (and all apps this time, rather than just PS and Bridge, as I usually do) in case there are soime weird unintended consequences of a Custom install.
    Very frustrating and time-consuming, and I wonder what I might have done to create this problem—seeing as no one commented, I can only assume that this is an unique experience.
    I will report back today, hopefully.

  • Can someone help me with a batch processing problem

    I just got my first Mac and I just loaded Aperture and unfortunately a deadline is upon me. I am used to Photoshop but I'm lost here looking at Aperture. All I need to do right now is to pop in CDs full of photos and produce thumbnails of them to put in file folders on my hard drive. I figure it's an automated batch process, but I'm just not seeing it among the functions of Aperture. I know this request may annoy some users, but I sure could use the help right now and I promise to use the tutorial and manual in the future.

    If what you mean is make a bunch of small jpegs - just import the images into an Aperture project - select them all and use export version to put them out in whatever size/format you want. If a preset does not exist for your purposes - create a new one with "edit.." from the presets drop down menu in the export version dialog.
    RB

Maybe you are looking for

  • How do I import a .png file to iPhoto?

    How do I import a .png file to iphoto?

  • Windows 7 install hangs at "Windows is loading files ..." on MBA

    I have been trying to install Windows 7 Ultimate but each time the install hangs at "Windows is loading files ..." on reboot. I am using a Windows install DVD using an external drive. When the install hangs, the DVD is not being accessed. I have trie

  • Can I install Windows 7 from an SD card on my 2011 Macbook Air 13"?

    This morning I purchased a digital copy of Windows 7 from Microsoft, and created a bootable SD card for installing the operating system.  My problem is that Boot Camp Assistant will not allow me to partition the drive without the install media presen

  • Vector and session object...

    Hi, I have a JSP that retrieves a resultset with 3000+ rows. I use that resultset to create a summary page of grouped data, so the resulting page is only a few lines. Each group is a link that can be double clicked to call a JSP that will display the

  • Conversion Of Text To P.D.F

    Dear All             We are trying to convert an internal table data into p.d.f format.the problem is the file get converted but we are unable to open that file in p.d.f format. we tried with all the function modules that is available in SAP.But stil