Word Definition - 功亏一篑

gōng kuī yī kuì lit. to ruin the enterprise for the sake of one basketful; to fail through lack of a final effort; to spoil the ship for a ha'penny worth of tar (idiom)