getrawtransaction in Bitcoin-Qt (0.8.5)
My guess is that getrawtransaction only works on utxo transactions which means outputs of that transactions are not spent and still kept index by the bitcoin client.