Skip to main content

Questions tagged [patch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

How can I delete a release version of a 2nd Generation Package in Salesforce?

Our 2nd Generation Package recently passed security review under the version '[email protected]'. Subsequently, we made minor changes to the package, including updating icons and modifying objects. ...
Ashish's user avatar
  • 1
0 votes
1 answer
115 views

Unable to create the Patch Version for the Second Generation Managed Package

Unable to create Patch Version: This is the error: UNKNOWN_EXCEPTION : UNKNOWN_EXCEPTION: Managed Package Patch Modification Exception: A change was made to the patch release that will change the ...
S1th's user avatar
  • 143
0 votes
0 answers
80 views

Create a Connected App in Patch Org

I am trying to streamline our patch delivery process using first generation packages. I planned to write a CI/CD action to deploy changes to the patch org but I ran into an issue when creating a ...
Zack Walton's user avatar
  • 1,626
1 vote
1 answer
24 views

Workaround for Salesforce issue W-13927439 preventing upload of a managed package

This known Salesforce issue (ref: W-13927439) is preventing us from uploading a patch to our 1G managed package. The suggested temp workaround to "remove potential affected components from the ...
Jelle van Geuns's user avatar
2 votes
0 answers
123 views

Package version creation failed Invalid type: EntitySubscription

I am getting the below error when I am trying to create a patch version. Package version creation failed with an unknown error. Invalid type: EntitySubscription. This Sobject is available in the ...
Saurabh's user avatar
  • 27
2 votes
1 answer
377 views

Can I update custom fields in my managed package in a patch version?

I have some custom fields in my 1GP managed package that I need to change in various ways as part of a patch release. Can I: Change the number of decimal places in a numeric field? Change the length ...
Phil W's user avatar
  • 37k
1 vote
0 answers
88 views

Unable to create a new version of a 2GP package depending on an Ancestor

I want to create a new version of my package every time we try to do so we have the same errors: Account.XXXXX__c: The entity: Account does not have history tracking enabled Contact.XXXXX__c: The ...
DarkFlow's user avatar
2 votes
0 answers
255 views

REST API patch allows me to write invalid picklist values to Opportunity.StageName

After running this... curl -X PATCH "https://custom.my.salesforce.com/services/data/v56.0/sobjects/Opportunity/0060900000OWbmEAAT" \ --header 'Authorization: Bearer INTENTIONALLY_REMOVED' \...
nstuyvesant's user avatar
1 vote
1 answer
1k views

How can we upsert a record in the object, querying by a particular field?

How can we upsert (insert if not found, update if found) a record in the object, querying by a particular field (in our case: UserID__c)? We tried to PATCH the following request URL: $userId = $_POST['...
Platoscave's user avatar
3 votes
1 answer
356 views

Resubmit for Security Review without Patches

I am working for an existing AppExchange ISV Partner that missed the deadlines for Security Review resubmission. When that happens Salesforce is not only taking your Listing down but also deactivating ...
Robert Sösemann's user avatar
2 votes
1 answer
78 views

2GP Patching Fails Due to Missing SalesProcess Value Even Though Same Code Packages Fine

We've been trying to patch with 2GP for a few months now but we're constantly hitting errors even when the only change is a comment in an apex class. Many errors were around reports so to try to get ...
Shane Bird's user avatar
1 vote
1 answer
1k views

Salesforce REST API not allowing to create records by using a reference field

I have 2 custom objects: custObj1 & custObj2. It is a one:Many relationship between the 2. I have set up a lookup relationship under custObj2. Wallet_Address__c is on both objects and is the ...
YouthDev's user avatar
4 votes
1 answer
364 views

2gp: Package ancestry for patch versions

Let's say we've just released 2.0 version of our 2gp package. And now we're releasing patch versions (one after another), e.g 2.0.1, 2.0.2, 2.0.3 and so on. The question here: is there any difference ...
wesaw's user avatar
  • 3,130
4 votes
0 answers
40 views

2gp Patching is Failing Even When the Only Change is a Comment [duplicate]

I'm currently trying to get patching working for our 2gp managed package but it's consistently hitting the same set of errors around report folders and report filters (see screenshot). Now I know what ...
Shane Bird's user avatar
0 votes
1 answer
2k views

Receiving no response from Salesforce on patch API call

I am sending a Patch API Request to Salesforce to update one of the accounts in the Org, through postman. the endpoint to which I am sending the request looks like below. https://instanceUrl/services/...
Akshay Vasu's user avatar
0 votes
2 answers
1k views

Update Salesforce record with where condition from field

We have custom object where we have custom field as status as open, inProgress and close. We are creating this custom object record using connected app via REST API. We are updating the fields as we ...
Sandeep Sharma's user avatar
2 votes
1 answer
49 views

How to migrate bug fixes in Released Managed package

I Created Released managed Package in DEV ORG, and Installing the Package in New DEV org and testing the Functionality. I Encountered a issue in Installed org, Same issue has replicated in Development ...
SFDC_Beginner's user avatar
3 votes
1 answer
492 views

2GP managed package: cannot create a patch release

We have an "extension" package that integrates our managed 1GP with a third party managed 1GP. This "extension" package is realized as a managed 2GP. We hit a problem when trying ...
Phil W's user avatar
  • 37k
0 votes
1 answer
1k views

Platform events: Correlation Id (without adding new field to event payload)

We are trying to build some logic to track whether all high-volume published events have been successfully delivered to subscribers, and catch those that were not delivered for some reason to ...
wesaw's user avatar
  • 3,130
1 vote
0 answers
683 views

REST API Content builder updating assets results in 404

REST API Content builder updating assets results in 404 I'm trying to migrate to REST API and according to SFMC documentation in order to update of an asset using PATCH I should use https://...
Joseph's user avatar
  • 81
-2 votes
1 answer
393 views

Not able to update account using rest API

I am trying to update account record using Rest ,but i am getting error **CALLOUT_RESPONSE [17]|System.HttpResponse[Status=Bad Request, StatusCode=400]** Code global class AccountUpdate{ static ...
sandy's user avatar
  • 15
5 votes
1 answer
790 views

Can an @AuraEnabled method be added in a managed package patch release?

I have a managed package with an LWC component. I need to enhance this LWC in a patch to allow it to receive some additional data during its initialization, which is done using an @wire. The data ...
Phil W's user avatar
  • 37k
0 votes
1 answer
453 views

Receiving an abnormal amount of unexpected errors when calling PATCH request

I'm not sure what is causing these errors as when I single them out and run them again, they run just fine. Here is the response log: [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ...
NMALM's user avatar
  • 171
2 votes
1 answer
2k views

Cannot deserialize instance of date JSON_PARSER_ERROR when no date present while patching

I am working with a Google Apps Script to upload data into Salesforce. Everything works except I am running into this error when a date is not present in a date field, which happens only occasionally ...
NMALM's user avatar
  • 171
0 votes
1 answer
571 views

User Upsert View All Data error through api

[{"message":"ViewAllData or ViewAllRecords required to upsert by standard field","errorCode":"INSUFFICIENT_ACCESS"}] I'm trying to upsert to an existing record by the ID using a PATCH call. Closest ...
user2667966's user avatar
8 votes
1 answer
607 views

Managed package patches - can a public inner class be added?

In the Create and Upload Patches documentation, there is no mention of restrictions on adding inner classes to an already packaged top-level class. The restrictions listed are: You can’t add package ...
Keith C's user avatar
  • 136k
0 votes
2 answers
1k views

Impossible to patch Account

Is there a configuration to allow patching in SalesForce ? I tried to patch the Account on Postman, no success. I also tried on Workbench, no success. My Url (on workbench): /services/data/v47.0/...
Benoît S's user avatar
0 votes
1 answer
6k views

PATCH request, always get 404 Not Found response

I am trying to update a value on my Salesforce record and integrate the date in another system using the Rest API. I am unable to do this using the PATCH request workaround in apex. Booking__c ...
Muhammad Aqeel's user avatar
2 votes
3 answers
12k views

Is it fine to get '204 No Content' in PATCH method

I am making a PATCH request to update a contact in Salesforce via API. The resource seems to be updated fine, but it returns me 204 No Content in POSTMAN. To my knowledge, it just means that there was ...
Student's user avatar
  • 565
1 vote
0 answers
51 views

Apex Code: Distinguish Package Patch Org vs Package Major Org somehow

Is there any way to figure out at Apex code level whether org we are currently connected to is a Patch org or a Major Package org? Basically we need a way to distinguish programmatically between these ...
wesaw's user avatar
  • 3,130
0 votes
2 answers
4k views

PATCH Issue - {"Message":"The requested resource does not support http method 'POST'."}

I have a callout that is having an issue with it's POST. I have seen a couple of work arounds for this issue but none of them seem to work with my integration. req.setMethod('POST'); req.setHeader('...
Olivia's user avatar
  • 3,471
1 vote
0 answers
86 views

How to work with patch orgs in Einstein Analytics apps

I think Einstein Analytics apps are incompatible with Patch orgs. Why that? To develop our software we build Einstein analytics apps and dashboards. We learned it the hard way that we cannot add those ...
Robert Sösemann's user avatar
0 votes
1 answer
403 views

Correct HttpPatch and correct test for it

I need to update a right record with ExternalID = Id of inserted record. And I try to check this field (ExternalID) in SOQL, but get an error System.QueryException: List has no rows for assignment to ...
user60684's user avatar
  • 163
1 vote
1 answer
515 views

Remote Site Settings are deactivated in Patch Org

I recently found out that when i create a patch org from packaging org, Remote site settings in patch org populate as deactivated. I was not aware of this and i released a patch. Now when i upgrade ...
Mr.Frodo's user avatar
  • 5,812
3 votes
1 answer
1k views

How to send a PATCH HTTP Callout from Apex to Salesforce Tooling REST API

BACKGROUND I using Apex to get a list of FlowDefinition and would like to update the activeVersionNumber via using a PATCH request. QUESTION How can I achieve this using Apex if it does not support ...
Robs's user avatar
  • 9,396
1 vote
1 answer
2k views

HTTP Method 'PATCH' not allowed. Allowed are POST,DELETE,GET,HEAD

I have created a method to update the records in a case. @RestResource(urlMapping= '/FieldCases/*') global with sharing class RestCaseController { @HttpPatch global static String caseUpdate(...
gs650x's user avatar
  • 2,680
2 votes
1 answer
805 views

Managed package : can I create a patch for previous version major package

Let's say I have created a major package 1.2.0 and have added some new functionality with new components. I also have a package with version 1.1.6 without the new components and functionality. For ...
Yogesh D's user avatar
  • 590
1 vote
1 answer
822 views

Is there a way to do PATCH request with Marketing Cloud AmpScript or SSJS?

In Marketing Cloud AmpScript and SSJS, there is are no references for PATCH request. I wonder if we are able to make PATCH request? I'm trying to update a mobile connect record and I'm able to do so ...
tkhuynh's user avatar
  • 211
1 vote
1 answer
69 views

PATCH Service with Only Changed Data

I'm trying to come up with a solution to build a PATCH service where the external service will only be patching data that has change in their external system, we want to do this to to limit the ...
EricSSH's user avatar
  • 4,344
3 votes
0 answers
458 views

How to find the Salesforce patch version of a scratch org?

Known issues such as this one lightning:recordEditForm does not display fields from standard objects when in create mode list the instances that the fix has been applied to e.g. CS11 or NA6. But I'm ...
Keith C's user avatar
  • 136k
1 vote
1 answer
201 views

Managed Package Patch: Is creation of helper js allowed for existent (already in patch) aura component?

We have a lightning component along with js controller and apex controller in our managed package patch. Now we need to introduce helper js for this already existent component. From my perspective ...
wesaw's user avatar
  • 3,130
2 votes
0 answers
113 views

Managed Package: Detect from post install script if it's patch or major version

When our managed package is installed in subscriber org, we need to populate some custom settings from post install script. But different data should be inserted for major version versus patch version ...
wesaw's user avatar
  • 3,130
2 votes
2 answers
587 views

Managed Package Patch: Is new label creation allowed

It's mentioned that addition of new artifacts is not allowed in the scope of patch changes for managed package. The question here is - does label creation considered to be an addition of new artifact? ...
wesaw's user avatar
  • 3,130
2 votes
0 answers
64 views

Managed Package: Code validation against patch org before actual deployment there

After releasing main version of our managed package, we've decided to go ahead with bug fixing using patch org. It's well known that patch org doesn't allow any addition or removal of artifacts. But ...
wesaw's user avatar
  • 3,130
0 votes
2 answers
2k views

Salesforce REST upsert for externalId cause DUPLICATE_VALUE error

I send next upsert request to Salesforce: PATCH /services/data/v41.0/sobjects/Task/uuid__c/a22ac4d6-e2c0-4e53-898d-ea1d0c807775 HTTP/1.1 Host: **********.my.salesforce.com Content-Type: application/...
KorbenDallas's user avatar
5 votes
0 answers
135 views

Process Builder namespace error in Managed Package Patch

I am currently having a block around a problem with the process builder in a managed package, specifically when trying to upload a patch. Basically, the process builder seems to append the package ...
P. Lapointe's user avatar
1 vote
1 answer
285 views

Marking field as External Id in managed package patch org

Can we mark a field as External Id in a patch org? I need this so that the field will be indexed.
ajinkyah's user avatar
  • 751
3 votes
1 answer
952 views

Is there a Patch release schedule? Can I request my org be upgraded to the latest Patch?

I recently discovered a bug that makes it impossible to deploy subscriber triggers on Platform Events. In my sandbox environment, the bug appears to be fixed. Yay! Unfortunately, that patch has not ...
Adrian Larson's user avatar
  • 151k
2 votes
1 answer
337 views

Track patches deployed in Salesforce

Recently we have asked Salesforce team to look into one issue specific to one org. They have deployed a patch for same in that org. Is there any way, we can track the patches deployed by Salesforce ...
RSG's user avatar
  • 412
1 vote
1 answer
83 views

Is patching a managed package with a runtime dependency on other package impossible?

I need to create a patch release of one of our managed packages and have created the patch org. But that patch org did not include the two managed packages present in the normal packaging org and when ...
Keith C's user avatar
  • 136k