Rough idle and neither fans are coming oom leading to overheating Also codes 300 ; cylinder misfire What would be the obvious setting a 171 code?
P0171 is a lean condition reported by the upstream O2 sensor. A lot of people say to replace the sensor, but that can end up being shooting of the messenger. It is plausible that a true lean condition could lead to multiple cylinder/random misfires (P0300). But your real priority is the fans and the overheating. I'd not worry about the rest until that is straight. You'll want to hope that overheating didn't warp the head / kill the head gasket which could also produce a P0300. You really haven't given much info to go on.
the rough idle and the codes 171 and 300s came before it got hot only once. No change is running. Don’t believe head is damaged. Do the fans not operating relate to 171. Or separate code for that Thanks
There are separate fan codes (P048x), and Toyota might have some special ones too. But it's got nothing to do with the lean report or the misfires. Do you have a scantool with which you can graph O2 sensor data and fuel trims? I would clean the MAF sensor and check for vacuum leaks, including around the intake manifold gasket and throttle body.