You need to sign in to do that
Don't have an account?
steve_andersen
Weird DML Exception on code I have in production in other instances
I've got some Apex that gets triggered by Opportunity changes. I'm getting a weird error that I can't comprehend
I've got this code working on other servers, but with this new install I get an Update error with no helpful information. The record exists and looks fine but won't update.
Can anyone help me out with what this "assertion failed" error means? I don't think it means that one of my test assertions is failing, as it's not reporting the expected and actual values.
I also can't replicate these apex errors by manipulating data in the UI, and I have another test that does basically the same thing and doesn't cause errors.
I've ruled out governor limits, since I get no messages, and I don't seem to have conflicting triggers or workflow that is out of sequence. Just this weird DML exception.
Thanks!
20080528201313.794:Class.ONEN_TEST_Opp_AddCampaignMbrship.OppToCampaign_NotCampMbr: line 183, column 9: DML Operation executed in 180 ms
System.DmlException: Update failed. First exception on row 0 with id 006S00000029WJ6IAM; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY,
ONENLABS_Opp_TriggerMirrorPaymentUpdate: execution of AfterUpdate
caused by: System.DmlException: Update failed. First exception on row 0 with id a0SS000000002piMAA; first error: UNKNOWN_EXCEPTION, assertion failed
Trigger.ONENLABS_Opp_TriggerMirrorPaymentUpdate: line 40, column 9
Class.ONEN_TEST_Opp_AddCampaignMbrship.OppToCampaign_NotCampMbr: line 183, column 9
I've got this code working on other servers, but with this new install I get an Update error with no helpful information. The record exists and looks fine but won't update.
Can anyone help me out with what this "assertion failed" error means? I don't think it means that one of my test assertions is failing, as it's not reporting the expected and actual values.
I also can't replicate these apex errors by manipulating data in the UI, and I have another test that does basically the same thing and doesn't cause errors.
I've ruled out governor limits, since I get no messages, and I don't seem to have conflicting triggers or workflow that is out of sequence. Just this weird DML exception.
Thanks!
Like I said, I can't reproduce the error in the UI. I follow the exact steps of the test in the UI and everything works fine. I'm pretty confident the code works as expected, but I can't deploy because of this test failure.
Any advice or ideas?
Steve
More information: I've got the code in a sandbox with all tests passing and the UI behaving as I want. When I package up the code and install in production, I get the assertion error.
I burned a new sandbox yesterday, and I get the error in that new sandbox. But not in my old sandbox. And when I compare the code in the one sandbox to the other, all classes and triggers are identical.
I'm a bit stumped.
When one runs but the other doesn't, it's fine. But when the data change causes both to fire, I get the error.
I still wish the error was more helpful!
Thanks for your help.
Steve
I'm blowing up when I'm trying to update a custom object that is related to Opp. When I try to edit one of those custom object records by hand I get:
On this custom object I have a field that is used as a rollup summary to the Opp. I don't know if that has anything to do with it. deletion and recreation of the rollup summaries didn't fix it.
On this custom object I have some workflow field updates and a delete trigger. If I turn off all the workflow and I still get the Internal server error.
So now I have a custom object with only a delete trigger on it and a rollup summary field to Opp. And I get internal server error when I try to update it. When I delete the summary rollups on Opp, I still get the error.
Now I really don't know what's going on!
Steve
Here's video proof that I can blow up the platform on demand even without triggers...
Steve
Message Edited by steve_andersen on 06-12-2008 08:07 AM
Message Edited by steve_andersen on 06-12-2008 08:08 AM