# Cannot export to FBX file, does anyone know how to fix this?

So basically I've been stuck on this for about 2 hours now, when I try to export the file I get this error message. I have seen a similar problem but didn't really get how he fixed it, any help is appreciated! The post I'm referring to is this one: Can't export mesh to .fbx.

I think your problem may be an invalid UVW map. Here is the developer task associated with this error. You can try two things:

Run the following code in Blender before exporting until the bug is fixed (Credit Michael Campbell):

import bpy

for ob in bpy.data.objects:
if not ob.type =='MESH':
print(ob.name,'is not a mesh, skipping\n')
continue
print(ob.name,'\n')
m = ob.data
if m.validate(verbose=True):
print("something was fixed with the mesh")
else:
print("mesh was fine")

print(" and the cached custom data has been cleared to avoid export issues")


If this doesn't work, try clearing and recreating the UV map. Make sure everything is unwrapped properly.

Another thing to check is to make sure all of your objects have correct location and scale values. Some people have reported export problems where certain objects somehow got set to NaN (Not a number) and weird scaling values.

As a last resort, I would try deleting everything from your scene one by one and try exporting to FBX after each and every deletion. This may help you narrow things down and isolate the culprit of the crash.

• I honestly didn't think it would work, thank you so much! – artdeheer Oct 3 '20 at 8:49
• No problem, glad to help! If you don't mind, please mark my answer as accepted. – Jay Oct 3 '20 at 23:39
• Oh whoops sorry for not responding, its marked as accepted now. – artdeheer Nov 15 '20 at 13:57