Skip to main content
Participant
May 14, 2010
Answered

"Flash can not parse this document" - CS5 Issue

  • May 14, 2010
  • 28 replies
  • 143225 views

Help! I have an FLA which CS5 has apparently corrupted on a save... (When you load up the FLA in CS5, it now fails and sends "Flash can not parse this document" to the output window.

Unfortunately I only found the corrupted nature of this file AFTER I had conducted my regular routine of backing up my files - which means the backed up file is ALSO corrupt. I'm shooting in the dark here, but is there any way that the FLA can be recovered? Desperate as this is a project I have worked the last month on.

Any help would be greatly appreciated!

Cheers,

Ben.

    This topic has been closed for replies.
    Correct answer nrajbhan

    Hi,

    We discovered that the file becomes corrupted due to the empty frame in the following asset:

    1. Open the FLA in Flash CS4

    2. Open the Library panel.

    3. Browse to _movieclips & bitmaps/_gui/_menu wheel/Gui_Wheel_ButtonOverlay_On and open it for edit in symbol-mode.

    4. Insert a keyframe in Layer 2 of that movieclip.

    5. Save FLA

    Thanks for sending us your FLA so we could narrow down the problem.

    -Nivesh

    28 replies

    PedalGeoff
    Known Participant
    May 16, 2012

    I am experiencing this problem today. I have an FLA that was orignally CS3 (I never used CS4). For kicks I downloaded a the CS4 trial to see if nrajban's fix would work, but it won't open in CS4. So at this point I have a CS5 file that simply won't open.

    SuhasYogin
    Adobe Employee
    Adobe Employee
    August 6, 2012

    Hello,

    Please read the following blog post for a solution to the Unexpected File Format Error:

    http://blogs.adobe.com/flashpro/2012/07/24/unexpected-file-format-error-on-opening-flash-files-using-flash-cs5-5/

    Regards,

    Suhas Yogin

    Participant
    February 7, 2012

    I'm experiencing this issue as well, running Flash CS5 11.0.2.489 on win7 x64.  I've tracked it down to a single, reproducible action that causes the file to become corrupt on saving:

          I have a custom swc component in the root of my library.  If I drag that component into a folder, any folder, and save the file, the resulting file will be corrupted (CS5 fla or xfl).

    It doesn't matter which folder I put the component into. I have plenty of other components in the file which I move around without killing it. No empty frames are in the file, this is not a CS4 import, and it has no weird AS3 empty or extended text chars as some others have reported as a cause for them.

    The bin and library folders and files  are identical between the pre-corrupt and the corrupted version. The main difference in the DOMDocument.xml file is the swcPath change to the moved component (both the corrupt and pre-corrupt refer to a non-existant xml file with the same name as the component -- which appears to be the norm for components in the DOMDocument.xml file).  There do not appear to be any other significant differences between the folders or files. 

    It seems like there's something about the component that's tripping it up, but I can't find out what that might be.  I checked the publish settings, rebuilt the swc and re-imported (replaced) the offending component, but it did not help (new component still works in the root, corrupts in a folder).  If I export the component under a different name, re-import it without replacing the old one, then I can move the new one into a folder without causing corruption (leaving the original in the root).  However, moving the original into a folder will still corrupt the file.

    The file is NOT corrupted if I save it as a CS4.fla.   If I then take the CS4 file, close and reopen it in CS5, then re-save it as a CS5 file (fla or xfl), it will not be corrupted (even with the original component in a folder).  The workaround appears to be to stick with CS4 format.

    --Lars

    shasimo
    Inspiring
    March 5, 2012

    I experienced exactly the same thing in my fully updated CS5.
    After spending my entire day searching my huge project for empty tags in the xml-files, I found that 3 of my movieclips were "bad guys" and the answer to why my project was corrupted.
    I then realised that they were all using components, and the last time I worked on the project, I was cleaning up my library and putting all the components in a seperat folder, which I have done so often before in other fla files, but never will du again.
    Putting the components back into the root of the library, and everything is running again... What a drag, but I'm happy to get my project back again, as my backup to was corrupted!

    May 1, 2012

    I would just like to say thanks you to chetana

    You are legend.  that script fixed my file wich is due in the morning.  this is my last chance aswell as this is the late submission deadline.

    I would never of even had a website to hand in!

    Thanks again.

    But as i say this its a joke that this problem even excists in flash.  Adobe would want to get the finger out and get it sorted.  if a simple script like this can find the file that will cause a problem why can they not just make this script run every time you try to save.  then this problem could be avoided me and the many others would not have to go through the stress and madness i had to go through the last few days! 

    Participant
    December 1, 2011

    Hi

    My file also got corupted!!!!! .

    Is this fixed in 5.5? Because Chetana said that this was fixed in update 11.0.2.489 and that isnt true because I have that version!

    My company already purchased CS5.5. Can i also mail my document so Adobe can fix it for me? please.

    I am trying to fix it myself but this is a lot of work and I dont know if it will work for sure!

    Paul

    Participating Frequently
    December 1, 2011

    Hi Paul,

    Please zip up your file, change .zip extension to .zzz, and email the file to my attention at

    <removed by moderator>. I'll investigate to see why our updater didn't catch this issue. Thanks.

    Quynh

    Flash Pro, QE

    Participant
    October 31, 2011

    So, th elast post on this was in May but I'm hoping someone still has a clue how to resolve this issue. I've got a file with hundreds of man hours invested and neither it or three weeks of back-ups will open. "Flash can not parse this document."

    This is a file that I was working with and creating SWF files from on Friday.

    I'm using CS5 11.0.2.489

    I updated to OS X Lion a few weeks ago but have opened and closed this file without issue since then.

    I need help urgently as I'm up against a deadline.

    October 31, 2011

    Did you see the original answer at the top of the thread? You didn't indicate whether you saw that and it was relevant to you.

    Participant
    April 18, 2011

    Thus again, this problem with CS5 is still prevalent! This error is very serious as I've read many complaints about it in numerous forums, and countless individuals have lost hours upon hours of work. I created my file in CS5 and worked on this project for close to a week, and after a recent save, discovered I could not open it again. I received the error that it could not be parsed.

    I decompiled the file by following the steps provided in these and other forums by copying, changing to zip, reviewing the xml files, etc, etc., and discovered that in DOMDocument.xml file, well over half of the code was missing, so I was unable to save any of my work or rescue the file.

    I don't want to experience this in the future, or with an even larger project! I would like to downgrade somehow to CS4, or Adobe, if you have a fix that we can download for this nasty bug in CS5. I would like to resolve this before starting anymore projects. Is the only answer to save our projects multiple times under different names and in different folders?

    April 18, 2011

    Hi Cathy,

    Please describe the steps which leaded to this issue, if you remember them

    It will also be good to know your OS and hardware configuration, and whether your Flash was updated when the file was corrupted (look for the number in About screen -- should start with 11-- and plase writhe it down with the rest of the info).

    Thnk you

    Sandy
    QE

    Flash Authoring.

    Participant
    February 24, 2011

    I can't get the fixes to work. For some reason, the flash file saved fine and all, and then when I opened it two days later, it said that it couldn't parse the document. Same with the older .fla I had from a month ago. I tried the .zip fixes but they wouldn't work (I'm on a mac, maybe that's why?). Anyway, It's rather important as it's a large file and it would take days to try to recreate what I had.

    …Thanks, Adobe.

    March 3, 2011

    Hey, I just had this problem, freaked out, and then was able to solve it thanks to all the great suggestions here. I'm on a Mac too, so here's what I did, in case it helps.

    1. Saved a copy of my .fla file and changed the extension to .zip

    2. Double-clicked the .zip file, which automatically uncompressed into a folder full of files.

    3. Based on earlier advice, I made a copy of the uncompressed folder and deleted everything in its Library folder.

    4. Moved files from the first Library folder into the now-empty Library folder 10 at a time, opening the .xfl after each transfer to see if it would work.

    5. When the .xfl file finally started throwing the error again, I zeroed in on the 10 files in the last Library transfer. I deleted them one by one until the .xfl file would open again.

    6. Took the contents of the one .xml file that seemed to be the trouble and ran it through the validator (http://validator.w3.org/check) to see if it had any suggestions.

    7. Surprise! Turned out to be a single special characted after a period that looked like an empty space. I deleted it, reassembled the Library contents, and my file was good to go (knock wood).

    Hopefully this helps someone! Thanks for helping me.

    Participant
    March 3, 2011

    When I tried to unzip it though, it just turned into another flash file for some reason. I kept on trying to unzip it and it would just turn into filename2.zip filename3.zip, etc. Really bizarre. I thought it was just because I was on a mac or something, but maybe it's because the file is around 130 MB? Anyway, yeah, that method didn't work for me. I pretty much tried everything. I'm now rebuilding most of the file.

    Participant
    February 9, 2011

    This problem is still occuring (An earlier post said it might be fixed with the update but it is still happening - sorry) I was using Flash CS5 exclusively (not switching form CS4) when my fla file would no longer work when trying to open the project today.

    Though, following the steps that some of you presented (i.e. the fla to zip  solution) fixed my problem file. Thanks!!!

    I think my problem came about when duplicating a symbol to make another symbol with the same attributes but different content. I recommend just making new symbols until there is an Adobe update to really fix this problem.

    Participant
    January 12, 2011

    Noooo I was ready to publish this then this happened!!! I'm using cs5

    Participant
    January 12, 2011

    I dont get all this stuff on how to fix it I'm such a noob ~___~

    Participant
    December 9, 2010

    I encountered this error as well.

    I changed extension to ZIP.

    Opened in WinRAR - rebuilt it under the menu "options"

    Opened the DOMDocument.xml file

    Copied it's contents and then went to:

    http://validator.w3.org/check

    Pasted via "direct input"

    Checked it - 2 errors.

    Turns out in one my text fields I had invalid characters.  They showed up as "ETX" ( white text on a black background )

    Deleted them in the XML file.  Saved.

    Zipped the contents back up and renamed the extension ".fla"

    Works..

    quickly saved as a CS4 file hahaha.

    ( i also had seen some ambiguous references to flash.ai assets - deleted those layers and removed the xml entry out of the top symbols list too - this combination didn't really seem to do much... did the above and it finally worked )

    Participant
    October 5, 2010

    Whoa, this is complete BS. I can't believe a bug like this exists. I tried the steps previously posted and successfully fixed my corrupted file. I changed .fla to .zip then looked for the corrupted XML. Unfortunately for me the corrupted XML was the main one (DOMDocument.xml) so it wasn't as easy as deleting a library item and re-saving as a cs4 file. I had to manually parse the XML looking for any syntax errors, and what I did was basically delete all the XML blocks that are layers in the flash documents:

            <DOMLayer name="slide6" color="#9933CC" autoNamed="false">
              <frames>
                <DOMFrame index="0" keyMode="9728">
                  <elements>
                    <DOMSymbolInstance libraryItemName="people" name="people" centerPoint3DX="71" centerPoint3DY="101">
                      <matrix>
                      <Matrix a="0.400802612304688" d="0.400802612304688" tx="23.5" ty="53.5"/>
                      </matrix>
                      <transformationPoint>
                        <Point x="118.5" y="118.5"/>
                      </transformationPoint>
                      <color>
                      <Color alphaMultiplier="0"/>
                      </color>
                    </DOMSymbolInstance>
                  </elements>
                </DOMFrame>
              </frames>
            </DOMLayer>

    And I added them one by one, checking the .xfl each time. I was able to narrow the error down to ONE CHARACTER inside a text layer. That's right, not a syntax error or an empty frame or a corrupted library item. One single character caused the error and made me waste hours of time looking through XML :   (looks like an empty space, it might get stripped by the forum editor too). I'm lucky my project was small  enough but I wonder how many people have had to redo huge projects  because of one character since they probably didn't want to look through  hundreds of xml files.

    I'm lucky my project was small enough but I wonder how many people have had to redo huge projects because of one character since they probably didn't want to look through hundreds of xml files.

    Known Participant
    December 3, 2010

    Again, this isn't fixed.

    I just had the same problem, but with files i CREATED on CS5.

    All working fine until i tried to open it this afternoon.

    Any help other than saying to update the software?