Why Can Legacy System Integration with AI Fail & How to Fix It?