Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bulk]

The tag has no usage guidance, but it has a tag wiki.

1
vote
1answer
40 views

How to enable Bulk API v2.0

We are loading data into Salesforce from Informatica and have enabled Bulk API option. But in the Salesforce Batch status pages, we see that v1 of the Bulk API is being used. We are using 41.0 ...
0
votes
1answer
30 views

Trigger is only updating one record per batch

I have a trigger that creates an AccountTeamMember object every time there is an update to an Account_Ownership__c object (this is a custom object that we've created in house to act more in line with ...
0
votes
0answers
10 views

In Progress Batches of a bulk job using V2 Bulk APIs?

How can we get "In Progress" Batches of a bulk job using V2 Bulk APIs? We can get this info with V1 bulk APIs B
4
votes
1answer
51 views

Bulk API v2 Get Job Status Failing - InvalidBatch : Field name not found

I've been beating my head against the wall of the Salesforce Bulk API v2.0 for a couple of weeks now and I'm at my wits end. I've been able to use Postman to test most of the calls and they appear to ...
0
votes
1answer
16 views

Bulk import / update data for Partner Community license users [closed]

Is there any way partner community users can bulk update the data back to salesforce? Please advise if there is any tool available that can help. More details - The partner users are the vendors that ...
2
votes
1answer
57 views

Can I use test.loadData() with more than 10K records?

I'm writing a component to handle CampaignMembers, and it will be common to have more than 10k CampaignMembers. So I'm writing my SOQL to get the campaignMembers in batches of 10K, appending them to ...
0
votes
1answer
66 views

MassEmailMessage and “Too many Email Invocations: 11”

I try to test bulk-scenario, but there is an error msg "System.LimitException: Too many Email Invocations: 11". Can I use MassEmailMessage or I need to use only SingleEmailMessage with adding it to ...
0
votes
1answer
72 views

how to update 200 records at a time + SOAP API

I'm writing Java program which use enterprie WSDL to upsert approx 20,000 records in Salesfore. This program will run every night. I'm able to write a program which upsert one record a time, using ...
0
votes
1answer
22 views

JSON response parsing in batches & session id handling using RESTful-BULK API [closed]

As of now i can see, Bulk API samples in JAVA using input as CSV files. but i need an example using JSON input with Bulk Rest API to send the data from java application to salesforce. if any body has ...
0
votes
1answer
31 views

Sending email from Trigger Not working fine

I have created a trigger that is supposed to be sending emails to the contacts on their update, based on certain criteria. It works fine for individual records, but on bulk testing, it is sending all ...
0
votes
1answer
23 views

Can I get assistance on how to set up Bulk/Batch insert?

I've found documentation on Batch Apex (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm?search_text=batch) but I'm having trouble parsing through it ...
7
votes
1answer
78 views

Bulk Delete operation in trigger does not split the data in chunks of 200

As far I know, while processing bulk operations in Trigger, the data is split in chunks of 200 per batch. I have around 40K accounts in org and I wanted to delete around 1000 of them. To understand ...
0
votes
1answer
58 views

Trigger Using The Incorrect Account ID in Bulk Updates

I have a trigger and a class that is working as intended if records are saved individually. When a record is updated, that record should lookup to the associated account's monthly goal for the correct ...
1
vote
2answers
215 views

How to avoid two nested for loops in trigger code

I have update trigger code in salesforce.while I am writing update trigger code between two different objects.I am facing issue with two nested for loops in trigger code.For Bulkification in trigger ...
0
votes
1answer
223 views

Java - Creating BulkConnection object with Oauth token

I have successfully been able to create a bulk API connection with the following code that calls the SOAP auth endpoint: ConnectorConfig partnerConfig = new ConnectorConfig(); partnerConfig....
0
votes
1answer
500 views

Bulk API 2.0 ---ClientInputError : LineEnding is invalid on user data.

getting error while inserting account using Bulk API 2.0 using workbench ClientInputError : LineEnding is invalid on user data. Current LineEnding setting is LF Csv Data Name,Description,...
2
votes
1answer
520 views

large bulk insert/delete using jsforce

When I'm trying to insertBulk a lot of records using jsforce, only 10k records get inserted (single bulk job is being registered). The same happen with bulkDelete, when piping query result to ...
0
votes
1answer
44 views

Batchable Apex and Limits

I am confused on the wording of the documentation on Apex Batch Class: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm I have my batch class querying ...
0
votes
1answer
190 views

Bulk Future Webservice Calls in Trigger

Is it possible to bulk insert data, that will fire an after trigger, that calls to a web service, and have the web service bulk update each of the records? I know I am running into a number of issues ...
0
votes
1answer
103 views

using BULK API to download AccountContactRelation

Is it possible to do so? using BULK API to download AccountContactRelation I have a code already working and can download custom and standard objects, however when I try to download ...
0
votes
1answer
152 views

Salesforce Bulk API Upsert

Iam using Salesforce Bulk API to upsert records from my application to salesforce. I have a confusion in Upsert.Now I already have a account named XYZ in salesforce .I create an external id as ...
0
votes
1answer
315 views

Process Builder Bulk Scheduled Actions Not Working

I have a fairly simple Process Builder where, if leads meet certain conditions, we will re-run the assignment rules. This is done with a scheduled action 0 Hours After LastModifiedDate that calls an ...
1
vote
3answers
108 views

Best Practice for Bulk Lead Uploads with Triggers

I have 5 different triggers calling out to different API services (I am using @future callouts) every time a new lead is added to Salesforce. My concern is that when I bulk add say 500 leads to ...
0
votes
2answers
317 views

Overlap dates in Trigger bulk

I will insert one Object by Dataloader with many records. I want to create a trigger that prevent insert and updates with overlap dates. Now i have double for loop to compare records dates. Is ...
2
votes
3answers
3k views

Process builder and lack of bulkification

What is a valid robust use case for Process Builder when doing record updates? I've been running into an issue recently where every record update causes 1 SOQL and 1 DML per record which meets the ...
0
votes
1answer
117 views

SOQL limits in andFinally TriggerHandler

1)Is it a good idea to keep a list or map of ids of the affected records and passing to gateway class method called in andFinally which runs a SOQL if necessary (like for child records)? 2)If this is ...
1
vote
1answer
196 views

How to query more than 800 fields in query using Bulk load query

I'm working in a custom backup application using Mulesoft, basically I want to make a full backup of all custom sobjects of different Salesforce instances. The main issue is I can't create a BULK ...
0
votes
1answer
418 views

Updating child records using bulk API

Can we create the child record of a parent object using the Bulk API. I am trying to use the bulk API and I want to create all the child record of a parent record. Is it possible through using bulk ...
0
votes
1answer
343 views

How to bulk update all profiles field level security for a custom field created via metadata api, apex code?

I have created few custom fields via metadata api, but the field security by default is invisible. My request is to help provide apex code to update the field level security for all profiles at the ...
0
votes
1answer
158 views

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, LineItemCreation: maximum trigger depth exceeded

I have created two triggers to affect the opportunity line item and opprtunity. Keep getting thrown that error I'm assuming i haven't bulkified my trigger correctly, was wondering if someone could ...
3
votes
1answer
507 views

Bulk API - Upload documents (files and URL) through CSV

I have tried uploading files through CSV using Bulk API's createBatchWithFileattachment() call. It basically goes like this: createBatchWithFileAttachments(JobInfo jobInfo, InputStream batchContent, ...
0
votes
1answer
280 views

Static Resource in trigger

I have written the static resource inside the for loop of sending the email using apex trigger,For that i have declared the static resource manually and accessed I need to bulkify and we have to ...
1
vote
2answers
286 views

Retrieving status from bulk job load?

Is there any way to get the status of the bulk job load using job id for each job via apex?
0
votes
1answer
150 views

Required fields are missing (Bulk API)

I'm trying to upsert a new Contact record using the Bulk API and it's returning the following error: [{"errors"=> [{"fields"=>["DDA_External_Id__c"], "message"=>["Required ...
0
votes
2answers
947 views

Failed: InvalidBatch : Failed to process query: FUNCTIONALITY_NOT_ENABLED: Foreign Key Relationships not supported in Bulk Query

I am getting below error on running bulk query.Is there any way i can get result in bulk query. Failed: InvalidBatch : Failed to process query: FUNCTIONALITY_NOT_ENABLED: Foreign Key ...
0
votes
1answer
23 views

How to add new custom fields to already existing reports and dashboards in bulk

I was just wondering if there is a way of adding a couple of (new) custom fields to already existing reports IN BULK instead of manually selecting (each report) to then add my new custom fields in ...
0
votes
1answer
45 views

Need help to update cases in bulk

I am trying to update cases in bulk referring to a question here i am trying to run a script via execute anonymous to update old cases in bulk, but all the cases are being updated with the response ...
0
votes
1answer
32 views

Periodically generating CustomObject entries

we have created a CustomObject MonthlyItem as child of Contract (Master/Detail Relationship). Now we want to generate new MonthlyItems at the end of each month for the next respective month. ...
0
votes
1answer
39 views

I have a trigger and I am freezing at working with more than one record on Custom object

My task is I need to count number of times a record has been edited using Edit button after record has been created. For this I created a field called Edit_Counting__c (Number Type) and also created ...
3
votes
1answer
321 views

Exporting large set of data out of Salesforce and integrate with third party system

I am implementing for an approach to integrate from Salesforce to our 3rd party system. Usually our customer has a large set of Contact data and they want to integrate to our system. Meanwhile, our ...
0
votes
1answer
38 views

I have a trigger and I am freezing at working with more than one record on Custom object MapTesting__c

My task is I need to count number of times a record has been edited using Edit button after record has been created. For this I created a field called Edit_Counting__c (Number Type) and also created ...
1
vote
1answer
55 views

Why My Apex Trigger doesn't support Bulk Upload (Batch>1)

May be somebody can explain me. Story: I have a Separate Custom Object for SIC codes (SIC_Lookup__c). It is linked to Account Object with a [Account].SIC_LkUp__c Look Up field. I want: When standard [...
1
vote
1answer
261 views

how to mass update to custom fields (which is in custom object)description

Wondering how to update custom fields description(which is in custom objects) as a bulk update. They are around 500 in a Excel file. Is there any mass update we can do instead of doing it manually. ...
2
votes
0answers
106 views

Salesforce-bulk authentication issue

I'm trying to login using the Bulk API with the Python interface salesforce-bulk by: bulk = salesforce_bulk.SalesforceBulk(username=userName, password=p) This gives an error AssertionError: Couldn'...
1
vote
2answers
62 views

Bulkify SOQL-Query in Trigger to search for duplicate objects

My trigger fires on my CustomObject ProductionOrganizer__c and searches leads with the same E-Mail or same LastName && Company (The object therefore has a field for email, lastname and company)...
1
vote
1answer
749 views

How do I give access to View Bulk Data Load Job Details on a read only profile

I need to provide access to View Bulk Data Load Job Details on a read only profile is that possible and how? please advice and thanks!
3
votes
3answers
487 views

Bulkifying “SELECT COUNT()” in FOR-Loop

My code updates a field in related records (Contacts) of a custom Object (ProductionOrganizer__c) on an "after update"-Trigger. In this process I add all removed lookups from Trigger.oldMap to Map<...
1
vote
1answer
150 views

Best way to bulk update a lot of single fields?

I apologise about the title. Couldn't phrase it well. I have this page with lots of rows. Each row has an input field representing a value of a sObject. Once a user changes a value into a field I ...
0
votes
1answer
447 views

Bulk Testing with Static Resources

Our team is integrating static resources into our unit tests and were not sure about bulk testing. I have a couple of questions: Would bulk testing be done through code or through adding additional ...
0
votes
1answer
29 views

Need design help - weservice Real Time import of data to Salesforce and export as excel

Need to build export to excel functionality on salesforce but the tricky and imoortant part is that data resides in some other cloud system not salesforce. I have nearly 1 Million records in the ...