Why doesn't the scanner see my Sudoku?

The scanner finds a Sudoku by its outer border: the thick line around the whole puzzle. If it cannot follow that line all the way around, it keeps showing Find the grid, or an upload ends with Grid not found.