The data-analysis company aimed to use deals with startups to jumpstart its non-government business. There were some misfires. Palantir Technologies Inc.'s raison d'etre is identifying patterns hidden within mountains of data. Yet somehow it didn't spot the risks in its own investment strategy or the danger that startups might not be able to ...