You need to sign in to do that
Don't have an account?

DML currently not allowed
Logged in from the sysadmin account to another user in order to load some automatically generated sample/test data. Get this error when it tries to run a for loop in the constructor inserting FeedPosts:
"DML currently not allowed"
Will report back as I explore further...
Hi
You'll need to provide a lot more context I'm afraid - it's impossible to debug otherwise.
However, have you done a search? Check out these links:
http://community.salesforce.com/sforce/board/message?message.uid=82925
http://developinthecloud.wordpress.com/2009/11/23/dml-currently-not-allowed/
Jon
All Answers
The insert doesn't work on the admin user either.
Error from the debug log:
Hi
You'll need to provide a lot more context I'm afraid - it's impossible to debug otherwise.
However, have you done a search? Check out these links:
http://community.salesforce.com/sforce/board/message?message.uid=82925
http://developinthecloud.wordpress.com/2009/11/23/dml-currently-not-allowed/
Jon
Yep, Wes' post covered it. DML Exception in the constructor.
Fixed.