Truncated G-code or failed upload: how to tell them apart and re-export cleanly
When a print stops for no obvious reason, or a file just won't start, it's easy to blame the printer. Very often, though, the problem is the G-code file itself or how it got to the machine. This guide helps you tell the two apart, confirm the transfer really finished, and start over from a clean export.
The short answer
An incomplete G-code transfer has two distinct causes: either the file itself is truncated and missing its final instructions, or the file is fine but reaches the printer too slowly over the network or from a USB drive. According to the Prusa Knowledge Base, a slow or corrupted drive, or an unstable or overloaded network connection, triggers a slow-transfer warning. Swapping the drive or stabilizing the network fixes that case. You can spot a truncated file by comparing its size with the original export and checking that its last line is the end sequence. If it is truncated, the only reliable fix is to export the G-code again from your slicer project.
Two different failures behind the same symptom
A print that stops cold, an upload bar that never finishes, or a file that won't start can come from two very different problems. In the first case, the file itself is incomplete. It got cut off during export, copying, or downloading, and the final instructions simply aren't there. In the second case, the file is fine, but the data reaches the printer too slowly or unevenly, either over the network or from a worn-out flash drive.
That difference matters because the fix isn't the same. A truncated file stays truncated no matter how many times you retry it, so you have to generate a new one. A transfer problem often goes away as soon as you swap the storage device or steady the connection. Before you change slicer settings or start taking anything apart, figure out which situation you're dealing with. The sections below give you quick ways to tell them apart, then a method for starting over from a clean file without wasting time or filament.
What the printer tells you when data arrives too slowly
According to the Prusa Knowledge Base, recent Prusa printers from the MINI to the CORE One show a dedicated warning when G-code data comes in too slowly, whether it's streaming from a USB drive or over the network. The message tells you to check your network or try a different USB drive, then press Continue to resume printing. Prusa lists the likely causes as a drive that's too slow or corrupted, or a network connection that's unstable or under heavy load.
That warning is a useful clue: the file isn't necessarily the problem, the delivery is. The PrusaLink documentation adds that upload speed is intentionally limited while a print is running, so the active job doesn't slow down. If an upload crawls while another part is printing, that's expected behavior, not a fault. Other brands word their messages differently, but the logic is similar. An alert that mentions the connection, storage, or reading points to how the data is traveling rather than what the file contains.
Confirm the transfer actually finished
Start with the simplest check. Compare the file size on the printer or drive with the size of the exported file on your computer. A clear mismatch means the copy was interrupted. Next, open the G-code in a plain text editor and scroll to the very bottom. A complete file ends with the end sequence defined in your printer profile, which typically turns off the heaters, moves the toolhead clear, and disables the motors. If the last line stops in the middle of a move, the file is truncated.
You can also load the G-code back into your slicer's preview and scrub through the layers to the top. A part that stops short of its real height confirms the diagnosis. With USB drives, always eject properly before pulling the drive, or the copy may stay partial. And if the file came from the internet, see our page on downloaded G-code. A file sliced for another machine causes problems that have nothing to do with the transfer.
Rule out the flash drive, SD card, or network
The Prusa Knowledge Base calls an SD card or USB flash drive the most common and reliable way to get files to the printer. It also warns that flash memory can become corrupted or fill up without obvious signs. First, check that the SD card's lock switch isn't in the locked position. If your computer recognizes the drive but can't read it, reformat it to FAT32. Prusa notes that its printers don't support exFAT, and that the built-in Windows tool won't offer FAT32 for drives of 32 GB or more. For those drives you'll need a third-party utility.
An 8 to 16 GB drive is plenty, since a G-code file rarely exceeds 100 MB according to the same source. On the network side, the PrusaLink documentation states that the Wi-Fi module in these printers only connects to 2.4 GHz networks. If the slow-transfer alert keeps coming back, Prusa recommends copying the G-code to the USB drive before printing, or trying a different drive. That tells you whether the hardware or the connection is at fault.
Re-export from the original project instead of patching G-code
There's no reliable way to repair a truncated G-code file. Adding an end sequence by hand won't bring back the missing layers, and every extra copy adds another chance for error. The right move is to go back to the source project in your slicer, whether that's a 3MF file or a saved project, then slice and export again. While you're there, make sure the printer profile, nozzle, and filament you've selected actually match the machine that will receive the file.
Give the new export a distinct name with a date or version number so you can't mix it up with the bad copy. Then delete the truncated version from the drive or the printer's storage. If all you have is an STL, import it into the slicer with your usual settings. Our STL vs 3MF guide explains why a 3MF project makes this kind of recovery easier: it stores your settings alongside the model.
Habits that prevent failed transfers
A few routines cut down on surprises. Keep one drive or card just for the printer, format it correctly, and replace it as soon as it shows slowdowns or read errors. If you're in a hurry, avoid starting a big network upload while another print is running, because the speed limit PrusaLink describes will stretch out the wait. For long prints, copy the file to local storage first instead of relying on a continuous network stream. That's what Prusa recommends when the alert keeps repeating.
Put the printer within range of a stable Wi-Fi signal, or switch to Ethernet if your machine has a port. On the software side, organize your projects so you can always trace a G-code file back to its source. Our page on organizing CAD revisions and printing profiles lays out a simple system. Finally, if the print stopped because of a power outage rather than a file problem, recovery follows different rules, which we cover in our guide to resuming after power loss.
Sources and limits
- Prusa — Not downloaded
- PrusaLink — Troubleshooting
- Prusa — SD cards and USB drives
We organize manufacturer and community documentation; we have not measured these products ourselves. The manual for your exact model takes precedence over general guidance.
A clearer shortlist starts with your projects.
Use the free buying checklist and budget worksheet before comparing offers.