Parameter limit issue when updating multiple containers
The following error is thrown when a large number of containers are being updated:
An exception has occured whilst performing a job for adapter d5251d7d-05cc-4d35-916e-e99e06b9ffd3 job UpdateGetAllEntitiesContainers:
The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100.
This was found while configured SALES-230. Within a composite, I have an address and person connector. The address DNs are set up such that they are contained by the person object (eg. person CN=100001 with address CN=H,CN=100001). If the person objects are cleared and reimported, the attempt to update all the containers fails with the above error.
Customer support service by UserEcho
Tony, could this be similar to
IDB-451?Matt has additionally mentioned that there are 3000 containers in the DB.
From the message it looks like this is happening in UpdateGetAllEntitiesContainers, of which there is only one method in the ContainerContextHandlerBase.
This is dependant on the HashSet passed in, which is dependant on the HashSet passed in from SubmitContainerTask, and in both usages the containers passed in are in bulk - they should be paged.
I have made the container context behave in a similar manner to the entity context, in that it inserts to a dataset and then uses sql bulk copy to perform the insert.
Please let me know if it fixes your issue.
Thanks.
Tony, as part of
IDB-451you said you were able to confirm the resolution of the issue. Did your confirmation include something that would also confirm the resolution of this behaviour?I'm still seeing this in test1 with 10k entities changed.
Full exception:
I've added a #ContainerSelect temp table to the delete statement.
Assigned to Matthew to test.
I have confirmed this for the mentioned scenario of clearing the connector, performing a full import, repopulating the connector (reintroducing the containers), and performing another full import. This was for more than 3000 items, and no errors were encountered. Issue closed