UniqueKey validate repeated

i have a key in OrderLine eo
<Key
Name="AqmOrderLinesPk"
PrimaryKey="true">
<DesignTime>
<Attr Name="_DBObjectName" Value="AQM_ORDER_LINES_PK"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="com.faw_qm.scm.model.entity.AqmOrderLinesEO.OrderNumber"/>
<Item Value="com.faw_qm.scm.model.entity.AqmOrderLinesEO.LineNumber"/>
</AttrArray>
</Key>
and then i define a validation in entity level like this:
<validation:UniqueKeyValidationBean
Name="AqmOrderLinesEO_Rule_1"
ResId="com.faw_qm.scm.model.entity.AqmOrderLinesEO_Rule_1"
KeyName="AqmOrderLinesPk"/>
then i test it in business Component browse,it goes ok.but when in page it prompt two error messges,one is i defined ,the other is jbo error like this:
Too many objects match the alternate key oracle.jbo.Key[516 1 ] for entity com.faw_qm.scm.model.entity.AqmOrderLinesEO, key AqmOrderLinesPk.
how can i keep just my custom messge. or can i custom the error messges for the 'Key' ?

I have the same issue, I believe is a bug. The internationalization in BC still have a lot of unpleasant surprises.

Similar Messages

  • Validate repeating subform(Instances)

    How I can validate a repeating subform(includes 3 required Textfields) for missing data
    when the user clicks a email button?
    Thanks

    Hi,
    Well getting the script to change the first instance at least shows that the relative references are correct.
    Basically if you are using JavaScript then you would need a loop to work through all of the instances. Lets say the repeating subform is called "repeatSubform" and the hidden subform is called "hiddenSubform".
    Then something close to this should work:
    var oSubform = xfa.resolveNodes("page1.repeatSubform[*].hiddenSubform");
    for (var i=0; i<oSubform; i++) {
         oSubform.presence = "visible";
    There is a discussion here on references and resolving nodes: http://assure.ly/kUP02y.
    Good luck,
    Niall

  • I need to validate field in repeated region

    I need to validate a form that is inside a repeated region,
    therefore the
    name of the form element changes, like ... name1, then same
    field next row
    is 'name2', and so forth ... I haven't been able to find help
    nor tutorials,
    I need to get this done over the weekend, does anyone knows
    someone who I
    can hire to do this job ?
    A

    I did, I just don't know how to validate them .... any clues
    A
    "Randy Edmunds" <[email protected]> wrote in
    message
    news:eesnug$bbd$[email protected]..
    > Alejandro,
    >
    > To use form elements in a Repeat Region, you'll need to
    setup a scheme to
    > automatically generate unique ids/names for each
    element. And do it in
    > such as way that you can interpret the data later.
    >
    > HTH,
    > Randy
    >
    >
    >> I have a page that updates multiple records, the
    first field in the
    >> repeated region is a date.
    >>
    >> I need to validate that the information entered in
    such field is a date,
    >> keep in mind this is not just one field but a
    repeated region. I tried
    >> using my regular form validation extensions but none
    work.
    >> Is there a way to validate form elements inside a
    repeated region ?

  • Validate form - repeat email address?

    I'm playing around with Adobe's spry system and integrating
    the validation functions into my online form.
    Could someone please explain or direct me to a tutorial or
    guide on implementing a function where the user must insert their
    email address twice (or password)?
    I appreciate your time.

    This FAQ explains how others can receive email notifications:
    http://forums.adobe.com/docs/DOC-1424
    Randy

  • MIGO - GR Against Purchase Order -  Delivery Note # not to Repeat !!

    Hi all,
    Here is a interesting requirement from the business user!!
    Scenario: Currently they are making Goods receipt against Purchase order in Transaction MIGO. Delivery Note # (LFSNR) is entered during Posting.
    Problem: Recently they did MIGO for Purchase order, by mistake they did Goods receipt twice for same vendor delivery note # !
    Question: Can you please suggest a way to validate the Delivery note # field of MIGO, Such that it is unique. If the number is Repeated for the Same Vendor, system should throw a error message, stating that Delivery note # already exists. So that it avoids posting of GR for same delivery note even by mistake !!
    I thought of validating this entry in MSEG Table, but problem is it will delay the posting of document !!
    Is there a standard user exit or setting to validate this field during posting!!
    Thanks in advance.
    Regards,
    Thiyagu

    Joven,
    If you see transaction VL31, Creation of Inbound Delivery, SAP did the validation for EXTERNAL ID in the Input screen of the Transaction. If we try to repeat the External id #, system throws error message as below.
    "The external ID of the delivery note is not unique (see inb. dely
    0180267952)"  Message no. BORGR547
    When we make Goods receipt against Inbound Delivery instead Purchase order. We may over come the problem some how. Reason is that during Inbound Delivery creation itself External ID is validated. During GR against Inbound Delivery this External Id gets copied as Delivery Note #, so this is the alternative i thought !!
    Thanks,
    Thiyagu

  • Plants are needed to validate against company in Component Tab - IW31

    Hi Experts ,
    Module PM , T Code IW31 ,
    Plants are needed to validate against company in Component Tab and need to populate error message in status bar . Thereafter user possible to correct whatever the error and save it .
    Can you please help me to solve this issue.
    Component Data is populated in Data grid (Data Table). These user exits are not fired within a loop( Not repeating with line of components).
    Is there way to read whole table ?
    Already i tried BADI -IW O1_ORDER_BADI and
    exit -
    PRM0003 User field: Maintenance plan
    WO10001 Create a PM sub-order
    WO10002 PM maintenance order: Customer check for order release
    WO10004 Maintenance order: Customer check for order completion
    WO10005 Maintenance order: Cust.-specif. determination of profit ctr
    WO10006 Maint. order: Fcode exclusion through cust. enhancement
    WO10007 Maint.order: Customer enhancement - permits in the order
    WO10008 Cust. enhancement: Determination of tax jurisdiction code
    WO10009 PM Order: Customer Check for 'Save' Event
    WO10010 Maint. order: Cust. enhancement for determining WBS element
    WO10012 Maintenance order: Priority handling on central header
    WO10015 Maintenance order: F4 Help for user fields on operation
    WO10016 PM Order: Cust. enhancement to check operation user fields
    WO10017 Determine external order number by customer logic
    WO10018 Maintenance order: User fields on order header
    WO10020 Maintenance order: Automatically include task list
    WO10021 Automatic task list transfer when creating order from notif.
    WO10022 Determine calendar from user exit
    WO10025 PM/SM order: Finding responsible cost center
    WO10026 User check on setting status 'Do not perform'
    WO10031 Hide personnel number in PM/SM order
    WO20001 PM order: User exit to pass routing to order
    EXIT_SAPLCOMK_004 (Enhancement - CNEX0013)
    COZF0002
    COZF0001
    Thanks,
    Rehan

    Hi,
       I am not completely clear with ur question, i think system will give message if component is selected from other company code, but if ur looking for something specfic ..check the below
    CNEX0037 : Check a newly assigned component.
    CNEX0038: Check a changed component.
    regards
    pushpa

  • How to validate a whole column of DataGrid

    I want to validate a whole column of DataGrid using
    Validator.
    How to do that?

    Thanks. It works! Prima!
    It's a little bit difficult for me to write and understand the English terms correctly, cause I am German.
    I did not recognize, that I had to go to the Library Module!
    Here I repeat Rikk's way in German:
    Im Bibliothek-Modul
    Rasteransicht
    Bilder selektieren
    Im Menufeld Ad-hoc Entwicklung:
    Freistellungsfaktor einstellen: 16:9

  • Validate empty tags using xquery

    Hi All,
    I have a question regarding xquery flwor exrpession. My scenarion is I need to validate an xml input file wether one of its elements is empty so I created an xquery to validate. However, I receive an error when I try to make an input file that has a repeating element.
    Below is my xquery for validating empty tags:
    declare namespace cred="http://www.pldt.com.ph/eai/service/component/CreditService/";
    declare namespace com="http://www.pldt.com.ph/eai/Common";
    declare variable $inputdata as element(cred:PushQuote) external;
    let $QuoteNumber := data($inputdata/PushQuote/com:QuoteNumber)
    let $AccountNumber := data($inputdata/PushQuote/com:CustomerAccountNumber)
    let $QuoteLineItemList := $inputdata/PushQuote/com:LineItemList
    for $data in $inputdata
    return
    if (fn:string-length($QuoteNumber) > 0 and
    fn:string-length($AccountNumber) > 0)
    then
    for $quoteLineItem in $QuoteLineItemList
    return
    if (fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:LineNumber)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:ProductCatalogId)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:Product)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:Quantity)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:Mrc)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:Currency)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:LastUpdateDate)) > 0 and
    fn:string-length(data($quoteLineItem/com:QuoteLineItem/com:LastUpdatedBy)))
    then
    "0"
    else
    "1"
    else
    "1"
    Below is my input xml document:
    <cred:PushQuote xmlns:com="http://www.pldt.com.ph/eai/Common" xmlns:cred="http://www.pldt.com.ph/eai/service/component/CreditService/">
    <PushQuote>
    <com:QuoteNumber>ZXCV-233</com:QuoteNumber>
    <com:CustomerAccountNumber>1213654889</com:CustomerAccountNumber>
    <!--Optional:-->
    <com:LineItemList>
    *<!--1 or more repetitions:-->*
    <com:QuoteLineItem>
    <com:LineNumber>3</com:LineNumber>
    <com:ProductCatalogId>string</com:ProductCatalogId>
    <com:Product>asdf</com:Product>
    <com:Quantity>string</com:Quantity>
    <com:Mrc>3</com:Mrc>
    <com:Currency>USD</com:Currency>
    <com:LastUpdateDate>string</com:LastUpdateDate>
    <com:LastUpdatedBy>string</com:LastUpdatedBy>
    </com:QuoteLineItem>
    <com:QuoteLineItem>
    <com:LineNumber>3</com:LineNumber>
    <com:ProductCatalogId>string</com:ProductCatalogId>
    <com:Product>1234</com:Product>
    <com:Quantity>string</com:Quantity>
    <com:Mrc>3</com:Mrc>
    <com:Currency>USD</com:Currency>
    <com:LastUpdateDate>string</com:LastUpdateDate>
    <com:LastUpdatedBy>string</com:LastUpdatedBy>
    </com:QuoteLineItem>
    <com:QuoteLineItem>
    <com:LineNumber>3</com:LineNumber>
    <com:ProductCatalogId>string</com:ProductCatalogId>
    <com:Product></com:Product>
    <com:Quantity>string</com:Quantity>
    <com:Mrc>3</com:Mrc>
    <com:Currency>USD</com:Currency>
    <com:LastUpdateDate>string</com:LastUpdateDate>
    <com:LastUpdatedBy>string</com:LastUpdatedBy>
    </com:QuoteLineItem>          
    </com:LineItemList>
    </PushQuote>
    </cred:PushQuote>

    atheek1 wrote:
    Try this:
    <ResultDoc>
    for data in $inputData/PushQuote
    return
    if( put all your if conditions here) then
    <result> 1</result>
    else
    <result>0</result>
    </ResultDoc>
    This will return a xml :
    <ResultDoc>
    <result>1</result> <!.. one result per PushQuote in input !>
    <result>0</result>
    </ResultDoc>yup I've tried that, and now I'm able to get result, my problem now is I can't get the result that is equal to 1 even if I use xpath.
    please see my updated code:
    declare namespace cred="http://www.pldt.com.ph/eai/service/component/CreditService/";
    declare namespace com="http://www.pldt.com.ph/eai/Common";
    declare function local:CheckValidation($PushQuote as element(cred:PushQuote))
    let $QuoteNumber := data($PushQuote/PushQuote/com:QuoteNumber)
    let $AccountNumber := data($PushQuote/PushQuote/com:CustomerAccountNumber)
    let $QuoteLineItemList := $PushQuote/PushQuote/com:LineItemList/com:QuoteLineItem
    return
    <status>
    for $QuoteLineItem in $QuoteLineItemList
    return
    if (fn:string-length(data($QuoteNumber)) > 0 and
    fn:string-length(data($AccountNumber)) > 0 and
    fn:string-length(data($QuoteLineItem/com:Quantity)) > 0 and
    fn:string-length(data($QuoteLineItem/com:Product)) > 0 and
    fn:string-length(data($QuoteLineItem/com:Mrc)) > 0 and
    fn:string-length(data($QuoteLineItem/com:Currency)) > 0 and
    fn:string-length(data($QuoteLineItem/com:LastUpdateDate)) > 0 and
    fn:string-length(data($QuoteLineItem/com:LastUpdatedBy)) > 0)
    then
    <code>0</code>
    else
    <code>1</code>
    </status>
    declare variable $PushQuote as element(cred:PushQuote) external;
    let $returnValue := local:CheckValidation($PushQuote)
    return
    $returnValue
    $returnValue[code=1]/code
    I've tried putting xpath like this to get result = 1 but no luck :)

  • Cross-Validation Rules: How to re-validate segments all ready enabled?

    Is it possible to call one of the APIs to re-validate the code combinations againts the Cross-Validation Rules? If the enabled flag is set to 'Y' then the CVR is ignored. I am aware of the Cross-Validation Rules Report which is helpful, but I need to go a step further. I'm looking to loop through the gl.gl_code_combinations tables, re-validate the combinations that are enabled, if CVR fails then determine if there are any amounts that need to be moved prior to disabling the combination.
    I have a routine that:
    1. creates temp table of all enabled combinations
    2. loops through gl_code_combinations
    3. deletes record from gl_code_combinations, do not commit
    4. calls API fnd_flex_keyval.validate_segs
    5. updates status of temp table
    6. rollback deleted record
    7. repeat 2 - 7 until done
    8. query gl_balances using temp table combintions that have failed.
    I'm a little nervous to run such a routine, because of the delete.
    Does anyone have any ideas or suggestions?
    Thanks,
    Jamie
    Edited by: jmdavis on Dec 15, 2008 6:17 PM
    Edited by: jmdavis on Dec 15, 2008 6:18 PM

    Use where clause for that UDA's in attribute that refer to other attributes data source. the where clause may required use Lookupcodes, these lookup codes may have to be configure in the source attribute values table column.
    Edited by: user11979254 on May 13, 2010 2:49 AM

  • Validate Numeric values in a varchar2 column

    Hi All,
    I am looking for some advise on the following approach.
    My Problem:
    I have a table test1( age varchar2(3) );
    I have another table test2( Nage number );
    I am trying to write a procedure which selects records from test1
    validate that age columns has only numeric data and then insert it into test2.
    FYI age being varchar2 in test1 can have data as
    11a ,111 , 222,wed,thu, th5 etc.
    I want to be able to reject record which has any characters
    (11a,wed,thu,th5 ) in this case.
    I have worked in Visual basic and there is afunction called IsNumber to do this Job? Is there any Oracle funtion?
    Also ,
    One way of doing it is using to_number function ( or any number fns like max )
    which would fail and I will capture that in exception section as shown below.
    Declare
    a number;
    begin
    -- This assignment fails and raises exception --
    a:= to_number('11a',999);
    If ok do my processing
    EXception
    when others then
    -- reject record
    end;
    Thanks

    Javed,
    I just answered the same problem with a different problem heading posted by you.
    Please do post the problem only once. Forum gets clogged up by repeating the question.
    Regards,
    SriDHAR

  • Repeated log in required

    Dear All,
    Adobe is repeatedly asking for sign in for Photoshop, Illustrator, Acrobat Pro, etc., etc.  I recently installed another cloud service on my computer because I cannot trust Adobe Cloud storage for file transfer.  Could the addition of the new cloud service be causing the repeated calls for log in from Adobe or are other people also having the same log in problems?  Adobe seems to be treating my software applications as trial software, even though I have been a subscriber for well over a year. Thanks.

    Hi Small Town Gal,
    Welcome to Adobe Forum,
    You can go through this thread, it can help to resolve your issue:
    http://forums.adobe.com/message/5703632#5703632
    http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    You may be prompted to sign in but if you are on an annual plan you have up to 99 days to sign in.  If you are on month to month then you may have up to 30 days to sign in.  You can find more details on this in the Creative Cloud FAQ athttp://www.adobe.com/products/creativecloud/faq.html.
    Do I need ongoing Internet access to use my Adobe® Creative Cloud™ desktop applications?
    No. Your Creative Cloud desktop applications (such as Adobe® Photoshop® and Illustrator®) are installed directly on your computer, so you won't need an ongoing Internet connection to use them on a daily basis.
    An Internet connection is required the first time you install and license your desktop apps, but you can use the apps in offline mode with a valid software license. The desktop apps will attempt to validate your software licenses every 30 days.
    For annual members, you can use the apps for up to 99 days in offline mode. Month-to-month members can use the software for up to 30 days in offline mode.
    Regards,
    Rajshree

  • Validation repeats excessively

    Hello friends at www.oracle.com ,
    I have a program that needs to validate 4 different fields. For validation to be successful, the 4 fields must be correct and their combination must result in a valid value.
    Validation is being done through WHEN-VALIDATE-ITEM triggers at each one of these 4 fields, and their combination can cause different types of error, that interrupts program execution by showing a message and raising form_trigger_failure built-in.
    However, despite of causing form failure at an error, validation is being repeated 4 times! It's annoying for the user and, worse than this, some different routines are being executed like if nothing wrong had happened. What could be the cause(s)? How can I make program raise the error - and definitively stop program execution - only once?
    I've seen that at form properties, validation type at 'Database Validation Unit' property is set as 'Default'. However, the situation described above still happens.
    Thanks for all answers, and best regards,
    Franklin Gongalves Jr.

    What you may have is the WHEN-VALIDATE-ITEM failing, which is causing the failure of a built in (eg GO_ITEM). However, unless you check FORM_SUCCESS after that GO_ITEM, the trigger/procedure with that code will continue on.
    If you have
    go_item('item_1')
    validate(item_scope);
    next_item;
    validate(item_scope);
    next_item;
    validate(item_scope);
    next_item;
    you will have repeated failures navigating out of the item
    You need
    go_item('item_1')
    IF not form_success then
    raise form_trigger_failure;
    END IF;
    validate(item_scope);
    IF not form_success then
    raise form_trigger_failure;
    END IF;
    next_item;
    IF not form_success then
    raise form_trigger_failure;
    END IF;
    validate(item_scope);
    IF not form_success then
    raise form_trigger_failure;
    END IF;
    next_item;
    IF not form_success then
    raise form_trigger_failure;
    END IF;
    validate(item_scope);
    IF not form_success then
    raise form_trigger_failure;
    END IF;
    next_item;
    IF not form_success then
    raise form_trigger_failure;
    END IF;

  • How to repeat IVR file in Menu(M) microapp

    I am having a setup where i am using Network VRU script M,Media.wav . i am using it with Run external script object in ICM.
    problem here is that my Media file play only for a single time. i want to repeat this annoucement which is not happening ?
    Call flow is as follows.
    Call get queued to Skill group. if agent are busy call should give a queue annoucement " All agents are busy be in queue or press 1 for voicemail.
    Above annoucement file play for one time but go to silence mode after that.
    i am using Runexternal Script object with M,media file microapp. success node i have connected to CED to collect digit for voicemail.
    while X node is connected to wait object and then again connected to Runexternal Script node.
    Screenshot are attached for reference.

    This is your first microapp script, correct?
    In case of agent busy i have connected queue to skillgroup object X node to Run external script .....
    That's wrong. If all the agents are unavailable and it queues the call, it comes out the check port, not the X port. If it comes out the X port, it's probably because your "condition if" failed.
    . but if i am not pressing anything at no input condition of Run external script media file is not repeating i want it get it repeat three times  . media.wav is playing only one time and call getting disconnected if i dont press anything.
    No you don't. You are saying to the caller "Press 1 for voice mail or just stay on the line" so you certainly don't want to repeat this. You really want to just play this once. The specifications I use when I do this is to set the "no entry" tries to 1 and override the custom messages.
    Check the CVP logs. If the call is coming out the X port of the Run Ext Script, it's because there is an error. Now it may be an error you are expecting (like reaching the max number of no entry tries) but you need to catch it and process it. In your case it could be because it can't find the system message "please make a selection".
    Callflow is simple . call comes to ICM script which is forwarded to CVP application for welcome annoucement and from there it is coming back again for agent getting it to icm object (queue to skillset)
    Let's look at your script again.
    It looks like you set up for Audium (CVP VXML) and call the application "Hns SD Project" through PlayVXMLScript node 149 (I assume this is GS,Server,V). Is that your Welcome? Why does the X out of 149 go to 192?
    Now it goes to the Q2SG. If no agents are available, it goes to node 191. How can 191 go to both 192 and 193?
    microapp.media_server should be set to a key word like "media" and resolve this on the gateway. Why is this set to "http://ms/en-us"?
    The locale will kick in and append the locale - which you don't override. That's en-us. So it will make this "http://ms/en-us/en-us/app" and this is going to be wrong.
    196 failure goes to 197 (wait) which is illegal and then goes back to 196. What are you doing?
    This script is full of errors. It cannot possibly validate.
    Regards,
    Geoff

  • When-validate-item : too_many_rows

    Hi,
    I have when-validate-item trigger on a field in black which returns multiple rows for some instances. In deed, I need to display the returned value to the user in case of multiple rows as well.
    select campaign_code from campaign_master where campaign_vehicle=:form1.vehicle;If the vehicle is registered for multiple campaigns, I need to display the same to the user.
    Is there any way, I can handle it in an efficient manner.
    Thanks

    I need to display the returned value to the user in case of multiple rows as well.How are you displaying the information to your user? Is there a possibility that the vehicle entered is not used in a campaign? Does your user need to know which campaigns the vehicle is used in or simply how many it is used in?
    If only the number of campaign's I think an LOV that lists the Vehicle and a count of how many campaigns it is used in would work. Set the Validate from List property of your item to yes so if the vehicle is not found the LOV will automatically display.
    If the user needs to see which campaign - if any - the vehicle is associated with, then you could show the list of records in a pop-up window and allow them to choose the record they want from the popup. The tricky part to this option is that you can't call the Go_Item or Go_Block built-ins from the WVI trigger, you can only call Unrestricted built-ins from the WVI. One common work-around to this limitation is to create a 1 millisecond non-repeating timer in your WVI and let the Module When-Timer-Expired (WTE) trigger execute the restricted built-ins for you. If you need this option, search the forum on "create timer" and you will find numerous examples of how to set up a non-repeating timer.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Validate XML record-by-record

    Hi,
    Our process receives XML files on a daily basis and the files are processed through Java.
    If a record in XML fails to validate against the XSD (i.e. schema validation error), the whole file gets rejected. The file gets loaded only after that record is corrected. That is the limitation of Java.
    But now we will now be processing the XML files through PL/SQL.
    I wanted to know whether the XML can be validated against the XSD record-by-record? Is it possible that only the record that fails to validate is rejected while the remaining records get loaded into the database?
    If so, could you please also suggest the correct approach?
    Thanks in advance.

    It should be possible but it will take some work because you only want/need to validate the XML starting from a given node against a XSD. Here's my thoughts on what it should take. I'm not sure what your XSD(s) look like so I'll make the following assumptions:
    Assumption:
    A XSD exists that can validate a single Customer.
    A XSD exists that can validate a single Program.
    The XML is syntactically valid to allow being created as a DOMDocument or XMLType
    You would need to load the full XML file into a DOMDocument or XMLType, both will work fine for parsing. I would lean towards XMLType as you can use XPaths to pull info from the XML. You will then need to pull out the Programs and Customers from main XML. For each Program/Customer, pull out the individual Program/Customer and validate that against the XSD. If it passes validation, continue processing that Program/Customer. If it fails validation, go on to the next Program/Customer and repeat the process.
    As I said, this approach only works if the XML is syntactically valid. If you can't load the file, you can't attempt to load the 99 Programs when the 1 Program is way off. If the XML is only invalid per the schema, then you can process as many Programs/Customers that are individually valid.
    Hope this helps. I'm sure other methods exist but this is what I could think of.

Maybe you are looking for