<!--
{
  "availability" : [
    "Retention Messaging API: 1.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RetentionMessaging",
  "identifier" : "/documentation/RetentionMessaging/BadRequestInvalidTextFieldError",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Retention Messaging API"
    ],
    "preciseIdentifier" : "data:retention_messaging:BadRequestInvalidTextFieldError"
  },
  "title" : "BadRequestInvalidTextFieldError"
}
-->

# BadRequestInvalidTextFieldError

An error that indicates a text field in the request is invalid.

```
object BadRequestInvalidTextFieldError
```

## Overview

This error occurs when a text field in the [`UploadMessageRequestBody`](/documentation/RetentionMessaging/UploadMessageRequestBody) contains characters the system doesn’t allow, such as emoji. Each text field, including [`header`](/documentation/RetentionMessaging/header), [`body`](/documentation/RetentionMessaging/body), [`altText`](/documentation/RetentionMessaging/altText), and [`bulletPointText`](/documentation/RetentionMessaging/bulletPointText), needs to be a valid UTF-8-encoded string that contains only allowed Unicode characters. To resolve this error, remove any disallowed characters from the text fields and upload the message again.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)