Filename in an alert message

Hi Friends,
I am doing a simple file to idoc scenario.
if mapping error occurs.
the requirement is to trigger an alert which says "A mapping error occurred when processing the file XYZ.txt"
Constraints are:
1. BPM is not used as it is a simple scenario.
2.RFC lookup during mapping is to be avoided since if mapping itself fails then it will be of no use.
Is there a way/work around to get the filename dynamically in the alert message.
Thank you,

Seems to be not possible without a BPM.....at least by using a standard alert procdure
Using a mapping get the FileName .....have both the source and target message as the same.....
map the FileName to some empty node of the structure.
In the mapping logic, one for which you want to check for any exception, do not make use of the node containing the FIleName...let the rest mapping remain as is
Create a Container Variable and Assign the node containing the FileName to it using a Container Operation.
Then raise the Alert.
I have used a similar approach in one of my interfaces.
Regards,
Abhishek.

Similar Messages

  • Check  File Existence and display  alert message

    Hi,
    I have a servlet which uploads file to server. Below is my code and is working file. Now, I want to check if the file uploading by the user is already exists. If so , I have to display a message to user "The file you are trying to upload already exists. Do you want to overwrite" with YES or NO actions.
    How can I display this alert message from user.
    //item.write(tosave);
              FileItemFactory factory = new DiskFileItemFactory();
              boolean isMultipart = FileUpload.isMultipartContent(request);
              System.out.println(isMultipart);
              Map fileDetails = new HashMap();
              ServletFileUpload upload = new ServletFileUpload(factory);
              List items = upload.parseRequest(request);
              Iterator iter = items.iterator();
              while (iter.hasNext()) {
                   item = (FileItem) iter.next();
                        if (item.isFormField()) {
                                       String fieldName = item.getFieldName();     
                                       String fieldValue = item.getString();
                                       fileDetails.put("fileName",item.getString());
                        else {
                                  fileDetails.put("path",item.getName());
                                  cfile=new File(item.getName());
                                  onlyFileName = cfile.getName();
                   if (! folder.exists()) folder.mkdirs();
                   if(cfile.exists()){  //THIS CHECK THE FILE EXISTENCE.  HOW CAN I DISPLAY ALERT MESSAGE TO USER HERE.
                        System.out.println("File Already Exists Path is ");     
    Can anyone suggest me on this.

    It won't work like that because JavaScript will run either before the form is submitted or after the page has been generated. In either case, you can't really communicate between the server side code and client side code.
    What you can do is use Ajax to communicate with a servlet that checks for the duplicate file and responds accordingly. You can then perform the appropriate action on the page. This should be very simple to setup, take a look at this basic tutorial [1].
    [1] http://www.w3schools.com/ajax/default.asp
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://www.catb.org/~esr/faqs/smart-questions.html
    ----------------------------------------------------------------

  • Display an Alert message in PL/SQL block in APEX

    Hi,
    we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn.
    Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to be embeded nside a PL/SQL block in Oracle APEX Application.
    we tried doing this with below code:
    Begin
    INSERT INTO <<table name>>(ID,NAME) VALUES (s1,:TXT_s2);
    exception when others then
    htp.p('<script language="javascript">');
    htp.p('alert("Exception");');
    htp.p('</script>');
    end;
    If anybody knows .... please reply.
    Thanks,
    Subarna
    Edited by: user9955252 on Apr 21, 2010 1:47 AM

    Hello,
    APEX Forum is here : Oracle Application Express (APEX)
    Regards

  • An alert message observered while appling latest patch MLR 10

    Hi Gurus,
    While applying latest patch MLR10 we observed an alert message as below
    "Creating log file "C:\oracle\midtier\.patch_storage\8404955\Apply_8404955_05-21-
    2009_15-44-27.log"
    Conflicting patches: 8204237,
    Patch(es) 8204237, conflict with the patch currently being installed (8404955).
    If you continue, patch(es) 8204237, will be rolled back and the
    new patch (8404955) will be installed.
    Note: If the patch currently being installed (8404955) is rolled back,
    it is recommended that the fixes being rolled back here (8204237, ) are reinstal
    led.
    If a merge of the new patch (8404955) and the conflicting patch(es)
    8204237, is required, contact Oracle Support Services and request
    a Merged patch.
    Do you want to STOP?
    Please respond Y|N
    Should we rollback the previous patch before applying MLR10 ? or can i continue with patch application ?
    Thanks in advance,
    Regards,
    Cema

    Please continue the MLR10 patch installation, this message would appear for the all patch installation (of course, patch number would be different though).

  • An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions.

    An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions. Than when it opens all of my saved passwords are gone, I use a master password and its disabled. When I try to enter in a new on e it says can't change password. I can't even open yahoo e-mail says that my ssl security is down but when I check it its clicked. I'm just very confused as to whats going on.
    == This happened ==
    Every time Firefox opened
    == 5/14/2010 ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5

    See [[Could not initialize the browser security component]]
    Rename (or delete) secmod.db (secmod.db.old) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case there is a problem with the file.

  • Can we use the value of a variable in an alert message

    I have a variable in forms6i. I want to use the value of this variable in an alert message. How is this possible?

    Gul wrote:
    I have a variable in forms6i. I want to use the value of this variable in an alert message. How is this possible?Try
    DECLARE err_txt VARCHAR2(200) t;
    al_id ALERT;
    al_button Number;
    BEGIN
    al_id := FIND_ALERT('My_Error_Alert');
    SET_ALERT_PROPERTY(al_id, alert_message_text, 'Hello how are you mr. variable '||:variable_name );
    al_button := SHOW_ALERT( al_id );
    END; Hope it works..
    Hamid

  • How to stop printing the crystal report with an alert message

    I am having a field called "APPROVAL" in my stored procedure with which I prepared the CR. I want that if the value in the filed is 'A' then only the crystal report should print else it should prompt with an alert message.

    Hi Sreejith,
    Check this helps you:
    Create an alert from "Report  -> Alerts -> Create or Modify Alerts" with below steps:
    1. Provide name of the alert (say Alert1)
    2. Click on X+2 in front of "Message" field and write the Alert message you want to display.
    3. Click on Condition button and write the condition If not({APPROVAL}='A') then true;
    The above Alert will prompt with configured alert message when {APPROVAL} field is not having value of 'A'
    Now, in a formula, write below content and display it where you want to display the APPROVAL field value:
    If {APPROVAL} = 'A' then
              {APPROVAL}
    This formula content will be blank if the value of {APPROVAL} is not 'A'
    Thanks,
    Raghavendra

  • When I am writing an email, I get an alert message that says "The message could not be copied or moved to the drafts folder. Writing to the folder failed. To ga

    When I am writing an email, I get an alert message that says “The message could not be copied or moved to the drafts folder. Writing to the folder failed. To gain disc space, choose Empty Deleted and choose Compact Folders and try again.”
    If I do that, I get a message saying “There was an error copying to the Sent folder,, retry?”
    If I retry it sends the uncompleted email. All I can do is keep deleting the message and carry on. Then the whole business might repeat itself.
    Help!
    Frank

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

  • Cash account with nagative balance shows an alert message

    Hi All,
    when user  create  any type of  Outgoing Payment , Incoming Payment, deposits , Journal Entry with the Cash account which is active accounts and the account balance is less than ZERO so system gives an alert message  on the screen I want this type any query or any store procedure.

    Hi ,
    As far as i  am understanding your query this may be for outgoing payment.
    Do you want to stop a outgoing payment from cash account? if balance in this account is zero.
    Clerify your question.
    Thanks
    Ashutosh

  • Outlook 2016 getting crashed and throws an alert message as "microsoft outlook has encountered a problem and needs to close.

    Hi,
    Today i installed Microsoft Office 2016 preview for my Mac OS X 10.10 Yosemite. Word, Excel and Powerpoint applications are working without any problem. However, Outlook getting crashed and throws an alert message as "microsoft outlook has encountered a problem and needs to close.", it's happens always, when i launch outlook. please suggest me, how can i comet from this issue.
    Thanks in advance,
    Suresh Balakrishnan.

    Go to the Microsoft site for help. These forums are not offering support for MS products, especially not for beta products.

  • Firefox does not opens. It shows an alert message -"Your Firefox profile cannot be loaded. It may be missing or inaccessible."

    Firefox window does not opens. It shows an alert message -"Your Firefox profile cannot be loaded. It may be missing or inaccessible." I have deleted the processes in task manager and restarted Mozilla.Even then it does not opens. Pls get me a solution.

    Make a new profile ('[[managing profiles]]'); if the old profile directory is still there, just copy-and-paste its contents into the new profile directory.

  • My ipad was is displaying an alert message " A wi-fi connection is required to download your apps and media". So it has been connected to the internet over night and this morning but is still displaying the alert message and it won't go away. what to do?

    Hi,
    My name is Norbert. I am having some difficulties restoring my icloud back up. My ipad was doing an icloud back up and the alert message displayed on the ipad after my internet was interrupted "A wi-fi connection is required to download your apps and media".
    I got the internet working, my ipad is receiving internet network but the alert message is still displayed on the ipad and won't go away, to make matters worse the ipad is frozen and i can't do anything.
    Please can anyone with a similar experience tell me what to do in this situation?
    Thank you

    Welcome to the Apple Community.
    Have you tried a hard restart. Press the on/off button and homescreen buttons together until the device shuts down.

  • Is it possible to make an alert message.

    Hi,
    Anyone knows if it Is possible to make an alert-message that pops up ( f.e as a little window) on a specific day to remember me of something I have to do that day?
    Would be handy.
    Is this possible with Tiger or is there a third party application that does the trick?
    Thanks in advance.

    Try a free widget called quikAlert
    http://www.apple.com/downloads/dashboard/business/qwikalert.html
    Regards
    TD

  • Why do i keep getting an Alert message saying "The URL is not valid and cannot be loaded "?

    Why do i keep getting an Alert message saying "The URL is not valid and cannot be loaded "?
    This happens a lot regardless of the web page. I continually have to restart FF and it persists still

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • How to add an Alert Message

    Hi, what steps must I take to add an alert message that reminds the Adobe Reader end user to Print their form if they wish to keep a record of their form data.
    Also, where should such an alert appear, when and upon which event type?
    Harry

    Thanks Jimmy, unfortunately it doesn't work on my Submit button (which is where I do want it).. Here's what I have on the standard Submit button.
    ----- form1.SF_P8.SF_print-submit.EmailSubmitButton::click - (JavaScript, client) ------------------
    xfa.messageBox("Please ensure you also print a copy for your records", Warning, 1, 1);
    this makes my button do nothing at all, not even submit. I think it's because there are 2 events associated with it, the invisible "submit" and the new warning. Any suggestions?
    Harry

Maybe you are looking for

  • Accidentally put documents in Applications folder, can't get them out

    In Finder I accidentally moved a folder with two Word documents from the Desktop to the Applications folder. I can't move them back out. When I try, I get pointers to the documents in the Applications folder. I can delete the folder, but then the doc

  • Bandwidth Question

    I wanted to ask a question which has been playing on my mind for a while now. Thought this is the best place to ask. I am currently on ADSL+2 and i get around 17mbps-19mbps live 650meters from the exchange line lenth 19db. Now my exchange is going to

  • The procedure entry point slcvs2ptr could note be located

    I get an error: the procedure entry point slcvs2ptr could note be located oraclient9.dll, and oracore9.dll after installing ORacle HTML DB and HTTP Server on a machine with Oracle 9i and Oracle 10G. I have now de-installed Oracle HTML DB and HTTP Ser

  • Thousands of duplicate songs

    So after installing itunes 7.6 on my work Windows XP PC, my itunes library file got corrupted, and for some reason, Itunes couldn't find any of my songs. So deleted my old library file, and reinstalled the 13,000+ songs and videos I have on my extern

  • 5800 Xpress Music speaker function

    Hello, I was wondering if there is any solution on the issue that when the speaker function on 5800 Xpress Music is activated the microphone of the phone makes the interlocutor hear the conversation interrupted or with large differencies in volume. C