Hello,
Thank you for the additional code. I've tried testing this exact Method in a test environment on my machine, but I wasn't able to reproduce the Not a single item error that you are seeing. There could be another Server Event on one of these ItemTypes line an onBefore/onAfterDelete that could also be throwing this error.
Could you try adding a debugger to your Method and stepping through the code to see what line is causing that error? You can do this by following the steps below.
Hello,
Thank you for the additional code. I've tried testing this exact Method in a test environment on my machine, but I wasn't able to reproduce the Not a single item error that you are seeing. There could be another Server Event on one of these ItemTypes line an onBefore/onAfterDelete that could also be throwing this error.
Could you try adding a debugger to your Method and stepping through the code to see what line is causing that error? You can do this by following the steps below.