function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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