Skip to main content
Nov 17, 2019 8:07 AM UTC
Question

max size 500 for DeleteDataTableEntries ?

Hi,

Just found that DeleteDataTableEntries can only delete 500 entries as most , but there is no parameter to control it.  Executing the service one more time, and it will delete the next 500 entries.  Is it a correct/designed behavior ? 

 

Thingworx version:  8.4.4

 

Regards,

Sean

4 replies

Nov 18, 2019 1:40 PM UTC

@seanccc This is a known issue. The cause of this issue is 

  • FindDataTableEntries() does not currently accept a maxItems parameter, and as such defaults to a limit of 500 results returned.
  • DeleteDataTableEntries() calls FindDataTableEntries() behind the scenes, and as such is subject to the same 500 result limit.

The solution to this issue has been provided in Thingworx 8.5

 

Thanks,

Vibhuti

 

Nov 18, 2019 8:21 PM UTC

There is a purge service available as well I believe. If you can define what you want to remove based on timestamp.

seancccAuthor
Nov 20, 2019 3:07 AM UTC

@PaiChung ,

 

I need to remove by the data table's key,  not timestamp. 

 

Regards,

Sean

Nov 20, 2019 1:28 PM UTC

If you can't specify the maxItems parameter then the only way to do more than 500 is to do it in the persistence layer directly.