Skip to Content

How to avoid 5081 error when using AdsGetKeyNum

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...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 08, 2018 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

    Add comment
    10|10000 characters needed characters exceeded