104: Cannot store Dictionary in data store. Data stores can only accept valid UTF-8 characters

Hello!
I know what the UTF means but I don’t know why it is happening? The only thing that would’ve gone wrong is converting the CFrames into tables. Please Help!

What I am trying to store:

 {
                    ["Borders"] =  ▼  {
                       ["BorderChunk 1010"] = BorderChunks2,
                       ["BorderChunk 11"] = BorderChunks6,
                       ["BorderChunk 110"] = BorderChunks5,
                       ["BorderChunk 1110"] = BorderChunks4,
                       ["BorderChunk 12"] = BorderChunks5,
                       ["BorderChunk 1210"] = BorderChunks4,
                       ["BorderChunk 13"] = BorderChunks3,
                       ["BorderChunk 1310"] = BorderChunks5,
                       ["BorderChunk 14"] = BorderChunks6,
                       ["BorderChunk 1410"] = BorderChunks1,
                       ["BorderChunk 15"] = BorderChunks4,
                       ["BorderChunk 1510"] = BorderChunks1,
                       ["BorderChunk 16"] = BorderChunks5,
                       ["BorderChunk 1610"] = BorderChunks3,
                       ["BorderChunk 17"] = BorderChunks5,
                       ["BorderChunk 1710"] = BorderChunks4,
                       ["BorderChunk 18"] = BorderChunks6,
                       ["BorderChunk 1810"] = BorderChunks6,
                       ["BorderChunk 19"] = BorderChunks5,
                       ["BorderChunk 1910"] = BorderChunks2,
                       ["BorderChunk 2010"] = BorderChunks5,
                       ["BorderChunk 210"] = BorderChunks6,
                       ["BorderChunk 2110"] = BorderChunks2,
                       ["BorderChunk 2210"] = BorderChunks6,
                       ["BorderChunk 2310"] = BorderChunks1,
                       ["BorderChunk 2410"] = BorderChunks2,
                       ["BorderChunk 2510"] = BorderChunks2,
                       ["BorderChunk 2610"] = BorderChunks2,
                       ["BorderChunk 2710"] = BorderChunks2,
                       ["BorderChunk 2810"] = BorderChunks4,
                       ["BorderChunk 2910"] = BorderChunks3,
                       ["BorderChunk 3010"] = BorderChunks4,
                       ["BorderChunk 310"] = BorderChunks4,
                       ["BorderChunk 3110"] = BorderChunks1,
                       ["BorderChunk 3210"] = BorderChunks1,
                       ["BorderChunk 3310"] = BorderChunks2,
                       ["BorderChunk 3410"] = BorderChunks2,
                       ["BorderChunk 3510"] = BorderChunks6,
                       ["BorderChunk 3610"] = BorderChunks3,
                       ["BorderChunk 3710"] = BorderChunks2,
                       ["BorderChunk 3810"] = BorderChunks6,
                       ["BorderChunk 3910"] = BorderChunks3,
                       ["BorderChunk 4010"] = BorderChunks6,
                       ["BorderChunk 410"] = BorderChunks1,
                       ["BorderChunk 4110"] = BorderChunks6,
                       ["BorderChunk 4210"] = BorderChunks5,
                       ["BorderChunk 4310"] = BorderChunks5,
                       ["BorderChunk 4410"] = BorderChunks4,
                       ["BorderChunk 4510"] = BorderChunks4,
                       ["BorderChunk 4610"] = BorderChunks6,
                       ["BorderChunk 4710"] = BorderChunks2,
                       ["BorderChunk 4810"] = BorderChunks5,
                       ["BorderChunk 4910"] = BorderChunks2,
                       ["BorderChunk 501"] = BorderChunks5,
                       ["BorderChunk 5010"] = BorderChunks3,
                       ["BorderChunk 502"] = BorderChunks6,
                       ["BorderChunk 503"] = BorderChunks3,
                       ["BorderChunk 504"] = BorderChunks3,
                       ["BorderChunk 505"] = BorderChunks2,
                       ["BorderChunk 506"] = BorderChunks1,
                       ["BorderChunk 507"] = BorderChunks2,
                       ["BorderChunk 508"] = BorderChunks4,
                       ["BorderChunk 509"] = BorderChunks4,
                       ["BorderChunk 510"] = BorderChunks1,
                       ["BorderChunk 610"] = BorderChunks3,
                       ["BorderChunk 710"] = BorderChunks4,
                       ["BorderChunk 810"] = BorderChunks3,
                       ["BorderChunk 910"] = BorderChunks4
                    },
                    ["Rocks"] =  ▼  {
                       ["Chunk 1034"] =  ▼  {
                          [1] = 50,
                          [2] = 2.5,
                          [3] = 170,
                          [4] = -1,
                          [5] = 0,
                          [6] = 0,
                          [7] = -0,
                          [8] = -1,
                          [9] = 0,
                          [10] = 0,
                          [11] = 0,
                          [12] = 1
                       },
                       ["Chunk 1040"] =  ▶ {...},
                       ["Chunk 1133"] =  ▶ {...},
                       ["Chunk 1143"] =  ▶ {...},
                       ["Chunk 1232"] =  ▶ {...},
                       ["Chunk 1310"] =  ▶ {...},
                       ["Chunk 1312"] =  ▶ {...},
                       ["Chunk 1431"] =  ▶ {...},
                       ["Chunk 146"] =  ▶ {...},
                       ["Chunk 1538"] =  ▶ {...},
                       ["Chunk 1539"] =  ▶ {...},
                       ["Chunk 1540"] =  ▶ {...},
                       ["Chunk 1546"] =  ▶ {...},
                       ["Chunk 1710"] =  ▶ {...},
                       ["Chunk 1834"] =  ▶ {...},
                       ["Chunk 187"] =  ▶ {...},
                       ["Chunk 1912"] =  ▶ {...},
                       ["Chunk 1933"] =  ▶ {...},
                       ["Chunk 203"] =  ▶ {...},
                       ["Chunk 2137"] =  ▶ {...},
                       ["Chunk 216"] =  ▶ {...},
                       ["Chunk 233"] =  ▶ {...},
                       ["Chunk 235"] =  ▶ {...},
                       ["Chunk 239"] =  ▶ {...},
                       ["Chunk 240"] =  ▶ {...},
                       ["Chunk 267"] =  ▶ {...},
                       ["Chunk 2717"] =  ▶ {...},
                       ["Chunk 2719"] =  ▶ {...},
                       ["Chunk 2812"] =  ▶ {...},
                       ["Chunk 2823"] =  ▶ {...},
                       ["Chunk 2837"] =  ▶ {...},
                       ["Chunk 2918"] =  ▶ {...},
                       ["Chunk 3131"] =  ▶ {...},
                       ["Chunk 3132"] =  ▶ {...},
                       ["Chunk 3212"] =  ▶ {...},
                       ["Chunk 3223"] =  ▶ {...},
                       ["Chunk 3237"] =  ▶ {...},
                       ["Chunk 324"] =  ▶ {...},
                       ["Chunk 327"] =  ▶ {...},
                       ["Chunk 3320"] =  ▶ {...},
                       ["Chunk 3416"] =  ▶ {...},
                       ["Chunk 3417"] =  ▶ {...},
                       ["Chunk 3442"] =  ▶ {...},
                       ["Chunk 3443"] =  ▶ {...},
                       ["Chunk 3518"] =  ▶ {...},
                       ["Chunk 3531"] =  ▶ {...},
                       ["Chunk 357"] =  ▶ {...},
                       ["Chunk 3625"] =  ▶ {...},
                       ["Chunk 3637"] =  ▶ {...},
                       ["Chunk 3722"] =  ▶ {...},
                       ["Chunk 3818"] =  ▶ {...},
                       ["Chunk 388"] =  ▶ {...},
                       ["Chunk 3929"] =  ▶ {...},
                       ["Chunk 4138"] =  ▶ {...},
                       ["Chunk 429"] =  ▶ {...},
                       ["Chunk 4410"] =  ▶ {...},
                       ["Chunk 442"] =  ▶ {...},
                       ["Chunk 455"] =  ▶ {...},
                       ["Chunk 4650"] =  ▶ {...},
                       ["Chunk 4834"] =  ▶ {...},
                       ["Chunk 4837"] =  ▶ {...},
                       ["Chunk 486"] =  ▶ {...},
                       ["Chunk 4932"] =  ▶ {...},
                       ["Chunk 834"] =  ▶ {...},
                       ["Chunk 841"] =  ▶ {...},
                       ["Chunk 850"] =  ▶ {...},
                       ["Chunk 946"] =  ▶ {...},
                       ["Chunk 948"] =  ▶ {...}
                    },
                    ["Trees"] =  ▼  {
                       ["Chunk 1039"] =  ▼  {
                          [1] = 50,
                          [2] = 2.5,
                          [3] = 195,
                          [4] = 1,
                          [5] = 0,
                          [6] = 0,
                          [7] = 0,
                          [8] = 1,
                          [9] = 0,
                          [10] = 0,
                          [11] = 0,
                          [12] = 1
                       },
                       ["Chunk 1042"] =  ▶ {...},
                       ["Chunk 1043"] =  ▶ {...},
                       ["Chunk 1046"] =  ▶ {...},
                       ["Chunk 1048"] =  ▶ {...},
                       ["Chunk 1049"] =  ▶ {...},
                       ["Chunk 1131"] =  ▶ {...},
                       ["Chunk 1132"] =  ▶ {...},
                       ["Chunk 1148"] =  ▶ {...},
                       ["Chunk 123"] =  ▶ {...},
                       ["Chunk 1234"] =  ▶ {...},
                       ["Chunk 124"] =  ▶ {...},
                       ["Chunk 1244"] =  ▶ {...},
                       ["Chunk 1245"] =  ▶ {...},
                       ["Chunk 125"] =  ▶ {...},
                       ["Chunk 126"] =  ▶ {...},
                       ["Chunk 1313"] =  ▶ {...},
                       ["Chunk 133"] =  ▶ {...},
                       ["Chunk 1331"] =  ▶ {...},
                       ["Chunk 1333"] =  ▶ {...},
                       ["Chunk 134"] =  ▶ {...},
                       ["Chunk 1342"] =  ▶ {...},
                       ["Chunk 1350"] =  ▶ {...},
                       ["Chunk 1410"] =  ▶ {...},
                       ["Chunk 1411"] =  ▶ {...},
                       ["Chunk 1415"] =  ▶ {...},
                       ["Chunk 1433"] =  ▶ {...},
                       ["Chunk 1434"] =  ▶ {...},
                       ["Chunk 1438"] =  ▶ {...},
                       ["Chunk 1439"] =  ▶ {...},
                       ["Chunk 144"] =  ▶ {...},
                       ["Chunk 1441"] =  ▶ {...},
                       ["Chunk 145"] =  ▶ {...},
                       ["Chunk 148"] =  ▶ {...},
                       ["Chunk 149"] =  ▶ {...},
                       ["Chunk 150"] =  ▶ {...},
                       ["Chunk 1512"] =  ▶ {...},
                       ["Chunk 152"] =  ▶ {...},
                       ["Chunk 1542"] =  ▶ {...},
                       ["Chunk 1548"] =  ▶ {...},
                       ["Chunk 1549"] =  ▶ {...},
                       ["Chunk 1610"] =  ▶ {...},
                       ["Chunk 1612"] =  ▶ {...},
                       ["Chunk 1615"] =  ▶ {...},
                       ["Chunk 1616"] =  ▶ {...},
                       ["Chunk 1631"] =  ▶ {...},
                       ["Chunk 1633"] =  ▶ {...},
                       ["Chunk 164"] =  ▶ {...},
                       ["Chunk 1642"] =  ▶ {...},
                       ["Chunk 1644"] =  ▶ {...},
                       ["Chunk 165"] =  ▶ {...},
                       ["Chunk 1711"] =  ▶ {...},
                       ["Chunk 1713"] =  ▶ {...},
                       ["Chunk 172"] =  ▶ {...},
                       ["Chunk 1732"] =  ▶ {...},
                       ["Chunk 1733"] =  ▶ {...},
                       ["Chunk 1736"] =  ▶ {...},
                       ["Chunk 1739"] =  ▶ {...},
                       ["Chunk 1740"] =  ▶ {...},
                       ["Chunk 1812"] =  ▶ {...},
                       ["Chunk 1817"] =  ▶ {...},
                       ["Chunk 183"] =  ▶ {...},
                       ["Chunk 1832"] =  ▶ {...},
                       ["Chunk 1836"] =  ▶ {...},
                       ["Chunk 1837"] =  ▶ {...},
                       ["Chunk 186"] =  ▶ {...},
                       ["Chunk 1916"] =  ▶ {...},
                       ["Chunk 1939"] =  ▶ {...},
                       ["Chunk 195"] =  ▶ {...},
                       ["Chunk 2015"] =  ▶ {...},
                       ["Chunk 2111"] =  ▶ {...},
                       ["Chunk 2112"] =  ▶ {...},
                       ["Chunk 2115"] =  ▶ {...},
                       ["Chunk 213"] =  ▶ {...},
                       ["Chunk 214"] =  ▶ {...},
                       ["Chunk 215"] =  ▶ {...},
                       ["Chunk 217"] =  ▶ {...},
                       ["Chunk 2213"] =  ▶ {...},
                       ["Chunk 2215"] =  ▶ {...},
                       ["Chunk 2218"] =  ▶ {...},
                       ["Chunk 222"] =  ▶ {...},
                       ["Chunk 228"] =  ▶ {...},
                       ["Chunk 229"] =  ▶ {...},
                       ["Chunk 2311"] =  ▶ {...},
                       ["Chunk 2315"] =  ▶ {...},
                       ["Chunk 232"] =  ▶ {...},
                       ["Chunk 2415"] =  ▶ {...},
                       ["Chunk 2418"] =  ▶ {...},
                       ["Chunk 242"] =  ▶ {...},
                       ["Chunk 244"] =  ▶ {...},
                       ["Chunk 248"] =  ▶ {...},
                       ["Chunk 249"] =  ▶ {...},
                       ["Chunk 2511"] =  ▶ {...},
                       ["Chunk 2512"] =  ▶ {...},
                       ["Chunk 2519"] =  ▶ {...},
                       ["Chunk 253"] =  ▶ {...},
                       ["Chunk 257"] =  ▶ {...},
                       ["Chunk 2614"] =  ▶ {...},
                       ["Chunk 2617"] =  ▶ {...},
                       ["Chunk 269"] =  ▶ {...},
                       ["Chunk 2716"] =  ▶ {...},
                       ["Chunk 2720"] =  ▶ {...},
                       ["Chunk 275"] =  ▶ {...},
                       ["Chunk 278"] =  ▶ {...},
                       ["Chunk 2810"] =  ▶ {...},
                       ["Chunk 2811"] =  ▶ {...},
                       ["Chunk 2816"] =  ▶ {...},
                       ["Chunk 2818"] =  ▶ {...},
                       ["Chunk 2819"] =  ▶ {...},
                       ["Chunk 2831"] =  ▶ {...},
                       ["Chunk 2835"] =  ▶ {...},
                       ["Chunk 288"] =  ▶ {...},
                       ["Chunk 2911"] =  ▶ {...},
                       ["Chunk 2915"] =  ▶ {...},
                       ["Chunk 2929"] =  ▶ {...},
                       ["Chunk 2930"] =  ▶ {...},
                       ["Chunk 296"] =  ▶ {...},
                       ["Chunk 299"] =  ▶ {...},
                       ["Chunk 3016"] =  ▶ {...},
                       ["Chunk 3030"] =  ▶ {...},
                       ["Chunk 3118"] =  ▶ {...},
                       ["Chunk 3119"] =  ▶ {...},
                       ["Chunk 3120"] =  ▶ {...},
                       ["Chunk 3128"] =  ▶ {...},
                       ["Chunk 3129"] =  ▶ {...},
                       ["Chunk 3137"] =  ▶ {...},
                       ["Chunk 3138"] =  ▶ {...},
                       ["Chunk 317"] =  ▶ {...},
                       ["Chunk 3215"] =  ▶ {...},
                       ["Chunk 3218"] =  ▶ {...},
                       ["Chunk 3220"] =  ▶ {...},
                       ["Chunk 3221"] =  ▶ {...},
                       ["Chunk 3224"] =  ▶ {...},
                       ["Chunk 3226"] =  ▶ {...},
                       ["Chunk 3234"] =  ▶ {...},
                       ["Chunk 3238"] =  ▶ {...},
                       ["Chunk 3239"] =  ▶ {...},
                       ["Chunk 329"] =  ▶ {...},
                       ["Chunk 3311"] =  ▶ {...},
                       ["Chunk 3326"] =  ▶ {...},
                       ["Chunk 3334"] =  ▶ {...},
                       ["Chunk 3336"] =  ▶ {...},
                       ["Chunk 3414"] =  ▶ {...},
                       ["Chunk 3415"] =  ▶ {...},
                       ["Chunk 342"] =  ▶ {...},
                       ["Chunk 3437"] =  ▶ {...},
                       ["Chunk 347"] =  ▶ {...},
                       ["Chunk 3513"] =  ▶ {...},
                       ["Chunk 3516"] =  ▶ {...},
                       ["Chunk 3525"] =  ▶ {...},
                       ["Chunk 3526"] =  ▶ {...},
                       ["Chunk 3532"] =  ▶ {...},
                       ["Chunk 3533"] =  ▶ {...},
                       ["Chunk 3539"] =  ▶ {...},
                       ["Chunk 3611"] =  ▶ {...},
                       ["Chunk 3612"] =  ▶ {...},
                       ["Chunk 3615"] =  ▶ {...},
                       ["Chunk 3622"] =  ▶ {...},
                       ["Chunk 3639"] =  ▶ {...},
                       ["Chunk 3641"] =  ▶ {...},
                       ["Chunk 3716"] =  ▶ {...},
                       ["Chunk 3718"] =  ▶ {...},
                       ["Chunk 3720"] =  ▶ {...},
                       ["Chunk 3731"] =  ▶ {...},
                       ["Chunk 3810"] =  ▶ {...},
                       ["Chunk 3816"] =  ▶ {...},
                       ["Chunk 3833"] =  ▶ {...},
                       ["Chunk 3910"] =  ▶ {...},
                       ["Chunk 3914"] =  ▶ {...},
                       ["Chunk 3917"] =  ▶ {...},
                       ["Chunk 3918"] =  ▶ {...},
                       ["Chunk 3932"] =  ▶ {...},
                       ["Chunk 3934"] =  ▶ {...},
                       ["Chunk 3935"] =  ▶ {...},
                       ["Chunk 4010"] =  ▶ {...},
                       ["Chunk 4013"] =  ▶ {...},
                       ["Chunk 4015"] =  ▶ {...},
                       ["Chunk 4034"] =  ▶ {...},
                       ["Chunk 4037"] =  ▶ {...},
                       ["Chunk 405"] =  ▶ {...},
                       ["Chunk 409"] =  ▶ {...},
                       ["Chunk 4115"] =  ▶ {...},
                       ["Chunk 4116"] =  ▶ {...},
                       ["Chunk 413"] =  ▶ {...},
                       ["Chunk 4134"] =  ▶ {...},
                       ["Chunk 4135"] =  ▶ {...},
                       ["Chunk 414"] =  ▶ {...},
                       ["Chunk 415"] =  ▶ {...},
                       ["Chunk 417"] =  ▶ {...},
                       ["Chunk 424"] =  ▶ {...},
                       ["Chunk 426"] =  ▶ {...},
                       ["Chunk 431"] =  ▶ {...},
                       ["Chunk 4313"] =  ▶ {...},
                       ["Chunk 4314"] =  ▶ {...},
                       ["Chunk 436"] =  ▶ {...},
                       ["Chunk 438"] =  ▶ {...},
                       ["Chunk 439"] =  ▶ {...},
                       ["Chunk 440"] =  ▶ {...},
                       ["Chunk 441"] =  ▶ {...},
                       ["Chunk 4412"] =  ▶ {...},
                       ["Chunk 442"] =  ▶ {...},
                       ["Chunk 445"] =  ▶ {...},
                       ["Chunk 446"] =  ▶ {...},
                       ["Chunk 447"] =  ▶ {...},
                       ["Chunk 449"] =  ▶ {...},
                       ["Chunk 450"] =  ▶ {...},
                       ["Chunk 451"] =  ▶ {...},
                       ["Chunk 4510"] =  ▶ {...},
                       ["Chunk 454"] =  ▶ {...},
                       ["Chunk 456"] =  ▶ {...},
                       ["Chunk 457"] =  ▶ {...},
                       ["Chunk 459"] =  ▶ {...},
                       ["Chunk 4611"] =  ▶ {...},
                       ["Chunk 4612"] =  ▶ {...},
                       ["Chunk 4613"] =  ▶ {...},
                       ["Chunk 466"] =  ▶ {...},
                       ["Chunk 467"] =  ▶ {...},
                       ["Chunk 469"] =  ▶ {...},
                       ["Chunk 4710"] =  ▶ {...},
                       ["Chunk 475"] =  ▶ {...},
                       ["Chunk 478"] =  ▶ {...},
                       ["Chunk 4810"] =  ▶ {...},
                       ["Chunk 4811"] =  ▶ {...},
                       ["Chunk 482"] =  ▶ {...},
                       ["Chunk 485"] =  ▶ {...},
                       ["Chunk 487"] =  ▶ {...},
                       ["Chunk 488"] =  ▶ {...},
                       ["Chunk 4911"] =  ▶ {...},
                       ["Chunk 495"] =  ▶ {...},
                       ["Chunk 496"] =  ▶ {...},
                       ["Chunk 498"] =  ▶ {...},
                       ["Chunk 499"] =  ▶ {...},
                       ["Chunk 5034"] =  ▶ {...},
                       ["Chunk 504"] =  ▶ {...},
                       ["Chunk 506"] =  ▶ {...},
                       ["Chunk 509"] =  ▶ {...},
                       ["Chunk 533"] =  ▶ {...},
                       ["Chunk 536"] =  ▶ {...},
                       ["Chunk 538"] =  ▶ {...},
                       ["Chunk 540"] =  ▶ {...},
                       ["Chunk 546"] =  ▶ {...},
                       ["Chunk 547"] =  ▶ {...},
                       ["Chunk 548"] =  ▶ {...},
                       ["Chunk 549"] =  ▶ {...},
                       ["Chunk 636"] =  ▶ {...},
                       ["Chunk 637"] =  ▶ {...},
                       ["Chunk 639"] =  ▶ {...},
                       ["Chunk 640"] =  ▶ {...},
                       ["Chunk 732"] =  ▶ {...},
                       ["Chunk 736"] =  ▶ {...},
                       ["Chunk 739"] =  ▶ {...},
                       ["Chunk 749"] =  ▶ {...},
                       ["Chunk 831"] =  ▶ {...},
                       ["Chunk 832"] =  ▶ {...},
                       ["Chunk 839"] =  ▶ {...},
                       ["Chunk 845"] =  ▶ {...},
                       ["Chunk 846"] =  ▶ {...},
                       ["Chunk 848"] =  ▶ {...},
                       ["Chunk 931"] =  ▶ {...},
                       ["Chunk 937"] =  ▶ {...},
                       ["Chunk 939"] =  ▶ {...},
                       ["Chunk 940"] =  ▶ {...},
                       ["Chunk 943"] =  ▶ {...},
                       ["Chunk 947"] =  ▶ {...}
                    }
                 }
1 Like

Use HTTP service to convert it to a string:

Convert:

local HTTP = game:GetService("HTTPService")
local ToSave = HTTP:JSONEncode(Dictionary) -- save this

Revert:

local HTTP = game:GetService("HTTPService")
local Data = HTTP:JSONDecode(EncodedDictionary)
8 Likes

I was thinking about using JSON but, I have no idea why It will not store dictionaries. I guess this is my only solution :slightly_smiling_face:

1 Like

Just to inform that HTTPService changed to the “HttpService”