Blend file is Xed out in godot

Godot Version

v4.7.stable.official

Question

This problem is only happening to this one blend file that I made a couple years back. I am working with the file on the same version of blender that is connected to godot and I even tried to append the collection with the model on to a fresh blend file but the file still appears as Xed out in godot.
image

When I try to double click it in godot this error appears in the log:
ERROR: Failed loading resource: res://assets/pets/blob/blend/blob_model.blend.
ERROR: editor/editor_node.cpp:1705 - Condition “res.is_null()” is true. Returning: ERR_CANT_OPEN

What happens if you use gltf instead?

ok, exporting it to gltf doesn’t work and it spits out this error:

Python: Traceback (most recent call last):
File “C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\addons_core\io_scene_gltf2_init_.py”, line 1372, in execute
res = gltf2_blender_export.save(context, export_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\addons_core\io_scene_gltf2\blender\exp\export.py”, line 37, in save
json, buffer = __export(export_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\addons_core\io_scene_gltf2\blender\exp\export.py”, line 55, in __export
__gather_gltf(exporter, export_settings)
File “C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\addons_core\io_scene_gltf2\blender\exp\export.py”, line 210, in __gather_gltf
active_scene_idx, scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\addons_core\io_scene_gltf2\blender\exp\gather.py”, line 48, in gather_gltf2
animations += gather_animations(export_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\addons_core\io_scene_gltf2\blender\exp\animation\animations.py”, line 18, in gather_animations
return gather_actions_animations(export_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\addons_core\io_scene_gltf2\blender\exp\animation\action.py”, line 145, in gather_actions_animations
prepare_actions_range(export_settings)
File “C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\addons_core\io_scene_gltf2\blender\exp\animation\action.py”, line 231, in prepare_actions_range
blender_actions = __get_blender_actions(obj_uuid, export_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\addons_core\io_scene_gltf2\blender\exp\cache.py”, line 37, in wrapper_cached
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\addons_core\io_scene_gltf2\blender\exp\animation\action.py”, line 843, in __get_blender_actions
new_action.add_slot(strip.action_slot, strip.action_slot.target_id_type, track.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘target_id_type’

What happens if the file is just a default cube?

Seems to be an issue with the animations in your blender file.

How old was the version that you previously used to create the animations?

In the upgrade notes for Blender 5.0 there are some notes regarding migrating animations from old blender versions:

The suggested fix therein is to load (and save) the blend file in Blender version 4.5 first.

Ok, I did the version safe/load method but that didn´t work.

What ended up working was to choosing the display mode as blender file and clearing the animation data.
Animations were fairly simple on this project so I can easily make them again but i still wonder if there is a way to preserve the old animations somehow.

Ok I managed to get the old animations working. I had to go to Nonlinear Animation tab in blender and I deleted all these “Action Stash” tracks.


That fixed the problem and kept the old animations.