A bid to turn a shop storeroom into two flats in Dalkeith High Street was rejected after its attempt to create outdoor space for the new tenants were branded "seriously poor".
Midlothian Council's planning officers rejected the proposal by Edinburgh-based Northfield Capital Ltd after it included no garden space or parking for the new homes.
And it described a "!lightwell" designed into the building to create natural light for the flats as not enough to make up for the lack of garden or window views.