• Elkay
  • NEWBIE
  • 10 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 2
    Replies
Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, You can not save an SR Line Item using the "(New)" product.: [EP_Product__c]
Error is in expression '{!save}' in component <apex:commandButton> in page samplerequestnew: Class.SampleRequestNewController.save: line 86, column 1
An unexpected error has occurred. Your development organization has been notified.
  • December 21, 2015
  • Like
  • 0
We have an integration with ERP system using ETL tool. Yesterday, total 72983 records were inserted/updated by ETL tool. However the total API call that is shown in the report against that tool's client Id is - 117575. The batch size is set to 2000. As per my understanding, total records should be divided by the batch size to count the API call. For example -  72983 / 2000 i.e. approx 38 then why the API call count is so large. Any help????
  • July 02, 2015
  • Like
  • 0
I have third party application that upserts data in salesforce.com. How many API calls a single upsert operation consumes provided the batch is set to 2000 records. This is SOAP based integration without Bulk API
  • June 30, 2015
  • Like
  • 0
I am trying to call a webservice hosted on a different SFDC organization from apex. Sessionheader is set but still I am receiving this error- Web service callout failed: Unable to find header type info forloginResult. Not able to comprehend this error. Help please!!!!!!!!! Webserice stub is as follows:

public class ValidateAccount {
        public String endpoint_x = 'https://cs30.salesforce.com/services/Soap/class/ValidateAccount';
        public Map<String,String> inputHttpHeaders_x;
        public Map<String,String> outputHttpHeaders_x;
        public String clientCertName_x='IdeaCerti';
        public String clientCert_x;
        public String clientCertPasswd_x;
        public Integer timeout_x;
        public WebserviceCallValAcc.DebuggingInfo_element DebuggingInfo;
        public WebserviceCallValAcc.DebuggingHeader_element DebuggingHeader;
        public WebserviceCallValAcc.AllowFieldTruncationHeader_element AllowFieldTruncationHeader;
        public WebserviceCallValAcc.SessionHeader_element SessionHeader = new WebserviceCallValAcc.SessionHeader_element();
        public partnerSoapSforceCom.Soap sp = new partnerSoapSforceCom.Soap();
        public partnerSoapSforceCom.LoginResult loginResult = sp.login(username,password);
        public WebserviceCallValAcc.CallOptions_element CallOptions;
        private String DebuggingInfo_hns = 'DebuggingInfo=http://soap.sforce.com/schemas/class/ValidateAccount';
        private String DebuggingHeader_hns = 'DebuggingHeader=http://soap.sforce.com/schemas/class/ValidateAccount';
        private String AllowFieldTruncationHeader_hns = 'AllowFieldTruncationHeader=http://soap.sforce.com/schemas/class/ValidateAccount';
        private String SessionHeader_hns = 'SessionHeader=http://soap.sforce.com/schemas/class/ValidateAccount';
        private String CallOptions_hns = 'CallOptions=http://soap.sforce.com/schemas/class/ValidateAccount';
        private String[] ns_map_type_info = new String[]{'http://soap.sforce.com/schemas/class/ValidateAccount', 'WebserviceCallValAcc'};
        public void ValidateAccountWeb(String aName) {
            WebserviceCallValAcc.ValidateAccountWeb_element request_x = new WebserviceCallValAcc.ValidateAccountWeb_element();
            request_x.aName = aName;
            SessionHeader.sessionId=loginResult.sessionId;
            
            system.debug(SessionHeader.sessionId);
            
            WebserviceCallValAcc.ValidateAccountWebResponse_element response_x;
            Map<String, WebserviceCallValAcc.ValidateAccountWebResponse_element> response_map_x = new Map<String, WebserviceCallValAcc.ValidateAccountWebResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              '',
              'http://soap.sforce.com/schemas/class/ValidateAccount',
              'ValidateAccountWeb',
              'http://soap.sforce.com/schemas/class/ValidateAccount',
              'ValidateAccountWebResponse',
              'WebserviceCallValAcc.ValidateAccountWebResponse_element'}
            );
            response_x = response_map_x.get('response_x');
           
        }
    }

 
  • October 31, 2014
  • Like
  • 0
Hi there,

I have an after insert trigger on child object the updates a field in parent object.  I am using Database.saveresult[] uResult = database.update(rAccList,false); to update the account records and in case of failure at the ID of failed accounts in a Map. Search for child object wherein account.Id is in the failed map and then use AddError. This functionality works fine, however this results in the failure of insertion of all child records where accountId is in the Map. Is there a way to get the Id of the child record that caused the validation failure in the parent object and then use addError only for that child record.

Thank you.
Elkay
  • July 09, 2014
  • Like
  • 0
Hello Everyone,

I want to extract the top 3 opportunity records for each account based on the Amount Value. I am trying to create a SOQL query but unable to fetch only 3 records per group.

Help Please....

Thank you...
Elkay

  • July 03, 2014
  • Like
  • 0
Hello,
I am an experienced admin with no apex experience. I was hoping someone can point me in the right direction, I would like to take a stab at creating a simple Apex trigger on the opportunity object to update a field when a field is changed on a child custom object named Implementations (lookup relationship). I understand that cross object workflows can be done with master deatil relationships, however, I do not want to create a master relationship in this case. Any direction would be appreciated. 

Thanks!

This is happening all too frequently, e.g. twice already today.    Has anyone found a resolution to these types of problems?


Thanks!