For the answer to this comment
Can you give one example of how to do this in cmd as Pieter said :
-txindex on the bitcoind command line
I do an example for my configuration bitcoin core, I using the -txindex
the command for run bitcoin
The essential bitcoin.conf configurations
## bitcoin.conf configuration file. Lines ...
gettransaction is a wallet RPC. It only works for transactions your wallet knows about. Presumably this is not the case for a transaction from 2013.
getrawtransaction is a node RPC. It works for all transactions, but needs help to find them. One possibility is to enable the transaction index (put txindex=1 in bitcoin.conf, or -txindex on the bitcoind ...