From 7d745d33d479f4975aadf10ab02e68e8378af320 Mon Sep 17 00:00:00 2001 From: ianf-mongodb <85948430+ianf-mongodb@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:49:19 -0500 Subject: [PATCH] * --- source/includes/fact-non-utf8-data.rst | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/source/includes/fact-non-utf8-data.rst b/source/includes/fact-non-utf8-data.rst index e97ab6313..5133cb356 100644 --- a/source/includes/fact-non-utf8-data.rst +++ b/source/includes/fact-non-utf8-data.rst @@ -3,16 +3,24 @@ the collection have invalid UTF8 characters. - If you query this data, the following error message displays: -.. warning:: + .. warning:: Invalid UTF-8 string in BSON document. - If you attempt to export the collection, the error message: .. warning:: - - An error occurred while loading instance info: Invalid UTF-8 - string in BSON document. + + .. code-block:: none + + An error occurred while loading instance info: Invalid UTF-8 + string in BSON document. + +.. error:: 10167 + + :message: "can't move shard to its current location!" + :throws: UserException + :module: :source:`src/mongo/s/chunk.cpp#L305` You can disable UTF8 validation by setting the ``enableUtf8Validation`` URI option to ``false``.