Clearing the fault code will not fix it if there is an actual fault. Put the diagnostic back on and see if the fault code has reoccurred. Throttle position sensor and/or throttle body and associated wiring could be faulty. Need to dig deeper.second fault was throttle out of parameters. That was cleared but neither made a difference to running.