You need to sign in to do that
Don't have an account?

Update the same Opportunity in a batch multiple times via Data Loader
What happens in the following scenario:
I have a custom object, call it MDP, that is associated with an opportunity. There can be many MDP records for each opportunity. I have written a trigger that updates fields in the Opportunity when certain fields in a MDP record is modified.
The problem is that the data loader does not seem to be updating the same opportunity if two MDP records associated to the same Opportunity is updated. What I would need is each time the MDP record is updated, the Opportunity is updated. Regardless if it is the same opportunity in a batch update via dataloader. Is it possible?
I have a custom object, call it MDP, that is associated with an opportunity. There can be many MDP records for each opportunity. I have written a trigger that updates fields in the Opportunity when certain fields in a MDP record is modified.
The problem is that the data loader does not seem to be updating the same opportunity if two MDP records associated to the same Opportunity is updated. What I would need is each time the MDP record is updated, the Opportunity is updated. Regardless if it is the same opportunity in a batch update via dataloader. Is it possible?
There's nothing that precludes this, what does your trigger code look like?

Code:
You're calculating a rollup based only on the rows in the db (i assume you can't use summary fields for a good reason?), but in a batch update, you need to also take into account the other rows that apply to that opportunity that are in the batch, but not yet in the db.