Datastore error 104 message doesn't give enough info for me to solve the problem

I know this is not a profilestore problem

I want to have a profile for a save file, so the player can have multiple save files, but i keep getting these errors, i’ve looked elsewhere and usually, the error message states the value that cannot be stored, whereas in my case it doesnt.

I’m 99% sure that the problem is my template

Template
local SlotTemplate = {}

SlotTemplate.ID = false
SlotTemplate.Appearance = {
	["Eyes"] = {
		["Left"] = {
			["ID"] = 0,
			["Colour"] = Color3.fromRGB(65, 40, 30)
		},
		["Right"] = {
			["ID"] = 0,
			["Colour"] = Color3.fromRGB(65, 40, 30)
		}
	},
	["Hairs"] = {
		["Hair 1"] = {
			["ID"] = 63690008,
			["Visible"] = false,
			["Colour"] = Color3.fromRGB(255, 255, 255)
		},
		["Hair 2"] = {
			["ID"] = 63690008,
			["Visible"] = false,
			["Colour"] = Color3.fromRGB(255, 255, 255)
		},
		["Hair 3"] = {
			["ID"] = 63690008,
			["Visible"] = false,
			["Colour"] = Color3.fromRGB(255, 255, 255)
		},
		["Hair 4"] = {
			["ID"] = 63690008,
			["Visible"] = false,
			["Colour"] = Color3.fromRGB(255, 255, 255)
		},
		["Hair 5"] = {
			["ID"] = 63690008,
			["Visible"] = false,
			["Colour"] = Color3.fromRGB(255, 255, 255)
		}
	}
}
SlotTemplate.FirstName = "Abel"
SlotTemplate.LastName = "Juno"
SlotTemplate.Inventory = {
	["QuickAccess"] = {
		["Weapons"] = {
			[1] = "BaseFists",
			[2] = nil,
			[3] = nil,
			[4] = nil,
			[5] = nil
		},
		["Specials"] = {
			[1] = nil,
			[2] = nil,
			[3] = nil,
			[4] = nil,
			[5] = nil
		},
		["Items"] = {
			[1] = nil,
			[2] = nil,
			[3] = nil,
			[4] = nil,
			[5] = nil
		}
	},
	["Items"] = {}
}
SlotTemplate.Stats = {
	["MaxHealth"] = 100,
	["MaxEnergy"] = 100,
	["MaxStamina"] = 100
}

return SlotTemplate

Error messages

``lua
DataStoreService: CantStoreValue: Cannot store in data store. Data stores can only accept valid UTF-8 characters. API: UpdateAsync, Data Store: Test_Slots - Studio
[ProfileStore]: DataStore API error (STORE:Test_Slots; KEY:Player_2996895982_Slot1) - 104: Cannot store in data store. Data stores can only accept valid UTF-8 characters.

1 Like

what are you trying to save? Also, that error is caused by invalid characters that datastores don’t support by the way.

1 Like

oh wait it’s probably because you’re trying to save nil or the color3 is causing an error

1 Like

i’ve read the docs and nil is fine, i’ll try color3

1 Like

ok, so then tostring your color3 value when saving and when you load you can just use the value again!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.