Fix for Autodesk Maya Error: File contains unknown nodes or data

in category.

In this article I will cover receipe that will help you to deal with another Autodesk Maya problem that happens from time to time — Error: File contains unknown nodes or data, which prevents users from saving their files in desired Maya file format. Previously I've posted solution to another very common Maya problem that you may be interested in — check out how to fix empty RenderView window in Error: setParent: object ‘renderView’ not found article.

So, you've opened Maya scene, received from some of your sources ( like downloading it from the internet ), made your changes and then you want to save your work. You go to File menu, then Save As... , selected needed file format ( like .ma ) and hit Save, but suddenly Maya window pop-ups and says that it unable to save your scene in this format because there is some unknown nodes and data. Literally this message looks like this:

maya_save_unknown_data.png

File contains unknown nodes or data. To preserve this information, the current file type cannot be changed.

This error often appears when scene contains nodes, created by third-party plugins that are uninstalled or disabled in your particular Maya configuration. To get the idea what plugins you may need to evaluate your scene correctly you can check Script Editor windows — all error messages goes there aswel.

To restore ability to save a scene in all Maya formats ( Maya ASCII or Maya Binary ), you may need to find and install required plugins, or — as it often simpler to do — just delete this unknown nodes and data. In my case, when I had run into this error, there was no any plugin dependencies, because my scene was just restored from Temp folder after Maya crashed with some generous ammount of my work ( I will write another article on how to restore such scenes form Temp folder ), thus there was no other choices but to delete unknown nodes and data.

You can do this two ways:

1) Through File — Optimize Scene Size □ menu, where you need to scroll a window all the way down, check Remove: Unknown Nodes and press Optimize Now button.
 

Maya Optimize Scene

or...

2) Execute in Script Editor following command:

delete `ls -type unknown -type unknownDag -type unknownTransform`

After this all unknown nodes and data will be deleted from the scene, and you will be able to save it in both Maya file formats ( .ma and .mb ). But there is some point to consider — in some cases deleting such nodes isn't the best way to go. For example, if you received your scene file from your collegue, have to make your part of work and then return this scene to him, then he probably will not be happy  to get a scene with deleted plugin-specific nodes that he uses, and you — don't. But if you work alone or need to get just geometry from the scene, and any other data is unnecessary — probably it's pretty safe to "clean" a scene a little bit.

Autodesk also provides another option — you can manually force Maya to change scene file type by executing following command:

file -type "mayaAscii";

After this Maya internally will consider a scene as Maya ASCII and you will be able to save it in this format ( .ma ).

Average: 6.5 (58 votes)
About the Author: Sergey “Treidge” Danchenko

AvatarSergey "Treidge" Danchenko is a founder and the author of 3DG.Me blog, 3D Artist and game developer, Drupal web-developer and one-man-band with experience in some other areas. Personal credo — "If you want a thing done well, do it yourself". In times of great inspiration writes poetry and plays volleyball. Primary professional tools — Autodesk Maya & Mudbox, Adobe Photoshop. Wild about turkeys and parrots, loves music and videogames.  Thanks for reading and come again!

Comments

Thanks you ! I have been searching the solution for days and I almost give it up. Finally your article solve my problem.

Hey ! I'm really thankful to you for your aid. You solved a big problem of mine... Really I appreciate you and this article as well. Finally, after a long time I found this .. I used the forcing method and it worked as expected . Thanks to you and this website. I used to work around 2013 & 2014 editions. (problem is I'm a beginner and I got 2014 version... In my training institute they got 2013 version. There, the problem arrived)

Thank you very much! Saved my day :)

Hey, thank u, this is the first time im use Maya and i have to do a homework in .mb and .ma YOU SAVE MY LIFE xD

thanks bro its working properly .

YOU SAVED MY LIFE!
THANK YOU SO MOTHERFREAKING MUCH!!!!!!!

Copyright © 2010-2013 Sergey "Treidge" Danchenko. Feel free to Contact me with any questions. Theme based on a BlogBuzz design by Antsin.com