These projects are incredibly complex that fail for a variety of reasons, most of them to do with politics, conflicting requirements, too many stakeholders and decision makers, and too many people with little to no interest in or grasp of the technology involved.
First and foremost the lesson should be that the army should have its own dedicated IT department.
Also, any company peddling 'digital transformation' should be a red flag to start with.