Error with more than 10 000 CredentialHolders

I have developped a plugin based on the Demo Plugin.

When Milestone call the following function “public override ACCredentialHolderSearchResults SearchCredentialHolder(string searchString, int searchLimit)” to get datas from my Access Control System, it doesn’t work to get more than 10000 cards.

It works well for 10 000 cards but it seems to be a limit of size or a timeout because first it displays “Search in Progress” and then “Search Failed” when I click on my CardHolder tab in my Access Control Module.

The returned array is quite heavy because it contains all pictures so I think it’s more a problem of size than timeout !!

So have you an idea to avoid this limit ?

Thanks for your help

Do you see any errors in the logs?

Can you please tell us your MIP SDK version and XProtect VMS product and version?

Milestone MIP SDK 2019 R3 : 13.3.34.1

I’m quite new with Milestone Product so where I have to see the logs ?

Hi.

Can you please check following path? There should be logs in the folder.

[C:\ProgramData\Milestone\XProtect](file:C:/ProgramData/Milestone/XProtect) Event Server\logs\AccessControl

You did not answer the question about the XProtect you are using. What is the product and version? Please answer, it might be important.

Hi,

After Milestone Development analyzing the code, we have seen that there’s no constraint on the number of results.

For instance the developer sent a request of 50K(more than 10K), and then the response that he received was all the cardholders.

There is no 10K constraint on the card SearchCredentialHolder.

Additionally, he checked 2 more things;

Timeout => This webService has configured a timeout of 5 minutes;

MaxSize => 476.837158203125 MB

So, when you mention “The returned array is quite heavy because it contains all pictures”, he started to check how works our DemoACPlugin + DemoACServerApplication.

He’s seen is that in the DemoACServerApplication we are not returning the picture in the SearchCredentialHolders method. We’re retrieving the picture one by one, as soon as the user clicks on the cardholder from the Management Client.

So, it can be that you have extended your plugin to retrieve the pictures in the search method, and due to that you are having this issue with timeouts (5m).

Best regards,

Rie