103: string is not allowed in data stores.? GetOrderedDataStore (report system)

I cant SetAsync my String Value why ?

local DataStoreService = game:GetService("DataStoreService")
local DataStore = DataStoreService:GetOrderedDataStore("PlayerStatsReport")
DataStore:SetAsync(player.UserId, player.Report.Value)

I making report system, my system when player chatted ;report me , its saving his datastore
then I made report list

local isAscending = false
local pageSize = 1
local pages = DataStore:GetSortedAsync(isAscending, pageSize)
local topTen = pages:GetCurrentPage()

for rank, data in ipairs(topTen) do
	report.Message
	report.Data
	report.PlayerName
end

its only example…

most probably GetOrderedDataStore cannot save strings because it cannot sort strings

is there another way to do that?

1 Like

You can’t sort strings in ordered data stores. Simple as that. Don’t use an ordered data store. Just use a global data store (:GetDataStore).

3 Likes

How I can make Report System with GetDataStore

At the moment there is no way u should use GetDataStore

I figured out how. but i forgot to mention