dimension laCommitErrors[1] if not tableupdate(2, .t., 'myTable', laCommitErrors) ** Handle error endif if type('laCommitErrors[1]') <> 'L' .... endifI was always falling into the second IF and laCommitErrors[1] was -1 and aerror returned some weird errors. I got rid of last parameter and tableupdate always succeded. So, I really don't understand why I was getting false errors or how should I have coded it.