The last thing the city needed was a snafu to tarnish its reputation in full view of well-heeled visitors from around the world.