Get_ErrorDescriptionEN

Version 2

     

    Custom Function

     

    Compatibility
    Creator
    Mac OS X, Windows
    Egbert A. Friedrich
    FMP 10, 11
    herrfriedrich.com
    Web: No
    File Type: None
    Server: No
    FileSize: 0 kilobytes
    http://www.herrfriedrich.com

    Description

    Calculates the meaning of an error code. This can be displayed in a dialog box (see description).

     


    Code

    /*

    Full syntax:Get_ErrorDescriptionEN ( errorCode; displayPosition )

     

    Purpose:Returns the english text string for an error code and displays it in a dialog box title or text.

     

    Parameters:errorCode= the number of an error given by filemaker

    displayPosition= the place where a message should appear (i.e. the dialog box title or dialog box text)

     

    Example:For dialog box text = "Error " & Get ( LastError ) & " ( " & Get_ErrorDescriptionEN ( Get ( LastError ); text ) & " ) occured!"

    For dialog title text = Get_ErrorDescriptionEN ( Get ( LastError ); title )

     

    Notes:This is valid for FileMaker 10! The codes and description are based on the FileMaker Pro/Advanced help itself.

    There are some differences between them and the codes and description in the Knowledge base.

    If you have any additions, please send it to me via my website.

     

    Autor:Egbert A. Friedrich, herrfriedrich.com

    Sources:Code and meaning © FileMaker, Inc

    ============================================*/

     

    Let ( [

    titletext= "!!! Attention !!!";

    errordescription =

    Case (

    errorcode = "-1"; "Unknown error";

    errorcode = "0"; "No error";

    errorcode = "1"; "User canceled action";

    errorcode = "2"; "Memory error";

    errorcode = "3"; "Command is unavailable (for example, wrong operating system, wrong mode, etc.)";

    errorcode = "4"; "Command is unknown";

    errorcode = "5"; "Command is invalid (for example, a Set Field script step does not have a calculation specified)";

    errorcode = "6"; "File is read-only";

    errorcode = "7"; "Running out of memory";

    errorcode = "8"; "Empty result";

    errorcode = "9"; "Insufficient privileges";

    errorcode = "10"; "Requested data is missing";

    errorcode = "11"; "Name is not valid";

    errorcode = "12"; "Name already exists";

    errorcode = "13"; "File or object is in use";

    errorcode = "14"; "Out of range";

    errorcode = "15"; "Can't divide by zero";

    errorcode = "16"; "Operation failed, request retry (for example, a user query)";

    errorcode = "17"; "Attempt to convert foreign character set to UTF-16 failed";

    errorcode = "18"; "Client must provide account information to proceed";

    errorcode = "19"; "String contains characters other than A-Z, a-z, 0-9 (ASCII)";

    errorcode = "20"; "Command/operation canceled by triggered script";

    errorcode = "100"; "File is missing";

    errorcode = "101"; "Record is missing";

    errorcode = "102"; "Field is missing";

    errorcode = "103"; "Relationship is missing";

    errorcode = "104"; "Script is missing";

    errorcode = "105"; "Layout is missing";

    errorcode = "106"; "Table is missing";

    errorcode = "107"; "Index is missing";

    errorcode = "108"; "Value list is missing";

    errorcode = "109"; "Privilege set is missing";

    errorcode = "110"; "Related tables are missing";

    errorcode = "111"; "Field repetition is invalid";

    errorcode = "112"; "Window is missing";

    errorcode = "113"; "Function is missing";

    errorcode = "114"; "File reference is missing";

    errorcode = "115"; "Specified menu set is not present";

    errorcode = "116"; "Specified layout object is not present";

    errorcode = "117"; "Specified data source is not present";

    errorcode = "130"; "Files are damaged or missing and must be reinstalled";

    errorcode = "131"; "Language pack files are missing (such as template files)";

    errorcode = "200"; "Record access is denied";

    errorcode = "201"; "Field cannot be modified";

    errorcode = "202"; "Field access is denied";

    errorcode = "203"; "No records in file to print, or password doesn't allow print access";

    errorcode = "204"; "No access to field(s) in sort order";

    errorcode = "205"; "User does not have access privileges to create new records; import will overwrite existing data";

    errorcode = "206"; "User does not have password change privileges, or file is not modifiable";

    errorcode = "207"; "User does not have sufficient privileges to change database schema, or file is not modifiable";

    errorcode = "208"; "Password does not contain enough characters";

    errorcode = "209"; "New password must be different from existing one";

    errorcode = "210"; "User account is inactive";

    errorcode = "211"; "Password has expired";

    errorcode = "212"; "Invalid user account and/or password; please try again";

    errorcode = "213"; "User account and/or password does not exist";

    errorcode = "214"; "Too many login attempts";

    errorcode = "215"; "Administrator privileges cannot be duplicated";

    errorcode = "216"; "Guest account cannot be duplicated";

    errorcode = "217"; "User does not have sufficient privileges to modify administrator account";

    errorcode = "300"; "File is locked or in use";

    errorcode = "301"; "Record is in use by another user";

    errorcode = "302"; "Table is in use by another user";

    errorcode = "303"; "Database schema is in use by another user";

    errorcode = "304"; "Layout is in use by another user";

    errorcode = "306"; "Record modification ID does not match";

    errorcode = "400"; "Find criteria are empty";

    errorcode = "401"; "No records match the request";

    errorcode = "402"; "Selected field is not a match field for a lookup";

    errorcode = "403"; "Exceeding maximum record limit for trial version of FileMaker Pro";

    errorcode = "404"; "Sort order is invalid";

    errorcode = "405"; "Number of records specified exceeds number of records that can be omitted";

    errorcode = "406"; "Replace/Reserialize criteria are invalid";

    errorcode = "407"; "One or both match fields are missing (invalid relationship)";

    errorcode = "408"; "Specified field has inappropriate data type for this operation";

    errorcode = "409"; "Import order is invalid";

    errorcode = "410"; "Export order is invalid";

    errorcode = "412"; "Wrong version of FileMaker Pro used to recover file";

    errorcode = "413"; "Specified field has inappropriate field type";

    errorcode = "414"; "Layout cannot display the result";

    errorcode = "415"; "One or more required related records are not available";

    errorcode = "416"; "Primary key required from data source table";

    errorcode = "417"; "Database is not supported for ODBC operations";

    errorcode = "500"; "Date value does not meet validation entry options";

    errorcode = "501"; "Time value does not meet validation entry options";

    errorcode = "502"; "Number value does not meet validation entry options";

    errorcode = "503"; "Value in field is not within the range specified in validation entry options";

    errorcode = "504"; "Value in field is not unique as required in validation entry options";

    errorcode = "505"; "Value in field is not an existing value in the database file as required in validation entry options";

    errorcode = "506"; "Value in field is not listed on the value list specified in validation entry option";

    errorcode = "507"; "Value in field failed calculation test of validation entry option";

    errorcode = "508"; "Invalid value entered in Find mode";

    errorcode = "509"; "Field requires a valid value";

    errorcode = "510"; "Related value is empty or unavailable";

    errorcode = "511"; "Value in field exceeds maximum number of allowed characters";

    errorcode = "512"; "Record was already modified by another user";

    errorcode = "513"; "Record must have a value in some field to be created";

    errorcode = "600"; "Print error has occurred";

    errorcode = "601"; "Combined header and footer exceed one page";

    errorcode = "602"; "Body doesn't fit on a page for current column setup";

    errorcode = "603"; "Print connection lost";

    errorcode = "700"; "File is of the wrong file type for import";

    errorcode = "706"; "EPSF file has no preview image";

    errorcode = "707"; "Graphic translator cannot be found";

    errorcode = "708"; "Can't import the file or need color monitor support to import file";

    errorcode = "709"; "QuickTime movie import failed";

    errorcode = "710"; "Unable to update QuickTime reference because the database file is read-only";

    errorcode = "711"; "Import translator cannot be found";

    errorcode = "714"; "Password privileges do not allow the operation";

    errorcode = "715"; "Specified Excel worksheet or named range is missing";

    errorcode = "716"; "A SQL query using DELETE, INSERT, or UPDATE is not allowed for ODBC import";

    errorcode = "717"; "There is not enough XML/XSL information to proceed with the import or export";

    errorcode = "718"; "Error in parsing XML file (from Xerces)";

    errorcode = "719"; "Error in transforming XML using XSL (from Xalan)";

    errorcode = "720"; "Error when exporting; intended format does not support repeating fields";

    errorcode = "721"; "Unknown error occurred in the parser or the transformer";

    errorcode = "722"; "Cannot import data into a file that has no fields";

    errorcode = "723"; "You do not have permission to add records to or modify records in the target table";

    errorcode = "724"; "You do not have permission to add records to the target table";

    errorcode = "725"; "You do not have permission to modify records in the target table";

    errorcode = "726"; "There are more records in the import file than in the target table; not all records were imported";

    errorcode = "727"; "There are more records in the target table than in the import file; not all records were updated";

    errorcode = "729"; "Errors occurred during import; records could not be imported";

    errorcode = "730"; "Unsupported Excel version (convert file to Excel 7.0 (Excel 95), 97, 2000, XP, or 2007 format and try again)";

    errorcode = "731"; "The file you are importing from contains no data";

    errorcode = "732"; "This file cannot be inserted because it contains other files";

    errorcode = "733"; "A table cannot be imported into itself";

    errorcode = "734"; "This file type cannot be displayed as a picture";

    errorcode = "735"; "This file type cannot be displayed as a picture; it will be inserted and displayed as a file";

    errorcode = "736"; "Too much data to export to this format; it will be truncated";

    errorcode = "737"; "Bento collection or library is missing; data cannot be imported";

    errorcode = "800"; "Unable to create file on disk";

    errorcode = "801"; "Unable to create temporary file on System disk";

    errorcode = "802"; "Unable to open file";

    errorcode = "803"; "File is single user or host cannot be found";

    errorcode = "804"; "File cannot be opened as read-only in its current state";

    errorcode = "805"; "File is damaged; use Recover command";

    errorcode = "806"; "File cannot be opened with this version of FileMaker Pro";

    errorcode = "807"; "File is not a FileMaker Pro file or is severely damaged";

    errorcode = "808"; "Cannot open file because access privileges are damaged";

    errorcode = "809"; "Disk/volume is full";

    errorcode = "810"; "Disk/volume is locked";

    errorcode = "811"; "Temporary file cannot be opened as FileMaker Pro file";

    errorcode = "813"; "Record Synchronization error on network";

    errorcode = "814"; "File(s) cannot be opened because maximum number is open";

    errorcode = "815"; "Couldn't open lookup file";

    errorcode = "816"; "Unable to convert file";

    errorcode = "817"; "Unable to open file because it does not belong to this solution";

    errorcode = "819"; "Cannot save a local copy of a remote file";

    errorcode = "820"; "File is in the process of being closed";

    errorcode = "821"; "Host forced a disconnect";

    errorcode = "822"; "FMI files not found; reinstall missing files";

    errorcode = "823"; "Cannot set file to single-user, guests are connected";

    errorcode = "824"; "File is damaged or not a FileMaker file";

    errorcode = "900"; "General spelling engine error";

    errorcode = "901"; "Main spelling dictionary not installed";

    errorcode = "902"; "Could not launch the Help system";

    errorcode = "903"; "Command cannot be used in a shared file";

    errorcode = "905"; "No active field selected; command can only be used if there is an active field";

    errorcode = "906"; "Current file must be shared in order to use this command";

    errorcode = "920"; "Can’t initialize the spelling engine";

    errorcode = "921"; "User dictionary cannot be loaded for editing";

    errorcode = "922"; "User dictionary cannot be found";

    errorcode = "923"; "User dictionary is read-only";

    errorcode = "951"; "An unexpected error occurred (*)";

    errorcode = "954"; "Unsupported XML grammar (*)";

    errorcode = "955"; "No database name (*)";

    errorcode = "956"; "Maximum number of database sessions exceeded (*)";

    errorcode = "957"; "Conflicting commands (*)";

    errorcode = "958"; "Parameter missing (*)";

    errorcode = "1200"; "Generic calculation error";

    errorcode = "1201"; "Too few parameters in the function";

    errorcode = "1202"; "Too many parameters in the function";

    errorcode = "1203"; "Unexpected end of calculation";

    errorcode = "1204"; "Number, text constant, field name or \“(\“ expected";

    errorcode = "1205"; "Comment is not terminated with asterisk and slash";

    errorcode = "1206"; "Text constant must end with a quotation mark";

    errorcode = "1207"; "Unbalanced parenthesis";

    errorcode = "1208"; "Operator missing, function not found or \“(\“ not expected";

    errorcode = "1209"; "Name (such as field name or layout name) is missing";

    errorcode = "1210"; "Plug-in function has already been registered";

    errorcode = "1211"; "List usage is not allowed in this function";

    errorcode = "1212"; "An operator (for example, +, -, *) is expected here";

    errorcode = "1213"; "This variable has already been defined in the Let function";

    errorcode = "1214"; "AVERAGE, COUNT, EXTEND, GETREPETITION, MAX, MIN, NPV, STDEV, SUM and GETSUMMARY: expression found where a field alone is needed";

    errorcode = "1215"; "This parameter is an invalid Get function parameter";

    errorcode = "1216"; "Only Summary fields allowed as first argument in GETSUMMARY";

    errorcode = "1217"; "Break field is invalid";

    errorcode = "1218"; "Cannot evaluate the number";

    errorcode = "1219"; "A field cannot be used in its own formula";

    errorcode = "1220"; "Field type must be normal or calculated";

    errorcode = "1221"; "Data type must be number, date, time, or timestamp";

    errorcode = "1222"; "Calculation cannot be stored";

    errorcode = "1223"; "The function is not implemented";

    errorcode = "1224"; "The function is not defined";

    errorcode = "1225"; "The function is not supported in this context";

    errorcode = "1300"; "The specified name can’t be used";

    errorcode = "1400"; "ODBC driver initialization failed; make sure the ODBC drivers are properly installed";

    errorcode = "1401"; "Failed to allocate environment (ODBC)";

    errorcode = "1402"; "Failed to free environment (ODBC)";

    errorcode = "1403"; "Failed to disconnect (ODBC)";

    errorcode = "1404"; "Failed to allocate connection (ODBC)";

    errorcode = "1405"; "Failed to free connection (ODBC)";

    errorcode = "1406"; "Failed check for SQL API (ODBC)";

    errorcode = "1407"; "Failed to allocate statement (ODBC)";

    errorcode = "1408"; "Extended error (ODBC)";

    errorcode = "1409"; "Error (ODBC)";

    errorcode = "1413"; "Failed communication link (ODBC)";

    errorcode = "1450"; "Action requires PHP privilege extension (*)";

    errorcode = "1451"; "Action requires that current file be remote";

    errorcode = "1501"; "SMTP authentication failed";

    errorcode = "1502"; "Connection refused by SMTP server";

    errorcode = "1503"; "Error with SSL";

    errorcode = "1504"; "SMTP server requires the connection to be encrypted";

    errorcode = "1505"; "Specified authentication is not supported by SMTP server";

    errorcode = "1506"; "Email(s) could not be sent successfully";

    errorcode = "1507"; "Unable to log in to the SMTP server";

    )

    ];

     

    Case (

    displayPosition= "title"; titletext;

    displayPosition= "text"; errordescription

    )

     

    )

     

    Sample Input

    Sample Output


    Developer's Notes

    You can copy & paste the above text into a custom function and it will be well formatted ;-) You can change the “titletext” to whatever you like.

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.