Getting "Sanitized ID" errors to the thousands, no idea why

Greetings.
I have a decently played game that gets its 300 concurrent players, sometimes more, sometimes less.
For some reason, upon checking the errors analytics, I see that I have over 60 thousand “Sanitized ID” errors.

Here is the error message:

"Failed to load animation with sanitized ID. Animation failed to load"

I get it for several different animation IDs. Here is one:

rbxassetid://102184728486332

Now, I have done Control + Shift + F to search the origin of said ID, and it originates from one of my emote buttons.
Basically you press a button, it gets the Id
If you’re wondering how I’m storing the ID, it’s done basically the way you’d expect it to be stored.

"rbxassetid://102184728486332"

For some reason I also get that error for Asset Ids I do not even seem to find within the game when using Ctrl + Shift + F to search. Any idea why that might happen?

The errors come from the server console so I’m thinking it’s not a problem with the way I play my animations, hopefully? If that’s not the case, then please let me know and I’ll be happy to share extra relevant information.
Edit: Despite the errors coming from the server console, on the error analytics it states that the error type is “client”

So what gives? I’ve gotten a few OutOfMemory errors before, so maybe I forgot to clean up something and am leaking memory, and that is the cause? I have no idea.
I appreciate any help, this has been bugging me for ages.

1 Like

ensure that you own the animation or have the necessary permissions to use it. additionally, be aware that it might take some time for Roblox to process and make the animation available, especially if it’s newly uploaded

1 Like

All my animation IDs have been uploaded for over months. They are all published to my Roblox User profile. The game is also published to my Roblox User profile.

1 Like

how long has this issue been happening? if today it must be because of the grow a garden events and stuff, maybe roblox couldnt load the animation because of that? have you tried checking the error yourself (play testing)

1 Like

I have, on play testing nothing relevant happens. Clean console. When I join an old in-game server, which has most likely been played for hours or days, the server console shows up with tons of sanitized ID errors, which is what led me to the memory leaks theory, but I don’t even know if those two things are related, which is why I’m only suggesting a possible connection.

I’ve had this problem for quite a while. I’d say not forever. It’s recent but not very recent. However, it’s definitely not a today thing.

Additionally, when I try to use the animations that supposedly create the Sanitized Id errors in-game, in those exact same servers where the console is filled with errors, they seem to work fine without causing new errors. No idea why. Maybe I’m just not checking enough times to see it happen.

maybe roblox is trying to play the animations before its replicated to the client/server. and maybe it might be a false positive? if you want a solution i recommend preloadasync if you havent done that yet. and, have you tried newer servers to see if the issues happen there? if no issues are in the newer servers, shut the old servers down

Newer servers always start clean but start to get errors as time goes by. Which is expected, but I get Sanitized Id messages to an alarming level.
I’ll try my luck with Preloading later, and mark your reply as solution if it works. I’m open for any other suggestions in the meantime, however!

the errors might be duplicated, i suggest only create/play animations when needed instead of cloning lots of them up front. and you can also wrap animation loads in pcall so you can track how often they actually fail versus just logging noise

This is how I’m managing my animation playing

local currentanim = Humanoid:FindFirstChild("CurrentAnimation")

		if not currentanim then
			currentanim = Instance.new("Animation")
			currentanim.Name = "CurrentAnimation"
			currentanim.Parent = Humanoid
		end
	
		currentanim.AnimationId = initialId
		local animator = Humanoid:FindFirstChild("Animator")
		local animtrack = animator:LoadAnimation(currentanim)
		animtrack:Play()
		if not isDirect then
			animtrack.Stopped:Connect(function()
				if IsEmotingInstanceVariable.Value then
					currentanim.AnimationId = idleId
					animator:LoadAnimation(currentanim):Play()
				end
			end)
		end

But even if this is the problem, it still doesn’t explain how I’m getting Sanitized ID warnings for IDs that I cannot even find anywhere in my game.