Serial mode for Salesforce Bulk API

When I’m doing case inserts via the Salesforce bulk api activity, with enough volume I see an error message "UNABLE_TO_LOCK_ROW:unable to obtain exclusive access to this record "

Per the Salesforce forum, the resolution of this would likely be to run the batch API in serial mode. Is there any way to do this with the UIPath Bulk API activity? Or some other way to do this batch job?

Hello @cfvenedam!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

Hello Charles,
In this movie, I show how my activity can way for the results from Salesforce Server:

Thanks,
Cristian Negulescu

1 Like

Cristian,

I see how you leverage BIG DATA activity, however, it does not answer the question regarding serial vs parallel, nor how you handle issues that may arise, such as row lock issue in the original question. The standard UiPath Salesforce Bulk API call in the package does not provide for setting serial vs parallel or batch size limits. These are settings that we are looking to modify.

Thanks,
Chris

Hello Chris,
I check the Salesforce Documentation now and for my Component, I use these commands:
/services/data/vXX.X/jobs/ingest

and the documentation is here:

and the important stuff is here:
ConcurrencyModeEnum For future use. How the request was processed. Currently only parallel mode is supported. (When other modes are added, the mode will be chosen automatically by the API and will not be user-configurable.)
I hope this will help you and understand Why I don’t have these settings in my component configuration.
Thanks,
Cristian Negulescu

Thanks for the quick reply! I will take a look at this information.

1 Like