Output spammed with "Failed to load Animation - sanitized ID" for ID's that aren't in the game upon startup

My group’s game is published, but it runs into errors really everywhere, published or unpublished.

1 Like

We’ve found the cause of this bug - as some here have discovered, the error message was truncating the first number of the asset ID in the message. For some context, this is a relatively new error message that we added because we previously didn’t have a default error message for when animations fail to load. No changes have been made to how animations are loaded; the error message has just been displaying an incorrect asset ID. This issue should now be fixed in Roblox Player/Studio version 595 and later.
I apologize for all the confusion caused by this bug, and thank you for reporting.

6 Likes

I’m still getting this issue.


1 Like

Still occurring for me. Trying to play an idle animation from a Roblox animation bundle on an NPC.

Failed to load animation - sanitized ID: rbxassetid://837011741

1 Like

Strange, I have this issue when I test my animation on studio, It works just fine, but when I test my animation in-game, It just shows the error Failed to load Animation - sanitized ID.

4 Likes

The bug in the original post seems to be that the asset ID displayed in the error message doesn’t exist in the game - this issue should now be fixed.
This error message as a whole is a new one we added a few weeks ago, whereas in the past, users often wouldn’t have any indication when animations failed to load. If you believe that another recent change on our part has been causing animations to fail to load more often, could you file a separate report? Thank you!

4 Likes

Thanks, what does sanitized ID mean? I think this adds to confusion. What has been sanitized? What does that mean? How does a sanitized ID differ from a ‘normal’ animation ID?

3 Likes

The asset ID is “cleaned up” right before the error message is logged to be more readable and to prevent any sensitive information from accidentally being shown. In most cases, the sanitized ID should be the same as the asset ID. If the asset ID was invalid, an error message may be shown instead or invalid characters may be removed. Sorry for the lack of clarity on this part

4 Likes

Going to give this a try to see if it’s fixed on my part


Still having this issue on my end.

rbxassetid://0 does look strange. Would you happen to have a place file or code snippet to reproduce this on? I’d appreciate if you could upload one or send through private message. Thanks!

1 Like

same here
image

Pretty sure this isnt a bug anymore. It used to show you just “Failed to load animation”, which wasnt very helpful, and now its replaced with that error message so you know which animation isnt loading.

that doesn’t really explain why the animation isn’t loading though

1 Like

Yeah I’m experiencing the same issue.

When I put just a number of animationId into the field in properties it transforms to rbxassetid://11444443576 which leads to “Failed to load Animation - sanitized ID” error. But after I manually change the ID to http://www.roblox.com/asset/?id=xxx it starts working.

3 Likes

My bad, this solution doesn’t work with animations from marketplace. For this reason, you need to download animation into the Studio and take actual animation id.

Execute this script in the studio:

local assetId = 5917570207
local InsertService = game:GetService("InsertService")
local model = InsertService:LoadAsset(assetId)
model.Parent = workspace
2 Likes

Still experiencing issues in my game where animations fail to load. Lots of mechanics in my game rely on the KeyframeReached event, which can’t fire if you don’t load the animation for me. Any news on this problem??

1 Like

Has this Issue been fix for anyone, because I am still experiencing the same thing where the animations fail to load. This is a major Issue for me as my game mostly depends on animations, for it to look good.

2 Likes

not working. i keep getting " Asset is not trusted for this place "