My agent loved my first novel. It was why she signed me, after all. She expected it to sell. No agent would sign an author unless they thought their book would find a publisher — remember, the agent only gets paid when it sells, so that’s what they’re asking themselves when they read an MS. Can I sell this?
As for why it didn’t sell when it was first sent out, it’s hard to say. Individual tastes, just not what anyone happened to want then, an imprint having already bought something too similar? It was also very short in a way that was less easy to sell then.
In terms of timelines, I signed with an agent in May, worked on edits with her over the summer, it went out to editors in September and didn’t sell. It was another two years before my next novel sold. I don’t write fast, and my first drafts are very long and edited down. It was five years after that, and two novels later, that a revised version of my first one sold.
I have other complete or near-complete manuscripts in a drawer too. You have to be ready to jettison stuff that’s not working for whatever reason, whether it’s a subplot you love or a 100,000 novel. I’m very particular whose feedback I take on board. I have two novelist friends who are my first readers, plus my agent, obviously. If they’re all saying the same thing, I listen.