Timeline for Insert Failed first error: INACTIVE_OWNER_OR_USER, operation performed with inactive user: []
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 26, 2016 at 19:02 | vote | accept | David Mycka | ||
Jun 26, 2016 at 18:58 | history | edited | Mohith Shrivastava | CC BY-SA 3.0 |
added 379 characters in body
|
Jun 26, 2016 at 18:53 | comment | added | Mohith Shrivastava | Check here developer.salesforce.com/docs/atlas.en-us.apex_workbook.meta/… | |
Jun 26, 2016 at 18:53 | comment | added | David Mycka | I have posted the code Mohith | |
Jun 26, 2016 at 18:51 | comment | added | Mohith Shrivastava | Yes you can do that by extending exception class .Post your code | |
Jun 26, 2016 at 18:51 | comment | added | David Mycka | How can i write overwrite standard error in error.csv with my custom message | |
Jun 26, 2016 at 18:51 | comment | added | David Mycka | Yes trigger is throwing error in csv.. but i want to write some custom message like please activate the user something.. | |
Jun 26, 2016 at 18:49 | comment | added | Mohith Shrivastava | So when error happens via data loader the same exception is propagated if it's a trigger. Are you doing this in trigger? | |
Jun 26, 2016 at 18:48 | comment | added | David Mycka | how that exception class would write error while dataloader error out that record in error.csv... | |
Jun 26, 2016 at 18:47 | comment | added | David Mycka | Thanks Mohith..I was not aware that we can attached code later too once question has been asked..i will check it | |
Jun 26, 2016 at 18:44 | comment | added | Mohith Shrivastava | You can use try and catch and inside catch throw exception .You will create an exception class to write your own exception .Also please see how to click on edit of your question and attach code snippets with code editor | |
Jun 26, 2016 at 18:40 | comment | added | David Mycka | i am only updating account fields from some other object..and at last i am using..List<Database.Saveresult> accountupdatedResults = Database.update(updateAccMap.values(), true);.....here is accountmap i have assigned some owners which are inactive and its throwing error | |
Jun 26, 2016 at 18:39 | comment | added | Mohith Shrivastava | Yes if you can share the code ,I can help you | |
Jun 26, 2016 at 18:38 | comment | added | David Mycka | Thanks Mohith..Could you please guide me further as i dont have control over user active or inactive..i have to assigned them to account owner,can i do something so that atleast in error.csv it will write that user should be active while i was using Database.update(updateAccMap.values(), true);...do i have to put something in try catch so that it would not throw my exception on email | |
Jun 26, 2016 at 18:34 | history | answered | Mohith Shrivastava | CC BY-SA 3.0 |