+ Start a Discussion

Can not show error when handling export

Hi all,


I have a trigger that in siered when inserting and updating Accounts.

Every Account in my system has End_Date (datetime filed) I am checking in the trigger if the user

Is not inserting two accounts with the same End_Date.

The trigger is working just fine.

NOW, When importing many accounts the trigger does not shows error message or blocks the import!

How can I fix it?


Remark: I am using the account.addError('Error : same date account not allowed!');