You need to sign in to do that
Don't have an account?
davidesi
Problem inserting Events
I'm facing a very weird problem.
I have a class called from AfterInsert that take a list of inserted events , process them and after saves them.
If I insert a single record with workbench, it works fine, but if I insert for instance 11 records, I can see in the debug log that 11 records are inserted but If I try to click on one of the Ids that have been inserted, I get an error saying that that record doesn't exist.
Anybody can help with this?
I have a class called from AfterInsert that take a list of inserted events , process them and after saves them.
If I insert a single record with workbench, it works fine, but if I insert for instance 11 records, I can see in the debug log that 11 records are inserted but If I try to click on one of the Ids that have been inserted, I get an error saying that that record doesn't exist.
Anybody can help with this?
Which is your profile ? Try with system admin .
Please check your acess to Events .
Let us know if it helps you.
Also check whether there is any exception being thrown which could cause the transaction to roll-back.
I'm executing both cases using system administrator , and I have full access to every thing.
The fact is that is inserted only one record it works fine , and executing with the same profile - same user with multiple records it fails.