Pmt Function - error message

I'm using this script to calculate a simple mortgage payment:
Pmt(Amount, Rate/12, Term*12)
Amount, Rate, Period being the 3 numerical entries with the 4th field, Payment, being calculated.
I get this error message even though the script seems to calculate correctly:
Script failed, (language is FormCalc; context is XFA[0],form[0],form1[0], #subform[0],Payment[0]
script=Pmt(Amount, Rate/12, Term*12)
Error: missing or illegal parameter(s).
TIA for any assistance!
JZach

Ok, are you sure there is a value in all 3 fields when it attempts to calculate the payment? If you have the script in a calculate event, the event will fire every time any field is filled out. So it's possible that it gets fired when there is a value in Amount, but nothing in Rate or Term.
If that's the case then you'd be better off either triggering the function through a button click, or putting some logic in your script to make sure that all three fields have values before calling Pmt.
I tried it here, and when all three fields have values it appears to work fine (when they don't I get that same error message).
Chris
Adobe Enterprise Developer Support

Similar Messages

  • Getting 'insertItemAt is not a function' Error Message

    I am using abode pro 8 and am getting a 'insertItemAt is not a function' error message using the following code. (This code below was written as an example to show the process I want - I want to clear a combo box, then add data to it.)
    The error message only appear in a one of my pdf's I currently use, otherwise it works as written. Because I want the data to appear listed from top to bottom within the combo box from 1 to 5, I insert 5 first. 5 gets inserted, but when the code tries to insert 4, it trippers the error message. Any thoughts - is there another way to insert data into a combo box?
    var i = 0;
    var ii = 5;
    var v = new Array();
    v[1] = 1;
    v[2] = 2;
    v[3] = 3;
    v[4] = 4;
    v[5] = 5;
    //Combo Box
    this.getField("Fund Company-Long-Name").clearItems();
    var a = this.getField("Fund Company-Long-Name");
    for (var i= ii;  i > 0; i--)
                 if(v[i] != undefined)
                             app.alert(i);      
                             a.insertItemAt(v[i], (i, ""));
    v[0] = " ";
    a.insertItemAt(v[0], (0, ""));
    this.getField("Fund Company-Long-Name").value = " ";  
    //================Gives this error message=============
    Acrobat Database Connectivity Built-in Functions Version 8.0
    Acrobat EScript Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 8.0
    Acrobat Multimedia Version 8.0
    Acrobat SOAP 8.0
    a.insertItemAt is not a function
    4:Field:Mouse Down

    Yes, I'm actually looking at those two methods now. New questions arise.
    If my combo Box is called "Fund Company-Long-Name", how could I add a varying number of items to it, using the "setItems" command?
    I can get it to work for a defined number of items, as below. But I don't know how to insert a variable to replace ["A", "B", "C"] below.
    /=======================================
    this.getField("Fund Company-Long-Name").clearItems();
    var a = this.getField("Fund Company-Long-Name");
    a.setItems(["A", "B", "C"]);

  • M30: incorrect function error message

    my m30x wont read a cd-r i have created on another comp. the error message D:\not accesable appears and says incorrect function. should i be worrying. or is it just a bad disc

    Hello,
    I had also these problems when I burn a CD in my Desktop and read in antoher PC it is not recognized!
    After collecting some informations in the net, I had this conclusion:
    The CD wrter are faster and faster and every fast written CD has some or more failures! This depends on the CD Writer!
    Also the CD manufacturer is a important thing! I tested different CD vendors and found some brands which make not so much failures!
    Sorry!
    TOK

  • Updates needed on article: Fix "The bookmarks and history system will not be functional" error message

    Came across the article, but found a solution that allowed me to keep everything without losing my places file.
    Removing places.sqlite-shm and places.sqlite-wal while firefox was not running allowed FF to start without a problem.

    Agreed, and fuser showed that the files weren't in use.
    Using sqlite from the command line to access places.sqlite when the files were there seemed to work till I did ".schema" and then I got an error that indicated corruption.
    Removing the files and then retrying ".schema" worked flawlessly.
    Telling users about this possible solution would help them recover their history, etc. that they may have spent a lot of time creating.

  • Error message saying a device attached to the system is not functioning

    i m getting an error message saying a device attached to the system is not functioning whenever i m trying to connect my pc to my smartphone. i tried all your options like uninstalling failed updates from my update history, checking if their is any flag
    in device manager option but nothing helped me.. plz solve my problem..

    Hi,
    Could you please have a share with your phone's information?
    Based on what I know, different phones may have different softwares developed by the manufacturer to make the connection through Windows operating system, we may check with the phone's manufacturer side and see if there could be some helpful information
    offered.
    Besides, please take a check with
    Event Viewer and see if any special errors logged there.
    Best regards
    Michael Shao
    TechNet Community Support

  • Error message while activating a function

    Hello guys
    I have just written a simple function and am trying to activate it.
    When I click on check button it says 'no syntax error'. However, when I click on activate button, I get the following error. Any feedback on this will be greatly appreciated.
    Error Message:
    =================================
    Function Module ZBAPI_XI
    The main program of the function "ZBAPI_XI" does not begin with
    "FUNCTION-POOL".
    =================================
    Thanks
    Ram

    Hi,
    Try this..
    GO to SE80..
    Give the function group..
    Then activate the main program..
    Thanks,
    Naren

  • New preview function for iPad–error message "Multiple page sizes not supported"

    When I try to use the new preview function with my iPad I get the error message "Multiple page sizes within a layout are not supported". I have a page that is 768 x  1296. I would really like to preview this folio before publishing. Any suggestions?

    If you're trying to create an article that scrolls vertically, you can create a 768x1296 article in a 1024x768 folio, but you need to select a Smooth Scrolling option when you create or import the article, or in the Article Properties dialog box.

  • Error message: The wireless radio is not functioning.

    I spent 2 hrs on HP support chat last night, trying to get an answer to whether this is a fixable problem, and finally was disconnected from chat.
    The printer is a Photosmart 7460 and it recognizes the network and I could get to its IP addres online. But it printed out its own error message saying that the radio "failed."
    Can anyone tell me if this is something I can fix or if I just need to trash the machine and start over?
    thanks in advance for your help!
    Elizabeth

    I have a C309a that all of a sudden stopped communicating
    The wireless radio is not functioning. Contact HP support
    Wireless on  PASS
    Wireless working  FAIL
    USB communication works
    Is there a reset or is the wireless trashed?

  • Strange error message when I tried to use the "collaborate" function under "File"

    Has anyone else met this before? : I am trying to share my project with my team members. Tried File -> Collaborate and then try three options under it. Non e of them works. It asks for your Adobe ID in order to sign in and upload. However, every time I typed in my Adobe ID and password, it gave me strange error messages. The first time it says: User has not verified email address yet. I have been using this Adobe ID since 2008 or 2009 and of course I have verified my email address. But to make sure, I went back to my email box and search for emails about Adobe ID verification but I didn't find any (I never delete emails such as this).
    Then I tried to register a new Adobe ID. This time when I tried to singn in with the new Adobe ID, it will either say "Network may not be available" (which is not true because I am able to surf on the Internet at the same time), or it says "User has not accepted user condition/agreement".
    I feel so frustrated because I feel this is definitely not my mistake which caused the failure of log in.
    Hope someone can tell me what the reason is and how to fix it though.
    Thanks a lot.

    Hi Lilybiri,
    Thanks for your quick response. I followed your suggestion and verified my Adobe ID on acrobat.com.
    Now I can enter the collaborate function. However, everytime when I tried to send it to myself (for test purpose) I got another error message "You need to enter a valid emaill address". I saw someone else on this forum has met the same problem. Do you have any suggestion on what is the possible reason for this to happen?
    Again, thanks for the fast response. You have been helping me and other ppl so much.

  • Since firefox upgraded to the latest version I have not been able to use it without it crashing and repeatedly giving me this error message"Exc in ev handl: TypeError: this.annotatePage is not a function' " What can I do about this?

    The box that the above message is contained in has heading [JavaScript Application] I am at my wit's end with this. Firefox won't even open now and I am also getting this error message "Exc in ev handl: Error: Bad NPObject as private data!" Also in a box with [JavaScript Application] as a heading.

    It appears McAfee Site Advisor is conflicting with several other Firefox Add-ons, causing this error message. McAfee Site Advisor has been causing problems in Firefox for some time. You can disable McAfee Site Advisor and test. Disabling Site Advisor should not affect the functioning of McAfee; you should still be protected. <u>See the information below about a built-in function in Firefox that is similar to the function of Site Advisor.</u>
    *https://community.mcafee.com/message/203211
    *https://support.mozilla.com/en-US/questions/858623
    *http://forums.informaction.com/viewtopic.php?f=7&t=7023
    Also see: https://addons.mozilla.org/en-US/firefox/blocked/i25
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Firefox has a built-in component to help keep you from entering '''''known''''' malware and phishing sites
    *'''''Safe Browsing''''': http://www.mozilla.com/en-US/firefox/phishing-protection/
    *'''''Sample''''' warning screens:
    **http://www.mozilla.com/firefox/its-a-trap.html
    **http://www.mozilla.com/firefox/its-an-attack.html

  • Error message in planning function

    Hi,
    I have implemented a plausibility check for values in a planning function:
    IF { Z6SLSPRIC } = 0 AND NOT {Z6SLSQTY}  IS INITIAL.
         MESSAGE E000(ZOP1) .
         MESSAGE E001(ZOP1).
         MESSAGE I003(ZOP1).
    ENDIF.
    With raising an error message the data will not be saved. Unfortunately the function sends the message '...ended with errors'. I think this is the cas because of raising an error message. How is it possible to raise an error message without getting the function standard message?
    Regards
    Andreas

    Hi,
    I think the syntax is correct. The function works and give the implemented messages without saving the data.
    After that I get the following message: "Planning function Z6OPF4 ( Z6OPF4 ) ended with errors".
    How is it possible to suppress such system messages?
    I think the function is working fine. The message mentioned above is the result of raising an error message in my code...
    Regards
    Andreas

  • Error message in compliing a function

    Hi All,
    I am trying to compiling the following function, but it is throwing the an error.
    CREATE OR REPLACE FUNCTION parapage_discosessions
    RETURN bumber
    IS
    discosessions number;
    BEGIN
    discosessions := select count(*) from gv$session where username IN ('DISCOFIELD', 'DISCOUSER','DISCOADMIN');
    RETURN discosessions;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    END;
    The above function is giving the following error message
    Error(9,21): PLS-00103: Encountered the symbol "SELECT" when expecting one of the following: ( - + case mod new not null <an identifier> <a double-quoted delimited-identifier> <a bind variable> avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date <a string literal with character set specification> <a number> <a single-quoted SQL string> pipe <an alternatively-quoted string literal with character set specification> <an alternatively-quo
    Please give me any suggestions

    SQL> CREATE OR REPLACE FUNCTION parapage_discosessions
      2  RETURN number IS
      3  discosessions number;
      4  BEGIN
      5  select count(*) into discosessions
      6  from gv$session
      7  where username IN ('DISCOFIELD', 'DISCOUSER','DISCOADMIN');
      8  RETURN discosessions;
      9  EXCEPTION
    10  WHEN OTHERS THEN
    11  raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    12  END;
    13  /
    Function created

  • How to display error message in case of function module ?

    In the report i was using  " message-id "   to display error message....
    how to use in function module ?

    Hi,
    Messages in Function Modules and Methods
    Messages have two different functions in function modules and methods:
    Normal Messages
    If you use messages in function modules and methods without the RAISING addition in the MESSAGE statement, and the caller does not catch the message, the message is handled
    normally according to the context in which it is called within the function module or method.
    Triggering Exceptions with Messages
    If you use messages in function modules and methods with the addition
    ... RAISING <exc>
    the way in which the message is handled depends on whether the calling program handles the exception <exc> or not.
      If the calling program does not handle the exception, the message is displayed and handled according to the context in which it occurs in the function module or method from which it
    was called.
      If the calling program handles the exception, the message is not displayed. Instead, the procedure is interrupted in accordance with the message type, and processing returns to the calling program. The contents of the message are placed in the system fields SY-MSGID, SY-MSGTY, SY-MSGNO, and SY-MSGV1 to SY-MSGV4.
    Catching Message in the Calling Program
    You can catch messages from function modules that are not sent using the RAISING addition in the MESSAGE statement by including the implicit exception ERROR_MESSAGE in the
    EXCEPTIONS list of the CALL FUNCTION statement. The following conditions apply:
      Type S, I, and W messages are ignored (but logged during background processing)
      Type E and A messages trigger the exception ERROR_MESSAGE
      Type X messages trigger the usual runtime error and short dump.
    Catching messages is not currently supported for methods.
    Regards,
    Bhaskar

  • Display error message in forms from function "verify_function"

    Hi,
    We have a number of users with our own created profile attached to them.
    We have enabled the 'PASSWORD_VERIFY_FUNCTION' for our own profile.
    Function "verify_function" is used to validate a user's password.
    In "verify_function" we have used "raise_application_error" message in case password validation fails.
    Example:
    raise_application_error(-20001,'Password must be minimum 8 characters in length and maximum 30 characters long');Question) "raise_application_error" displays the error message only in SQL Plus prompt. How do I display the same message from Oracle forms?.
    I have used DBMS_ERROR_TEXT & DBMS_ERROR_CODE in ON-ERROR trigger. This is not displaying the error message in forms in case validation failed in "verify_function". Oracle simply clears the username/password field with a new window. We want to display the error message that occured in "verify_function".
    Thanks

    use the following code in validating the item, e.g when-button-pressed
    begin
    verify_function;
    exception
    when others then
    message(sqlerrm);
    raise form_trigger_failure;
    end ;
    OR
    instead of writing a procedure rewrite it as a function to return 1 if password is correct or 0 if password is wrong
    Regards
    Jihad

  • Can no longer print from Photoshop CS^ have upgraded drivers error message reads There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents."

    I have upgraded my iMac to Yosemite but now my two Canon Printers no longer print from Photoshop CS6. I have upgraded the drivers. All other applications including Lightroom are fine. I am receiving an error message as follows:"There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents." How can I get the OS to return a list of printers to Photoshop when Photoshop requests a list.

    Have you printed to this printer from 10.10 before?  If so, check your connections.

Maybe you are looking for

  • Decreased Battery Performance when using SL. Apple states I am alone..

    This thread is mainly aimed at people that are using a mid 2009 unibody MacBook Pro 13" or upwards that came pre-installed with Leopard. Since upgrading to Snow leopard have you noticed a significant decrease in how long the battery lasts while using

  • A simple way in sending message on a large number of contacts?

    Is there a simple way in sending a large number of contacts? I mean, i'll send my message on a group, i.e. "hello" to "classmates" group. I know it is present during ios4 & 5 version? Why now on ios7? How's that? Some of my contacts are changing new

  • Error when Connect to Access 2007 with password using OLEDB

    Hi there, I am seeing the below error when trying to Connect to Access 2007 with password using Crystal XI or Crystal 2008, when using the OLEDB to connection Access data. Logon failed Details: DAO Error Code: 0xd0f Source: DAO.Workspace Description:

  • How do you 'save as' in FCPX?

    I'm willing to give FCPX a shot here but there needs to be basic functions in order to streamline my workflow. In FCP I would save several different videos from the same master video to show clients different senarios. I would make a tweak and use th

  • Need help regarding the maximum limit for data type

    Hi, this is Sravan. for my application am inserting the bulk data in XML format into a column of Database table. the sample inserted XML data will be in format... like '<ACC count = "10"> <Acc ac_no = "1111111111" cn_nr = "US" eflag = "Y" /> <Acc ac_