---
title: BadRequestInvalidTextFieldError
framework: Retention Messaging API
role: symbol
role_heading: Object
platforms: [retention messaging api 1.5+]
path: retentionmessaging/badrequestinvalidtextfielderror
---

# BadRequestInvalidTextFieldError

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

## Declaration

```data
object BadRequestInvalidTextFieldError
```

## Properties

errorCode: errorMessage:

## Mentioned in

Retention Messaging API changelog

## Overview

Overview This error occurs when a text field in the UploadMessageRequestBody contains characters the system doesn’t allow, such as emoji. Each text field, including header, body, altText, and 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.

## See Also

### Errors for bad requests

- [BadRequestAboveImageRequiresAnImageError](retentionmessaging/badrequestaboveimagerequiresanimageerror.md)
- [BadRequestAppTransactionIdForUnsupportedEndpointError](retentionmessaging/badrequestapptransactionidforunsupportedendpointerror.md)
- [BadRequestBulletPointTextTooLongError](retentionmessaging/badrequestbulletpointtexttoolongerror.md)
- [BadRequestImageSizeError](retentionmessaging/badrequestimagesizeerror.md)
- [BadRequestRealtimeUrlError](retentionmessaging/badrequestrealtimeurlerror.md)
- [BadRequestTooManyBulletPointsError](retentionmessaging/badrequesttoomanybulletpointserror.md)
- [BadRequestTransactionIdError](retentionmessaging/badrequesttransactioniderror.md)
- [BadRequestTransactionIdNotOtidError](retentionmessaging/badrequesttransactionidnototiderror.md)
- [BadRequestTransactionIdNotSupportedForFamilySharingError](retentionmessaging/badrequesttransactionidnotsupportedforfamilysharingerror.md)
