You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "Manage invalid characters | Microsoft Docs"
3
+
description: Describes how to manage invalid characters.
4
+
5
+
ms.date: 08/09/2021
6
+
ms.reviewer: "pehecke"
7
+
ms.service: powerapps
8
+
ms.topic: "article"
9
+
author: "JimDaly"
10
+
ms.subservice: dataverse-developer
11
+
ms.author: "pehecke"
12
+
manager: "kvivek"
13
+
search.audienceType:
14
+
- developer
15
+
search.app:
16
+
- PowerApps
17
+
- D365CE
18
+
---
19
+
20
+
# Manage invalid characters
21
+
22
+
There are a set of characters that cannot be saved in string or memo columns. When an application saves data containing these characters to Dataverse, the following error will occur:
23
+
24
+
Name: `InvalidCharactersInField`<br />
25
+
Hexadecimal error code : `80040278`<br />
26
+
Error Number: `-2147220872`<br />
27
+
Description: `The field '{0}' contains one or more invalid characters.`<br />
28
+
29
+
Dataverse uses the [System.Xml.XmlConvert.VerifyXmlChars(String) Method](/dotnet/api/system.xml.xmlconvert.verifyxmlchars) for every string value passed to these columns. This error is thrown on the first invalid character encountered.
30
+
31
+
You may encounter these characters in email content that includes replies or when text is copied from another source which may have characters to control presentation.
32
+
33
+
To prevent this error you can:
34
+
35
+
- HTML encode the content before saving.
36
+
37
+
- Remove the individual invalid characters, use the [System.Xml.XmlConvert.IsXmlChar(Char) Method](/dotnet/api/system.xml.xmlconvert.isxmlchar) as shown in the following example:
0 commit comments