Passport renewed, CPB i94 website giving error record not found

When im entering the details at CBP web site with my new passport number, It is giving the below error.

The travel document information that you entered cannot be validated with U.S. official travel records. Please verify that the information you have entered is correct. If we are unable to verify the information, you will need to apply for your I-94 at a port of entry.

Do i need to enter my old passport number instead of new passport number?

Which passport did you use for your last i94?

Your new renewed passport details are not update automatically by CBP website.

They connect your new passport with i94 only when you get a new i94.

So, in this case, you should enter your old passport on CBP website.