I have found the following exercise in an English book:

.....Julia ever....seriously ill before her trip to India last year? (be)
The correct sentence would be: Had Julia ever been seriously ill before her trip to India last year?
I'd like to know, though, why the use of the present perfect in this situation is incorrect. I assume it may be something about the time indicators. Thanks in advance.