Lemma 109.31.1. There exists a domain $A$ and a nonzero ideal $I \subset A$ such that $I_\mathfrak q \subset A_\mathfrak q$ is a principal ideal for all primes $\mathfrak q \subset A$ but $I$ is not an invertible $A$-module.

Proof. See discussion above. $\square$

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).