Q: rough idling and lost of power on 2001 Ford F-350 Super Duty

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
Truck experienced a lost of power during normal operation and then stalled. Attempts to restart was successful but the idle was running rough and there was not enough power to drive off. Fuel was checked - negative results, changed the fuel filter. Checks of the right bank valve cover connector (shaking connector), showed an improvement at times, but returned to a rough idle and lack of power. What do you think?
(1) Answer
Could be your cam adjustment sensor needs to be replaced. I have had to replace mine three times before it was done correctly