The pressure inside the vacuum hose is lower than the pressure outside the hose. If the hose is old and weakened, it'll fold up on itself. If the pressure difference is bigger than the hose is expected to be able to deal with(by some other reason) the hose will collapse too.
If someone has replaced a real vacuum hose with, say a fuel hose, that too can be a reason.
The engine itself creates Vacuum once it is running.
Removing the oil cap with the engine running causes a vacuum leak in the positive crankcase ventilation. This causes too much air to enter the cylinders at once, which results in a stalling engine.
Assuming you mean P0171, it is a lean condition Bank 1. If the engine is running okay I would look for a vacuum leak around the engine, maybe a vacuum hose disconnected or cracked. If the engine is running poorly it could be a plugged fuel filter, a faulty fuel pressure regulator or a faulty fuel pump.
no a diesel does not produce vaacuum when running. but vehicles that require vacuum for the brakes have a vaccuum pump attached to the engine to supply the needed vaccuum
you have a control vacuum leak, listen for hissing noise under dash when engine is running.
NO. When a engine is running it makes it's own vacuum. That's why there is no vacuum hose on that year regulator. It is inside of the engine.
vacuum leak, check the gasket under the throttle body for a vacuum leak. Spray some carb cleaner around the base of the throttle body while the engine is running. If there is a vacuum leak you will hear a change in the rpm's when you hit the right spot.
Quality vacuum gage is required ;-) engine at running temperature around 18 to 20 inches Hg = vacuum
Take a vacuum hose off at the intake manifold and put a vacuum gauge on the port, then read the vacuum with the engine running.
Check for vacuum leaks.
Could be,in need of a tune up, a vacuum leak, contaminated fuel (water), If we knew what year, make, model and engine more info would be available.
If water goes under a required level a vacuum can form underneath the lining which makes the whole structure unstable.