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.

Incomplete G-code transfer: symptom, likely cause, what to check

SymptomLikely causeWhat to check
Slow-transfer warning with a Continue buttonSlow or corrupted USB drive, unstable or busy networkSwap the drive, stabilize Wi-Fi, or copy the file to local storage
Print always stops at the same heightTruncated G-code fileRead the file's last line and check the layer preview in your slicer
File size differs between computer and driveInterrupted copy or drive pulled without ejectingCopy again after a proper eject, then compare sizes
Network upload crawls during a printUpload speed intentionally limited while printingWait for the current print to finish or use the USB drive
Printer can't read the driveexFAT format, locked SD card, or corrupted mediaCheck the lock switch and reformat to FAT32

Frequently asked questions

How can I tell if my G-code file is truncated?

Open it in a text editor and look at the end. A complete file finishes with your printer profile's end sequence. If the last line stops mid-move, or the slicer preview ends before the top of the part, the file is incomplete.

Can I resume a print after a slow-transfer warning?

According to Prusa's documentation, yes: after checking or replacing the source, press Continue on the printer. If the warning comes back, copy the G-code to a USB drive before printing or try a different drive.

Should I fix a truncated G-code file by hand?

No, that isn't reliable. Adding an ending won't rebuild the missing layers. Re-export the G-code from the original project in your slicer instead.

What format should my printer's USB drive use?

The Prusa Knowledge Base recommends FAT32, since its printers don't support exFAT. For drives of 32 GB or more, Windows won't offer FAT32, so you'll need a third-party formatting tool.

Why is PrusaLink uploading so slowly during a print?

The PrusaLink documentation explains that upload speed is limited while printing so the print itself doesn't slow down. This is normal behavior, not a sign of a fault.

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.

Keep exploring

A clearer shortlist starts with your projects.

Use the free buying checklist and budget worksheet before comparing offers.

Get the free starter kit