Sometimes the code has no documentation, sometimes it’s written in a language and environment that is no longer supported. But it always comes to us when the client has hit the ceiling. So, the division that handles 3rd-party application support is adept at pulling rabbits out of hats.
When all else fails, we sometimes patch it up temporarily while we wave a magic wand and rewrite the source code.