Unable to read data from FlatFile


Hai Everyone,

I have a flatfile header and details data. Used FETCH NEXT LINE FROM FLATFILE business function to fetch each record from the file and tried to insert the same into the table. I took while loop to insert and in that loop I took one more FETCH NEXT LINE FROM THE FLATFILE to fetch next record.

But when I run the UBE, am getting errors such as " memory voilation error" or "loop will run unending" or "activeconsole.exe has stopped working"

I made sure that the flatfile is in proper format and code is perfect with delimiter validations. Please let me know the solution,if anyone had encountered the same.

Thanks in advance.