+ Start a Discussion

What is this limit?

Hey all,

I am working on a trigger that will update about 12 fields on around 200 opportunities based on information from an external system. The trigger pulls in information from a JSON based webservice, parses it and updates the opportunities accordingly. Problem is, I am getting a strange message, and I'm not sure if it is from Salesforce native, or another managed package. The error is this.


Too many inserts or updates. The automatic numberic of sales orders only supports a maximum batch size of 10

 Does anyone know what this is refering to? I couldn't find much information searching around, and I am suspecting it may be a poorly written managed package causing me issues.

Really the code for this is quite simple. It's just this method

	webservice static void importCosts(string jobName)
	    HttpRequest req = new HttpRequest();

	    req.setEndpoint( 'http://xxxxxxxxxxxx/webservice.cfc?method=getProjectCostData);

	    Http http = new Http();
	    string costDataJson;
	        //Execute web service call here     
	        HTTPResponse res = http.send(req); 
	        costDataJson = res.getBody();
		    List<Opportunity> costData = (List<Opportunity>) System.JSON.deserialize(costDataJson, List<Opportunity>.class);		
			update costData;


 Which returns a list of JSON encoded opportunity objects (with their Id's and fields to update). Any thoughts?

Chamil MadusankaChamil Madusanka

Total number of callouts (HTTP requests or Web services calls) in a request :: 10


If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.


It turns out my hunch was correct. There is a bit of integration software we have called TopShelf. It seems to be trying to 'phone home' whenever an opportunity is touched. We are trying to work with them to figure out how to deal with this.