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
krish4ukrish4u 

Metadata API issue

Hi Folks,

I am using metadata api in salesforce.while updating the picklist values and the corresponding recordtype picklist values i am getting the IO exception read time out error. how to set time out for metadata api? 

any suggestions,

Thanks,
Krish
ManojjenaManojjena
Hi Krish ,

You need to optiise the code ,either your service class or your class or both . You need to modify the service class .There are lot of unnecessary code which is on the same execution process that you need to check and modify accordingly .

 
Ajay K DubediAjay K Dubedi
If you are getting any problems regarding the session time out than the salesforce org provide you with a saecrity setting controls which you can reach out in you org by following these steps:
 1: Setup.
 2: Security Controls.
 3. Session Settings.
ther you can enable or desable the session time out and all other setting regarding sessions.
Please let me know if this helps!
krish4ukrish4u
Thank You Manoj & Ajay.

There will be a option to set time out for metadata service. I have increased the time and it is working fine.

Regards,
Krish

 
Andrew Goldberg 50Andrew Goldberg 50
Hi Krish,

Can you give me basic syntax of  how did you increase timeout in MetadataService?

MetadataService.Timeout is not working.

Thanks,
Ajay
shiva kumar cherviralashiva kumar chervirala
Hi Ajay,

You can use below sytax to set the timeout after you have created the service.

service.timeout_x = 120000;

Hope this helps

Thanks,
Shiva Kumar CH