Linked Questions

4
votes
4answers
8k views

How to insert a record and then do callout? [duplicate]

I have a visualforce page where i get a serial number and making callout to get the related information from external system on click of a button. Before making the callout i need to insert a record ...
0
votes
0answers
78 views

How to fix callout error — You have uncommitted work pending. Please commit or rollback before calling out? [duplicate]

I'm doing an upload attachment to AWS, but I'm getting this error -- 'You have uncommitted work pending. Please commit or rollback before calling out' How do I fix this? @AuraEnabled public ...
0
votes
0answers
53 views

Performing multiple operations on same record in same transaction [duplicate]

I am trying to do three operation using same record. First Operation: Set ContentDocument isArchived field to false. Second Operation: Grab contentdocument by calling REST API Endpoint. Third ...
0
votes
0answers
34 views

Webservice call out - Uncommitted work pending [duplicate]

I have batchable class that makes the web-service(REST API) callout to remote service. In developer sandbox, it is working. In fullcopy sandbox, it is NOT working and giving following error during ...
0
votes
1answer
34 views

First error: You have uncommitted work pending. Please commit or rollback before calling out [duplicate]

I am getting this error while running the batch. Any way to fix this. thanks global class FileImpoLog implements Database.Batchable<sobject> { global Database.QueryLocator start(...
0
votes
0answers
25 views

Batch Callout Issue [duplicate]

I am receiving the below error when the batch is executing. This is not happening all the time. This happens only at certain times. uncommitted work pending. Please commit or rollback before ...
10
votes
5answers
14k views

System.CalloutException: You have uncommitted work pending. Please commit or rollback

I am sending only a single HTTP Request in Batch but still facing error System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out My test code is @...
8
votes
3answers
23k views

how to solve callout error? You have uncommitted work pending. Please commit or rollback before calling out

I have written inline Vf page to update the record value. The values are coming from a web service. While updating the record the detail page redirected to VF page. But the record was committed in the ...
6
votes
1answer
11k views

System.CalloutException: Unable to tunnel through proxy. Proxy returns “HTTP/1.0 404 Not Found”

While trying to call REST web service, i am getting callout exception while doing authentication. follow is the Code spinet, ulr and token is updated for this example. Http h = new Http(); ...
4
votes
3answers
759 views

Confused by CalloutException

I have a trigger on Account and Opportunity - both do a callout to the Google Geocoding API and then update itself using a future method. Now I also want to send an email before the update if certain ...
2
votes
2answers
5k views

You have uncommitted work pending. Please commit or rollback before calling out error

I see similar post to this issue but I can't find an exact match. Present Design: After Insert or update trigger calls 1st apex class > Future method 1st class calls 2nd apex class > Method http....
3
votes
2answers
3k views

Authorization Required

I have created simple site that create a new case. Note : I have given the Site permissions Visualforce page,Controller ,Lead Object and Case Object. While execute the site Lead is created ...
6
votes
2answers
422 views

System.CalloutException: “Algorithm missing:”

I have been getting a System.CalloutException with the message "Algorithm missing:" when I try to make a call to a specific endpoint. This is an exception that happens intermittently. For example, ...
2
votes
2answers
260 views

System.calloutException: You have uncommitted work pending. CallOut+Asynchrnous DML + Callout

I went through some questions here like System.CalloutException: You have uncommitted work pending which provide answer where the callout can be split into asynchronous way. Based on the information ...
0
votes
1answer
383 views

XML as an Inbound Webservice

What are the challenges that we come across while accepting message from third party applications in the form of XML which is an inbound web service for salesforce.

15 30 50 per page