Duplicate error message when doing validation

hi am geting two same error when validation,i what to display only one error message
am in jdeveloper 11.1.1.6.0,am geting duplicate validation error message
this is how am doing validation
<af:inputText value="#{bindings.Organisationname.inputValue}"
                                  simple="true"
                                  columns="20"
                                  maximumLength="#{bindings.Organisationname.hints.precision}"
                                  shortDesc="#{bindings.Organisationname.hints.tooltip}"
                                  id="it1" autoSubmit="true" required="true"
                                  validator="#{pageFlowScope.orgvalidation.chkOrgName}"
                                  label="Organisation Name">
                      <f:validator binding="#{bindings.Organisationname.validator}"/>
                    </af:inputText>
public String checkName(String orgname){
ResultSet rs;
Row curPerson;
String value= null;
OrgAppModuleImpl am =(OrgAppModuleImpl)ADFUtils.getApplicationModuleForDataControl("OrgAppModuleDataControl");
try {
System.out.println("valueadded "+orgname.toUpperCase());
value =am.findbyOrgname(orgname.toUpperCase().trim());
System.out.println("valueadded "+value);
catch (Exception e) {
e.printStackTrace();
return value;
public void chkOrgName(FacesContext facesContext, UIComponent uIComponent,
Object object) {
// Add event code here...
String value =(String)object;
String evalue=  checkName(value);
if( evalue == null){
}else{
FacesMessage message = new FacesMessage();
message.setSeverity(FacesMessage.SEVERITY_ERROR);
message.setSummary("Organisation Name already exists.");
FacesContext context =  FacesContext.getCurrentInstance();
context.addMessage("esecurity", message);
throw new ValidatorException(message);

yes i what two diffirent validation which is required=true and checking for duplication this is not what am talking about,what am talking about is the two message for duplicate validation for checking duplicate,am geting this message twice in the error message
public void chkOrgName(FacesContext facesContext, UIComponent uIComponent,
Object object) {
// Add event code here...
String value =(String)object;
String evalue=  checkName(value);
if( evalue == null){
}else{
FacesMessage message = new FacesMessage();
message.setSeverity(FacesMessage.SEVERITY_ERROR);
message.setSummary("Organisation Name already exists.");
FacesContext context =  FacesContext.getCurrentInstance();
context.addMessage("esecurity", message);
throw new ValidatorException(message);

Similar Messages

  • Error message when doing a back up

    Hello,
    I am getting  an error message when trying to back up my iPhone 6 through iTunes. My iPhone 6 is 128GB. I'm up to date using iOS 8.3 I've never had a problem until today. What can I do to remedy this?
    Also, my "other" is now up to 13.5GB. Do I need to wipe the phone and start from scratch? Thank you for any help on this!

    Jailbroken?

  • Error message when doing SUBMIT

    Hello there,
    i am just working on BSP pages that call ABAP Reports with "Submit" and display the Results within the BSP.
    My Problem now is that some reports may come up with an Error message (type 'E') that stops the report and the processing of the BSP Page. The page displays then a "500 internal SAP Error".
    I found a good weblog here: /people/mark.finnern/blog/2003/09/16/bsp-in-depth-message-statement-handling but also to encapsulate the Submit by a function call does not help here. The page stops when calling the submit.
    Is it somehow possible to prevent the BSP-Page from terminating and catch the error message from the Report? I can not modify the Reports that are called.
    Thanks for any help,
    Stefan
    6.20 SP49

    Hi Stefan,
    If your report returns the error message or message id, you could pass this on as an export parameter in your wrapping function back to your BSP event.
    To display the error message on the same BSP page, include the following code in the event where err_msg is the error message from your report passed on to the function:
    page->messages->add_message(
    condition = 'REPORTERROR'
    message = err_msg
    severity = page->messages->CO_SEVERITY_ERROR ).
    In the layout of the BSP page include the following code where you want the error message to be displayed:
    <font color="red"><%= page->messages->assert_message( 'REPORTERROR' ) %></font>
    Make sure the condition has exactly the same name in the event and the layout.
    Additionally you could also use the SY-SUBRC after your SUBMIT statement and display a generic message for an internal error if the SUBMIT statement itself fails.
    Regards,
    Rohini.

  • Error message when doing HCM "change employee salary" on portal

    Hi experts,
        We have a problem when user did the "salary change" HCM form on HR portal.
        We checked the workflow log by SWIA, work item 23546, and there are error messages described as below:
    Error when processing node '0000000005' (ParForEach index 000000)
    Work item 000000023546: Object FLOWITEM method EXECUTE cannot be executed
    Error updating the process object
    Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event STATE_CHG and (target) status READY->
    Transaction brackets of the workflow has been damaged
    Error when creating a work item
    Error when creating a component of type 'Step'
    Error when processing node '0000000005' (ParForEach index 000000)
    Error when starting work item 000000023546
    Agent determination for step '0000000005' failed
    Error in resolution of rule 'AC17900012' for step '0000000005'
    No authorization for user PRONKAI content Form Scenario content group ZPSP activity P
    Error when creating a work item
    Error when creating a component of type 'Step'
    Can anyone help me to analyze the error messages and the possible reason to cause this error?
    Any useful hint will be appreciated.

    Gentlemen - the problem has been found and resolved. Seems like the XML Data Source cannot contain a reference to a validating DTD. Once the following reference was removed AND I used employee instead of Employee in the template all worked.
    <!DOCTYPE employees SYSTEM "employees.dtd">
    I assume this is correct - not being able to contain a DTD reference? I will also, tomorrow (read that as probably Monday) be trying the same thing using XML Schema vaildation.
    THANKS for the help - Casey

  • Error message when doing settlement for Internal order

    Hi,
    Can someone please help me to resolve the following error:
    When trying to run settlement for an internal order, following error message is generated:
    Item 001 Order xxxxx budget exceeded
    Message no. BP603
    Diagnosis
    Budget was exceeded by xxxx amount in document item 001 Order xxxxxx.
    Also following points may be relevant:
    - System status ISBD for Internal Order is active
    - There is no PR/PO for the order, direct invoice from FI is created through tcode FB50
    - Availability control: Activation Type 1, Overall field ticked in customization
    - Tolerance  Limits:  Availability control action .... Usage 85 % - Warning message, Usage 100 % - Error message
    Thanks,
    Ankita

    Hi Loong,
    Thanks for reply.
    I have already tried drilling down the report S_ALR_87013019 , however following are the only things available from the report.
    1. There is a year independent overall budget for the order of 92500 amt.
    2. Actual in 2009 is 7870.41 and in 2010 is 77980.24. So the total actual amt is 85850.65 overall.
    3. The available budget is 6649.35. i.e Over budget minus actual utililized amounts.
    Since, in the report it shows that the budget is available then I am unable to figure out why does it give error for exceeding budget by amt 50100.65 at the time of settlement.
    Regards,
    Ankita

  • Error Message when doing a Stock transffer using Mvt Type 309  using MIGO

    Hi Team,
    I am getting an error message M7-441 "Selection by multiple account assignment was not restricted", when doing a stock transfer.
    I am not able to understand the exact issue here, any help is appreciated.
    Regards
    Raj

    M7441 seems to be a new error message which came with EHP4
    I can only see that it is used in MB51 report (do you search for material documents in MIGO when you get this error?)
    according to the coding in my system this is just a warning message, not an error message, hence you could continue by cklicking the okay icon.

  • ERROR MESSAGE WHEN DOING SIMPLE QUERY TO RETRIEVE LARGE AMOUNT OF DATA

    Hello,
    Am querying my database(mysql) and displaying my data in a
    DataGrid (Note that am using Flex 2.0)
    It works fine when the amount of data populating the grid is
    not much. But when I have large amount of data I get the following
    error message and the grid is not populated.
    ERROR 1
    faultCode:Server.Acknowledge.Failed
    faultString:'Didn't receive an acknowledge message'
    faultDetail: 'Was expecting
    mx.messaging.messages.AcknowledgeMessage, but receive Null'
    ERROR 2
    faultCode:Client.Error.DeliveryInDoubt
    faultString:'Channel disconnected'
    faultDetail: 'Channel disconnected before and acknowledge was
    received'
    Note that my datagrid is populated when I run the query on my
    Server but does not works on my client pcs.
    Your help would br greatly appreciated here.
    Awaiting a reply.
    Regards

    Hello,
    Am using remote object services.
    USing component (ColdFusion as destination).

  • Using ADF BC I wnat to customize error message when entity validation fails

    Hi,
    I am using ADF BC for model.JSF for view-controller
    I want that when entity level validation fails during update of record the error massage should be generate accourding to the values inputed by the user.
    how can i add programatically generated error message.
    Please if possible provide some example.
    Thanks
    ajit

    Try this:
    http://download-west.oracle.com/docs/pdf/B25947_01.pdf
    9.3.3 How to Create an Entity-Level Method Validator

  • Error message when doing invoice verification.

    Hi Gurus,
    During doing invoice verificition with delivery notes.Im getting a error message that level F1 belong to cash postion,source symbol PSK.Plz any body can help me to solve it
    Thanx

    Hi
    Planning level  belongs to the cash position, which means you can only use it for G/L account line items.
    Levels are defined and allocated to a source symbol in view V_T036. The source symbol is allocated to the cash position or the liquidity forecast in view V_T039.
    Please check these Tables using Transaction SM30

  • Csm error message when doing deploy to device

                       hi
    i have csm 4.3 and i did deploy to file and it was a success , when i am doing deploy to device i am getting an error saying:
    an error response from the device prevented succeful completion of this operation. the device provided the following description: crypto map CSM_outside_map 1 match address CSM_IPSEC_ACL_24:unable to locate access-list CSM_IPSEC_ACL_24
    when i am doing preview their is no problem
    what this message meen?

    Hello,
    Am using remote object services.
    USing component (ColdFusion as destination).

  • F-04: give error message when clearing AP items with payment block key(R)

    Hi all,
    Customer wants to prevent payment for AP items with payment block key(BSEG-ZLSPR) .
    I want system giving error message when doing payment clearning with t-code:F-04.
    How can I realize it ?
    Thanks Grus!
    Lynn

    Please configure the following nodes properly:
    Financial Accounting>>Accounts Receivable and Accounts Payable>>Business Transactions>>Outgoing Payments Global Settings>>Payment Block Reasons>>Define Payment Block Reasons & Define Default Values for Payment Block
    For the error message: You may define a validation in OB28 with the help of ABAP consultant

  • Keep getting an error message when updating 10.6.8

    keep getting an error message when doing a software update for 10.6.8

    I've tried both ways but it does the same thing.  I have iTunes v 10.3.1.
    I get an error message before I try to install iTunes:
    iTunes can’t verify the identity of the server “ax.itunes.apple.com”. The certificate for this server is invalid. You might be connecting to a server that is pretending to be “ax.itunes.apple.com”, which could put your confidential information at risk. Would you like to connect to the server anyway?

  • TS3212 I have removed my pop-up blocker completely and still receive the following error message when attempting to download iTunes:  "The file was blocked because it does not have a valid digital signature that verifies its publisher".....any ideas?

    have removed my pop-up blocker completely and still receive the following error message when attempting to download iTunes:  "The file was blocked because it does not have a valid digital signature that verifies its publisher".....any ideas?

    That suggests that the installer is getting damaged during the download.
    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • Error messages when submitting a validated RSS feed URL to iTS.

    Why do I keep getting error messages when submitting a validated RSS feed URL to iTS. Feed is http://streaming.integrationworks.com:3000/archive/feed2.xml
    I get variations on the follwoing message: "We had difficulty reading this feed. Bad http result code: 504"
    I validated this file at http://www.feedvalidator.org/. I am able to manually place it in iTunes (Open Stream) and download episodes. I can paste the URL in my browser and retrieve an RSS feed page.
    Any ideas?
    Rick

    You have to remember that when subscribing manually, it's only your iTunes application which is doing this - the Store is not involved at all. When submitting, the Store software checks the feed as a technical check before its assessed for content by humans; but how this is done and what sort of call is made to the server is another of Apple's dark secrets.
    You're the third with a similar situation in the last couple of days, and I've seen this arise before: though the specific message about a proxy server is unique to you. (A proxy server would act as an intermediary - anyone accessing the feed would ask the proxy for it, and the proxy would retrieve it from the actual server and pass it back, masking the original server's URL in the process. Whether this is actually what is going on is obviously something only your server technicians can say - and then there's the question of what is different about a request from the iTunes Store.)
    If all else fails you could place the feed on another server and try again - you could do this and leave the episode media files where they are, they don't have to be on the same server as the feed, as long as the server in question can handle 'byte-range requests' (which is a quite separate can of digital worms).

  • I am receiving the following error message when attempting to text to a valid mobile/cell number in Peru.

    I am receiving the following error message when attempting to text to a valid Mobile/Cell number in Peru...Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code.
    I am able to receive texts from the number in question, but not able to text back to the person sending.
    The number is a valid 9 digit cell/mobile number.

    If you're sending as SMS (green bubble) then this is a carrier issue and not an issues with your phone.
    To text internationally, you nearly always need to include the country code before the rest of the phone number. If you are doing so and still have issues, contact your carrier.
    ~Lyssa

Maybe you are looking for