.meas command giving an error in the log file, but is fine in the test mode?

With the following schema:

 C1 N002 0 22µ
R1 N001 N002 220
V1 N001 0 5
.tran 0.02 startup
.meas tran EnergieFournie integ ( 5 * I(R1))
.meas tran EnergieDissipee integ ( I(R1) * (V(N002)-V(N001)) )

If I run it, the log file is fiving  error (like:    Measurement "energiefournie" FAIL'ed  ). But if I run each ".meas" command individually, in test mode (right clicking on the command), I get a valid result. 

What am I doing wrong ?