Does your truck start and run OK.
If so, you may have set this code while removing or installing throttle body. I would clear codes and the drive.
If not recheck connector for damaged pins,wires or loose.
I would also make sure gasket is positioned correctly and did not tear. This could cause your rough idle.