Salesforce Bitbucket Sync
Asked by Sourav Kumar Mohanty:

Hello Everyone,

I am newbie to bitbucket, kindly suggest the better approach for my requirement. In our project we use Bitbucket. We have two Orgs namely prod and UAT, both the Orgs having metadata of api version 37 in the respective bitbucket repository where recently we have done all Org's metadata api change to 52. The Challenge is the repositories are not sync with Org, how can we resolve this issue.

Approach tried:

Created a new branch and try to push all the metadata to that particular branch in the pipelines we are receiving SIZE error specifically  
`"/opt/atlassian/pipelines/agent/build/build/build.xml:44: Failed to submit request to domain name/services/Soap/m/35.0/00D7Y000000H1cP for user User id.Error: {`<http://schemas.xmlsoap.org/soap/envelope/}Client>` - Maximum size of request reached. Maximum size of request is 52428800 bytes.``"`


Answers:
author: Theodora Boudale
body: Hi [@Sourav Kumar Mohanty](/t5/user/viewprofilepage/user-id/4547027),

This error occurs when someone tries to submit a request larger than 50 MB to Salesforce:

* [https://help.salesforce.com/s/articleView?id=000322505\&type=1](https://help.salesforce.com/s/articleView?id=000322505&type=1)

This is not specific to Pipelines, a similar error will occur if you try to make the same request outside Pipelines, like in the following case:

* <https://community.atlassian.com/t5/Bamboo-questions/Salesforce-Bamboo-Maximum-size-of-request-is-52428800-bytes/qaq-p/1040582>

The first step would be to figure out why such a large request is being made and whether it is done on purpose or by mistake.  
If it is done on purpose, you may need to find a way to restrict the size of the request or split the request into several smaller ones, each within the Salesforce limit.

Kind regards,  
Theodora

comments: author: Sourav Kumar Mohanty
body: Hello Theodora,

Thanks for the reply.

Is it possible to increase the size in salesforce, if not what the other way to tackle such scenario.

We have a requirement where we need to sync our org(both UAT and Prod) to respective repositories in bit bucket.

Previously we had metadata of api version below 40 in both the Org repositories in bit bucket, recently we made all the metadata api version updation to 52 so we need to sync as per org metadata to respective repositories in bit bucket.

Is there any reference where we can create the repository from scratch for the Org will also be helpful for my requirement.

Thanks


author: Theodora Boudale
body: Hi [@Sourav Kumar Mohanty](/t5/user/viewprofilepage/user-id/4547027),
> Is it possible to increase the size in salesforce, if not what the other way to tackle such scenario.

I'm not aware if it's possible to increase the request limit, it's best to contact Salesforce support team regarding this, give them more details on the requests you are making and also ask for advice specific to your use case.

If the large request is being made on purpose, then I imagine that you may need to find a way to restrict the size of the request or split the request into several smaller ones, each within the Salesforce limit. I believe that the Salesforce team is best equipped to help you with this, since it concerns their product.
> Is there any reference where we can create the repository from scratch for the Org will also be helpful for my requirement.

If you'd like to create a new repository in Bitbucket Cloud you can check the following doc:

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-your-repositories/>

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud