Error message on validation script

Hi Guys,
    I created a validation script for MA to check the fill on the extention collection as below.
productColln = doc.getExtensionCollection("PROD_HIER");
productItr= productColln .iterator();
for(member : productItr){
          if(!hasValue(member.get("fieldA"))){
               exception.chainAtEnd(member.createApplicationException("fieldA","Please enter Max Value"));
          if(!hasValue(member.get("fieldB"))){
               exception.chainAtEnd(member.createApplicationException("fieldB","Please enter the Unit Price"));
if(exception.getChain() != null){
    throw exception.getChain();
    1. When the 'fieldA' and 'filedB' are blank, the error message is shown only for 'fieldA'. After i complete 'fieldA' the error message will be shown for 'fieldB'. It seem like it will show only for first one which is put in the chain. I would like the message to show all message in the chain.
    2. When the error message is shown the both fileds are covered by the red line but i would to have the red ' ! ' appear on the tab (ex. for product tab) as well. How can i implement that?
Noppong,
Thank you in advance

Hi Noppong
My understanding is once system gets an exception, it skips to throw statement and the subsequent exceptions, if any ,are skipped. Use of chain exception allows one to write one throw statement in the code rather than multiple throws at various points.
I may be wrong so appreciate if someone can validate this.
Regards
Mudit Saini

Similar Messages

  • The restore session has stopped working. It tries to load, but then gives an error message that the script is not working and will not actually show the previous tabs I had open.

    I count on using the Firefox restore session feature. But it's stopped working. For the past couple of days, it hasn't worked a single time. (I haven't changed anything on my PC.) It just suddenly stopped working.
    Now it gives me an error message that the script has stopped working. It gives me a couple of options. I'm not sure of the exact wording, but one option is to stop the script and the other is to keep trying. But the keep trying never works.
    I have to stop the script, hence, the list with my previous tabs never comes up.

    Which file is mentioned as the cause of that script error?<br />
    Is that a file with a chrome protocol?

  • Error message: "Warning: unresponsive script". Afterward, the system freezes and will then crash. Crash reports have been submitted many, many times without response. I have tried the fore-mentioned solutions with either no results or very bad results

    Error message: "Warning: unresponsive script". Afterward, the system freezes and will then crash. Crash reports have been submitted many, many times without response. I have tried the fore-mentioned solutions with either no results or very bad results which I filed a report but did not receive an answer. The application to block scripts actually worsened the problem and I could not correct the situation for a while (no response from Firefox, at all). I have also been through this procedure without any one contacting me, AT ALL.
    == URL of affected sites ==
    http://http://www.facebook.com (always) and www.YouTube.com (sometimes)

    There does appear to be any support whatsoever from mighty "non caring" FIREFOX & people are getting fed up. We may as well try another system, if they can't be bothered to provide any support for their system, we can't be bothered to use their system.
    Brianeng

  • Error Code :-5002 Error Message :Enter valid currency  , '51100000-01-001-0

    Hi all,
             I have found a error "Error Code :-5002 Error Message :Enter valid currency  , '51100000-01-001-01'" while adding the DELIVERY document.
    I have made a customer and assign then "EURO" currency and add delivery document then it prompts error.
    Could anyone solve this problem. is there any setting which i am missing..??
    Regards
    Sandesh

    HI Sandesh,
    Check Sap note :1252328
    and also check below thread of similar issue:
    Re: 'Invalid Currency' error when attempting to deliver order
    Hope this will solve your issue.
    Thanks,
    Neetu

  • Error message: "Enter valid currency [Message 173-57]" during Deposit transaction

    Hi All,
    Is there a specific reason why can't I deposit from a "Multi-currency" cash account to a "specific (i.e., USD)" cash account using the Banking> Deposits> Deposit module.
    I have already read below threads related to this issue.
    Error message "Enter valid currency [Message 173-57]" during cash deposit
    Can't Create Cash Deposit of Journal Entry due to "Invalid Currency" Error
    Transfer Between bank accounts in different currencies
    GL Postings between different currency accounts
    foreign currency transactions
    SAP Business One Note: 1260658 - Transfer monies between different monocurrency accounts
    I have posted successfully e  cash transfer from multicurrency to monocurrency cash account thru Journal Entry, However, I wanted to know the reason why it is not possible to post this transaction thru the Banking> Deposit module.
    Appreciate your feedback on this matter.
    Thanks!

    Hi,
    Same error message is appeared in 8.81 PL10. So this is not due to PL. If you select other than local currency at deposit currency, this error appears.
    Let me check and update.
    Thanks & Regards,
    Nagarajan

  • I have OS10.6 and when I try to update I receive error message after validating packages and updates to not tke.

    I have OS10.6 and when I try to upload updates I receive an error message when validating the packages. No updates take place.

    Are you using Software Update? And what is the error message?
    You are on 10.6.0? Why don't you download the combo updater for 10.6.8 directly from Apple and try to install it from there:
    http://support.apple.com/kb/DL1399

  • When I open bookmarks I get an error message that a script has stopped or is busy

    When I try and access my bookmarks I get an error message that a script has either stopped running or is busy. My choices are continue or stop script. The only way I can get to the bookmarks is to stop the script. Is there a fix for this?

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • I keep getting error messages that a script "may have stoped responding", The script in question is "contentAreaUtils.js".

    I just updated to FireFox v3.6.8, after using v3.5 successfully for many months. With the new version I keep getting error messages that a script "may have stopped responding", The script in question is "contentAreaUtils.js". My OS is Win2k SP4, with 253,424 KB RAM.
    Is there a known fix. If not, is there an easy way to revert to FireFox v3.5 ?

    Attached is an image of the error message.

  • Error message - "Overlapping validity areas were found for country BR"

    Hi Experts,
    For a certain output type Y953 (e.g. for the shipment 2002355665 related to the DN 3087912658), an error message "Overlapping validity areas were found for country BR" is coming in as error.
    The error message is appearing during the idoc processing of the shipment.
    This is an incident of Dangerous Goods.
    I would like to know if it is technically / functionally possible to find out as to why exactly this mesage is coming and how can we rectify the problem.
    From technical point of view we checked that this message was not being called in the SAP system but was dynamically called.
    kindly let me know of any breakthrough as this issue is critical as dangerous goods are being transported without needed documents printed.
    Thanks in advance.
    RIttik

    Check whether note 836139 helps you.
    thanks
    G. Lakshmipathi

  • I have an older Macbook with OS/X. Tried to download iTunes 10 a few times now, but when installing I always get the same error message: Run Preinstall Script for Apple Mobile Device Support. What can I do to finalise the installation?

    I have an older Macbook with OS/X. Tried to download iTunes 10 a few times now, but when installing I always get the same error message: Run Preinstall Script for Apple Mobile Device Support. What can I do to finalise the installation?

    Thanks. Short of the sort of "generic" suggestions of restaring your system, if you haven't, and repairing disk permissions and verifying the disk, I don't have any advice right now. I'll do some research and see if I can come across anything. Meanwhile, someone else may have an idea.
    Regards.

  • When i try and load Firefox, i get an error message saying 'unresponsive script' but then it wont allow me to press the continue button. What do i do?

    When i try and open Firefox, I get an error message saying 'unresponsive script' and it wont allow me to press the continue button. What do I do?
    == This happened ==
    Every time Firefox opened
    == Today ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4

    1
    Close all iWork applications
    2
    Uninstall Keynote; this must be done with an application remover tool to delete the installation properly. Appcleaner is known to work correctly for this purpose, it is free and can be downloaded from here: Appcleaner Download
    3
    empty the trash
    4
    shutdown the Mac and restart. After the start up chime, hold down the shift key until the apple logo appears
    let the Mac complete the start up procedure completely, it will take longer than usual as the hard drive is being repaired
    5
    Reinstall Keynote by logging into the Mac App Store using download / install

  • Error message when running script via package

    Hi there,
    I have a problem I can't understand - I am running a script from a package, and I get this error message:
    CopyCatFinanceError
    Invalid dimension ALL_FCSTPRICING in Lookup rule
    where CopyCatFinance is the name of the package, and ALL_FCSTPRICING is the name of a parent in the Category dimension.
    I don't understand why this member is being flagged as a DIMENSION, when it is only a member. And I don't understand why this is being flagged at all - this dimension has been reprocessed, as has the application (in fact, all the applications), the script has been re-validated and a full Optimise has been run several times...
    I am now out of ideas! Any thoughts?
    We are running BPC for MS 7.0 sp 7, on SQL 2005.
    Thanks a lot,
    Jason
    PS. And there are no lookups in this script either - I'm referencing the category dimension with the %CATEGORY_SET% variable as the user selects this at runtime.

    Can you post your logic, also check your lgx files are making sense.

  • Error message with a script sending emails to multiple recipients.

    Hi all,
    I am very new with powershell scripting and I want to request your attention and help on this issue.
    I am getting this error message "Send-MailMessage: An invalid character was found in the mail header: ','" given by this script:
    Param (
    [string]$Path = "C:\Temp\",
    [string]$SMTPServer = "smtp.domain1.com",
    [string]$From = "[email protected]",
    [string[]]$To = "[email protected],[email protected]",
    [string]$Subject = "New backup file"
    $SMTPMessage = @{
    To = $To
    From = $From
    Subject = "$Subject at $Path"
    Smtpserver = $SMTPServer
    $File = Get-ChildItem $Path | Where { $_.LastWriteTime -ge [datetime]::Now.AddHours(-6) }
    If ($File)
    { $SMTPBody = "`nThe following files have recently been added/changed:`n`n"
    $File | ForEach { $SMTPBody += "$($_.FullName)`n" }
    Send-MailMessage @SMTPMessage -Body $SMTPBody
    I found the ForEach() approach but when I put it inside I get an infinite loop.
    Many thanks for any suggestions

    [string[]]$To = "[email protected],[email protected]",
    should be
    [string[]]$To = @("[email protected]","[email protected]")

  • Error message with Action Script 2.0 file

    Hi,
    I am trying to edit an old flash file that uses Action Script 2.0. I am using CS6 and keep getting the following error message after publishing:
    Scene 1, Layer 'AS', Frame 1, Line 5, Column 29
    1067: Implicit coercion of a value of type int to an unrelated type String.
    Can you suggest any fixes or workarounds? I also have Flash 4.0. Can i downsave the file? If so, how?
    Thanks!

    Thank you. I think that did fix the original two errors. But now upon test of the file, I get some new errors:
    Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 3
    1120: Access of undefined property ratio.
    Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 20
    1180: Call to a possibly undefined method number.
    Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 27
    1120: Access of undefined property _root.
    Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 9, Column 27
    1120: Access of undefined property ratio.
    And on the MoneySlide layer in Actions:
    this.ratio = 0;
    this.loadBar._width = 0;
    this.dragger.ratio.text= "$0";
    dragger.onPress=function(){
              this.startDrag(true,0,0,line._width,0);
              this.onEnterFrame=function(){
                        ratio=Math.round(number(_root.transitBenefitLimit/100)*(this._x/(line._width/10 0)));
                        loadBar._width = Math.round(this._x);
                        dragger.ratio.text= "$"+ratio;
    dragger.onRelease=dragger.onReleaseOutside=stopDrag;

  • Error message "No valid source context supplied"

    Hii,
    I will add buttons to my html page. So far, I inserted the following code to my bsp page:
    <% DATA: ls_button type CRMT_THTMLB_BUTTON,
                      lt_button type CRMT_THTMLB_BUTTON_t.
                      CLEAR ls_button.
                      ls_button-type = cl_thtmlb_util=>gc_icon_edit.
                      ls_button-on_click = ''.
                      ls_button-enabled = 'X'.
                      ls_button-text = 'Cancel'.
                      append ls_button to lt_button'.
    %>
    <thtmlb:areaFrameSetter toolbarButtons = "<%= lt_button %>"
                                            maxButtonNumber = "1" />      
    When I remove the buttons, that I inserted before with the configuration tool (button Coniguration) and test my page, I get the following error message:
    Cannot display view Z_SHOW/Upload of UI Component Z_SHOW
    An exception has occured
    Exception Class  CX_BSP_ELEMENT_EXCEPTION-:No valid source context supplied
    Methode              CL_BSP_ELEMENT=>IF_BSP_ELEMENT~RAISE_ERROR
    Source Test Row: 3
    Can anyone explain me, how to fix the error message?
    Thanks and regards,
    Harris

    I have the same error,could you tell me how to solve it .thanks !
    无法显示视图 ZGSWIDET/DetailsEF
    已出现异常 例外分类  CX_BSP_ELEMENT_EXCEPTION - : No valid source context supplied 
    方法:  CL_BSP_ELEMENT=>IF_BSP_ELEMENT~RAISE_ERROR 
    源文本行:  3

Maybe you are looking for

  • Regarding quantity field...value in layout

    Hi All, my issue is here i am passing vbrp-fkimg value to layout.. the value in the field above is 100.000, but here in the layout it is coming as 100 and printing it. how the value of 100.000 become 100. any settings, configuaration are there which

  • IDOC Change pointers   is table BDCPV still used nowadays

    Hi, I got a do something with idoc transfer. I got a document with described what to do. One of the things to do was to get Change pointer data out of tale BDCPV. But in that table hasn't been written anything last year. i have activated changepointe

  • Forgot my administrator password in windows 7

    sir ,      i have forgot my administrator password in windows 7 .      how can i easily solve that problem ?      and my data is so importanat .      so pls. help and solve this problem .

  • Navigation Item Icon Image

    Hi, I have put up some custom navigation items in the Navigation along with Logout,Print etc. I assigned a graphic gif image to each of the Navigation items in the property Image, but the images do not show up when the page renders. I have selected i

  • Tab option in controls?

    Can anyone please tell me how to activate the tab control within the tables spo that I can run through the rows with the help of the tab key?