Long time ago I used to sell stuff that was used in automation. Back then projects were relatively simple with some automation sharing production lines with workers - but often the customer's managements would fantasise about fully automated production lines.
One place I worked at they developed an automatic machine which could make something like 60 of an item per minute, (one a second), and totally untouched by human hand. At first when they were bedding it in, it produced scrap at that alarming rate and then absolute disaster struck, their single customer cancelled their order. Because the machine was dedicated, it could only make that particular item, it was immediately obsolete and the massive investment and effort that had been expended to develop the machine was lost.