The last reliable reference to Dunbar is in the Treasurer's Accounts for May 1513, where he is recorded receiving payment of his pension. James died at Flodden in September of the same year. In the dislocation that followed, the Treasurer's accounts cease for a period and, when resumed in 1515, Dunbar is no longer recorded as being employed by the crown.