When I try to save the factory plan, the 4th purchase unit units is saved as a purchase unit but without info on the material.
E.g.

is saved as

and

is saved as

As you can see, the units purchasing oil and leather respectively are saved as undefined purchase units.
Here you see a factory with 4 purchase units, with 2 of them buying the same product and it is saved properly.

So it is not the number of purchase units but the number of inputs that is a problem
There are several layouts for factories with 4 or 5 different inputs, so it would be great if it was possible to save plans with more than 3 different inputs.
Some examples of factories with 5 inputs, of which only the first 3 is saved.


