I got a misfire code 304 ,now I am getting a miss fire code 306 also on 2001 Dodge Dakota

we have changed coil all plugs cap rotor and wires and after driving 15 miles the codes came on after reconecting the battery,do I need to cancel the codes with a computer.What else could it be.It also idle differently than before truck runs smooth and fine but the check engine light comes on with these codes the top end was done abou500 miles ago

Asked by for the 2001 Dodge Dakota
could be electrical issues or injector issues. seek diag and est from your mech
2 more answers
The computer is indicating you hav a misfire, that is why it is not running smooth. If you have already confirm the connections are good, then I would recommend bringing it in for professional diagnostics.
Might check exhaust manifold leak or camshaft position sensor