+ Start a Discussion
SFDC developer55SFDC developer55 

Trigger not working on dataloader insert

I have trigger on Account (before insert), it is working fine when I create an account manually but when i tried to test while inserting bulk records using dataloader it did not work..

Here is the code:

trigger  Name on Account (before insert)
{
    for(Account a : Trigger.new)
    {
        if(a.FieldName =='abc')
        {
            a.FieldName__c = 'Value';
        }
  }
}

And is there any way I can make this to work on bulk inserts...

Thank you for the help in advance.

Regards,
Paddy

Satish_SFDCSatish_SFDC
Does this trigger not execute at all during data loader inserts.
Try putting a System.debug statement in the if condition to see if the code reaches this line.

Regards,
Satish Kumar