A friend of mine says that the only time he got a bad reaction from the passport person was when he showed his destination country's document, rather than for his departure (his country of residence). It seemed that the automatic look up then knew about the other document.