Skip to Content

How to avoid 5081 error when using AdsGetKeyNum

Feb 01 at 11:30 AM


avatar image

I'm using a TAdsTable to browse through some data. It's filtered by range start and end. I'm using a column with a running number of the items. This is filled by extended function AdsGetKeyNum.

When deleting a record from that list by another rouinte within my program the programs interrupts with "Error 5041: The requested object was not found. Key not found.". This only occurs when using ADS Server. With ALS the error doesn't occur and the deleted records just disapears frm the list (as intended).

I'm using Delphi 7.1 and ADS Yes it's outdated but perhaps anyone has an idea anyway...

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Michael Loop
Feb 08 at 01:37 PM

Maybe your table files are located in a folder that the current user has permission to access but the SYSTEM user or other ADS service account owner does not.

Mike Loop
Senior Support Engineer
SAP Product Support

10 |10000 characters needed characters left characters exceeded