In calculating the current enclosed by an Amperian loop, one must, in general evaluate an integral of the form
$$I_\text{encl} = \int \mathbf{J}\cdot\mathrm{d}\mathbf{a}$$
The trouble is, there are infinitely many surfaces that share the same boundary line. Which one are we supposed to use?