![sonarr import failed sonarr import failed](https://forums-sonarr-tv.s3.dualstack.us-east-1.amazonaws.com/optimized/2X/4/4806dd00349982dc41e98adddfccb5c9f6dd5cf6_2_690x161.png)
They don’t let the process run long enough. The server takes forever to process all the data in the 2MB file. It just takes too long. 2MB of plain text-like in an XML file-is a TON of text. It’s that markup-parse/database-insert process that causes a problem. Namely: it inserts records into the database according to the XML doc’s content and meta definitions (author, publish date, status, tags, etc.). The processor parses through each line of the XML document and handles the data accordingly. Once uploaded, WordPress passes the XML file into a PHP processor script. The problem here is not with uploading the XML file. So I’m blaming it on this little gem right here. And I’ve dealt on more than one occasion with a list of imported pages whose parent/child relationships are all bonkers. Now, when you do get around to importing/creating page 20, that relationship should be restored right? Well, the truth is I don’t know. They SHOULD throw an error or at least warn you of the problem, but it’s rare and most people won’t care so they probably just didn’t bother. WordPress sees the invalid relationship and just skips right over it. Well, if you import a chunk that defines page 10 but cuts off before defining page 20, you’ll be telling WordPress to import/create page 10 and its parent is 20…but you haven’t imported 20 yet. Maybe you added a category-level landing page to list all sub-pages Whatever, just go with me on this.) Read that carefully: 20, the higher ID and newer page, is actually the parent of 10, the older page. For whatever reason, you created 20 after 10, but 20 is the parent of 10. Here’s the problem: if you have two pages in your site: Page ID #10 and Page ID #20. This one could be a deal-breaker for some. It might break your meta data/relationships But if you’ve got an hour or two and the patience of a saint, the tedium isn’t the end of the world. And, as far as I know, it can’t be automated (at least not by the average WordPress user). It’s a total pain to go through a 100,000-line file and break it into 5,000-line chunks. It has two drawbacks, one bigger than the other: it’s tedious and it might break your data’s relationships. Your data should import just fine, albeit in smaller installments. This time, import these smaller files that won’t take forever to parse. Repeat the Tools > Import > WordPress Import process you’re already familiar with.
SONARR IMPORT FAILED DOWNLOAD
Download and inspect it in your favorite text editor. Here’s an example XML document I’ve edited to match the pattern above.
![sonarr import failed sonarr import failed](https://forums-sonarr-tv.s3.dualstack.us-east-1.amazonaws.com/optimized/2X/1/1a6f370dced279608c113e7f960b27f85809b59e_2_690x500.png)
If you have a problem, it’s probably because this step was done wrong. It’s a pain and it must be done properly. You will have to copy and paste these tags into the top and bottom of each file (or start with one file like this and paste your content into the middle). tags (plus the others described above) or the import will break. tags within your 5,000 lines―and in fact, you definitely should.