If you fill in an asset in the script.

Like :

asset("USD/CAD"); // dummy asset

Then works.