The file “***.fcpxml” could not be imported. An unexpected error occurred in importing the media.

Hi,


I'm on the latest OS and Final Cut version.


I was editing a week ago, the next day I see that 1 audio file is greyed out in the timeline, and red in the library.


The file doesn't "reveal in finder" (the menu is greyed out), and I can't relink it, as you can see below:



Reading a few support videos and forums - I exported an XML. Deleted preferences. And made a new library.


When I imported the XML, I got this:



I don't know what to do. It seems like the project is corrupt, and it's preventing me to export correct XMLs.


Please help.


PS: I've also played around with moving media in the "Show Package" folder of the library. But nothing... the file will always be grey in timeline/red in library. Impossible to re-link.


Mac Pro

Posted on Jun 15, 2020 1:00 AM

Reply

Similar questions

13 replies

Jun 15, 2020 11:09 AM in response to Tom Wolsky

Yes, I have the file. It's on an external drive that hasn't moved. Finder can locate it easily.


The name or file path hasn't changed. I can import the file easily into the library, but it treats as a new asset. It doesn't replace the "corrupt" asset.


I also set the preference of Final Cut to not copy files into library. Which seems to work for all my other projects.


Looking into the package of the library, I saw all my media has aliases, except the "corrupt" audio file.

I tried re-creating an alias and putting it in the package... nothing.

I tried copying the whole file manually into the library package... nothing.





Jun 16, 2020 10:07 AM in response to terryb

You also may try this:

Create a new library and close all others.

Create a new project.

Import your .wav file and drag it to the project.

Export as XML.

Open the XML in a text editor as described above.

Now as the file is the only asset it's easy to find it (and to get all it's attributes).

Copy the "<asset ... " line – it ends at the first "/>" after the "<asset ".

Now open the 'bad xml' and locate the 'bad line' same way.

Paste the 'good line' before or after the 'bad one' – doesn't matter.


In the 'bad line' there is a so called attribute 'id' – 'id="r6"' in you case. This id will be used throughout the XML as a so called 'reference'.

Copy that 'id' and replace the matching part of the 'good line' with it.

Now delete the 'bad line'.


Just for security create another library and close the intermediate one.

Import the XML.

In case everything works consolidate.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

The file “***.fcpxml” could not be imported. An unexpected error occurred in importing the media.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.