function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SurekaSureka 

IO Exception: Exceeded max size limit of 3000000 while making Metadata API Call

Hi,

I am trying to query CustomLabels using Metadata API. I am using the following code:

MetadataService.MetadataPort service = createService();           
            List<MetadataService.ListMetadataQuery> queries = new List<MetadataService.ListMetadataQuery>();      
            MetadataService.ListMetadataQuery queryLayout = new MetadataService.ListMetadataQuery();
            queryLayout.type_x = 'CustomLabel';
            queries.add(queryLayout);     
            MetadataService.FileProperties[] fileProperties = service.listMetadata(queries, 30);


The above code is giving the following exception:

IO Exception: Exceeded max size limit of 3000000

I don't have any other code in my controller. Is there a way to limit the no of custom labels? Let me know

Thanks
Ramu_SFDCRamu_SFDC
See if the discussion in the below post shed any idea

https://developer.salesforce.com/forums?id=906F00000008vFbIAI