FM.ErrorMessage
---------------

Queries an error message for a FileMaker error.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FM](component_FM.md) | [11.3](newinversion113.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "FM.ErrorMessage"; ErrorCode ) 

**MBS**( **"FM.ErrorMessage";** /\* Queries an error message for a FileMaker error. \*/  
**$ErrorCode**) /\* The error code from FileMaker, e.g. Evaluate()e.g. 102 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ErrorCode | The error code from FileMaker, e.g. Evaluate() | 102 |

### Result

Returns error message.

### Description

Queries an error message for a FileMaker error.  
Our plugin uses an internal table to get meaningful text messages for an error code.  
Returns empty text for unknown errors.  
  
Error code zero usually means okay.  
  
The MBS Plugin has a list of over 260 error messages hard coded. But since newer FileMaker versions introduce new errors, you can add newer ones yourself using [FM.AddErrorMessage](FMAddErrorMessage.md) function.  
### See also

- [CURL.ErrorMessage](CURLErrorMessage.md)
- [FM.AddErrorMessage](FMAddErrorMessage.md)

### Release notes

- **Version 15.5**
    - Added newer error codes for FileMaker 2025 to the [FM.ErrorMessage](https://www.mbsplugins.eu/FMErrorMessage.shtml) function.
- **Version 11.3**
    - Added [FM.ErrorMessage](https://www.mbsplugins.eu/FMErrorMessage.shtml) function.

### Example Databases

- [Utility functions/FileMaker Custom Functions via Dictionary](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/FileMaker%20Custom%20Functions%20via%20Dictionary.shtml#9ScriptAnchor_)
- [Utility functions/FileMaker Custom Functions](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/FileMaker%20Custom%20Functions.shtml#9ScriptAnchor_)

### Blog Entries

- [New in MBS FileMaker Plugin 15.5](https://www.mbsplugins.de/archive/2025-11-25/New_in_MBS_FileMaker_Plugin_15/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.5pr6](https://www.mbsplugins.de/archive/2025-11-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.3](https://www.mbsplugins.de/archive/2021-07-12/Neues_MBS_FileMaker_Plugin_113/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.3 - More than 6500 Functions In One Plugin](https://www.mbsplugins.de/archive/2021-07-12/MBS_FileMaker_Plugin_113_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.3pr3](https://www.mbsplugins.de/archive/2021-06-14/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 12nd June 2021 , last changed 29th October 2025

  
[FM.EnableMouseWheel](FMEnableMouseWheel.md) - [FM.Evaluate](FMEvaluate.md)

[HTML Version](FMErrorMessage.shtml)