I know this is an old post but i had this issue with my 2017 navara.
Engine light on but no code.
The code was ther but it wasnt on the ecu. He had to go in2 thw addblue menu and the code was ther.
Code was in relation to the addblue moduele. But i had a failed nox sensor. This made sence as...