Problem in View naviagtion

Hi All I am using version 8.5.1 and i am using lotus script creating

view.CreateViewNav

and getting first entry using GETFirst entry

i am getting “entry not found in index” the erro number is 4005.

due you have any idea why the error is .

I have morethan 1 lakh document in the view .

the view is categorised

thanks

somu

Subject: Corrupted View

Perhaps your view is corrupted. Try Shift-F9 to rebuild the index.