• dotneteric
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 14
    Replies

We have an automated process that loads data from CSV files into SF via the web services API.  The data is updated and sharing records are created for the data via an Apex Service that we wrote.  We are processing tens of thousands of rows of data, so we call the Apex Service multiple times with a pointer passed to the method letting it know where the last call left off.  This process runs daily and has been in production for 3 months.  Every so often, we receive a soap error that says "connection was cancelled here".  The process terminates when it reaches an error, so we've rerun the process in the past, and it's always worked on the second run.  Unfortunately, we ran it 3 additional times yesterday after the initial failure, and it fails with the same error before the process finishes. 


Has anyone ever seen this error before - "connection was cancelled here"?  A google search of that phrase with quotes around it returns SF related results from the community and a forum, but no solid answer as to the cause or fix of the error.  We've engaged salesforce support, but have gotten nowhere fast. 


The data that gets loaded is for an HR app, so it is critical that we resolve this issue asap.  Any help is greatly appreciated.


Below are log entries for the request and response from our BEA ALSB from which the calls are made (this is only the body of the message):

 

####<Apr 1, 2010 3:31:58 AM EDT> <Info> <ALSB Logging> <crplivesb02> <ALSB_MS05> <[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1270107118299> <000000> < [PipelinePairNode11, PipelinePairNode11_request, Request Transformation, REQUEST] ====== Authentication granted. Sending Update Employee Shares Link request to SFDC. ========: <soapenv:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://soap.sforce.com/schemas/class/mafDataload">
  <createEmployeeShares>
    <pointerId>014802</pointerId>
  </createEmployeeShares>
</soapenv:Body>>


####<Apr 1, 2010 3:34:01 AM EDT> <Info> <ALSB Logging> <crplivesb02> <ALSB_MS05> <[ACTIVE] ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1270107241252> <000000> < [RouteNode10, null, null, ERROR] ========= Received exception while routing to SFDC =============: <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Fault>
    <faultcode>soapenv:Server</faultcode>
    <faultstring>connection was cancelled here</faultstring>
  </soapenv:Fault>
</soapenv:Body>>


Thanks,

Eric

This one is really strange.  I have the following javascript function with embedded VF standard components on a VF page:

 

 

function getField(fieldname) { var fieldLabel; var fieldCell1; var fieldCell2; var fieldCell3; var fieldCell4; var fieldCell5; if (fieldname == 'Loan_Tranche_Type_1__c') { fieldLabel = 'Loan Tranche 1'; fieldCell1 = '<apex:outputPanel rendered="{!NOT(isEdit)}" layout="block" styleClass="shadeHeader cellNormal cellAlignCenter"><apex:outputField value="{!lli.Loan_Tranche_Type_1__c}"/></apex:outputPanel><apex:inputField value="{!lli.Loan_Tranche_Type_1__c}" rendered="{!isEdit}" styleClass="formInputElement shadeHeader"/>'; fieldCell2 = '<apex:outputPanel rendered="{!NOT(isEdit)}" layout="block" styleClass="shadeHeader cellNormal cellAlignCenter"><apex:outputField value="{!lli.Loan_Tranche_Type_2__c}"/></apex:outputPanel><apex:inputField value="{!lli.Loan_Tranche_Type_2__c}" rendered="{!isEdit}" styleClass="formInputElement shadeHeader"/>'; fieldCell3 = '<apex:outputPanel rendered="{!NOT(isEdit)}" layout="block" styleClass="shadeHeader cellNormal cellAlignCenter"><apex:outputField value="{!lli.Loan_Tranche_Type_3__c}"/></apex:outputPanel><apex:inputField value="{!lli.Loan_Tranche_Type_3__c}" rendered="{!isEdit}" styleClass="formInputElement shadeHeader"/>'; fieldCell4 = '<apex:outputPanel rendered="{!NOT(isEdit)}" layout="block" styleClass="shadeHeader cellNormal cellAlignCenter"><apex:outputField value="{!lli.Loan_Tranche_Type_4__c}"/></apex:outputPanel><apex:inputField value="{!lli.Loan_Tranche_Type_4__c}" rendered="{!isEdit}" styleClass="formInputElement shadeHeader"/>'; fieldCell5 = '<div class="formInputElement"></div>'; } else if (fieldname == 'Customer_Id__c') { fieldLabel = 'Loan Tranche 1'; fieldCell1 = '<apex:outputPanel rendered="{!NOT(isEdit)}" layout="block" styleClass="shadeHeader cellNormal cellAlignCenter"><apex:outputField value="{!lli.Loan_Tranche_Type_1__c}"/></apex:outputPanel><apex:inputField value="{!lli.Loan_Tranche_Type_1__c}" rendered="{!isEdit}" styleClass="formInputElement shadeHeader"/>'; fieldCell2 = '<apex:outputPanel rendered="{!NOT(isEdit)}" layout="block" styleClass="shadeHeader cellNormal cellAlignCenter"><apex:outputField value="{!lli.Loan_Tranche_Type_2__c}"/></apex:outputPanel><apex:inputField value="{!lli.Loan_Tranche_Type_2__c}" rendered="{!isEdit}" styleClass="formInputElement shadeHeader"/>'; fieldCell3 = '<apex:outputPanel rendered="{!NOT(isEdit)}" layout="block" styleClass="shadeHeader cellNormal cellAlignCenter"><apex:outputField value="{!lli.Loan_Tranche_Type_3__c}"/></apex:outputPanel><apex:inputField value="{!lli.Loan_Tranche_Type_3__c}" rendered="{!isEdit}" styleClass="formInputElement shadeHeader"/>'; fieldCell4 = '<apex:outputPanel rendered="{!NOT(isEdit)}" layout="block" styleClass="shadeHeader cellNormal cellAlignCenter"><apex:outputField value="{!lli.Loan_Tranche_Type_4__c}"/></apex:outputPanel><apex:inputField value="{!lli.Loan_Tranche_Type_4__c}" rendered="{!isEdit}" styleClass="formInputElement shadeHeader"/>'; fieldCell5 = '<div class="formInputElement"></div>'; } else alert('field ' + fieldname + ' could not be found'); return null; }

 

 

It's basically an if statement with one "else if".  Both the if and else if have the same exact codeblock.  Here's how it's rendering:

 

function getField(fieldname) { var fieldLabel; var fieldCell1; var fieldCell2; var fieldCell3; var fieldCell4; var fieldCell5; if (fieldname == 'Loan_Tranche_Type_1__c') { ; fieldCell1 = '<span id="j_id0:j_id2:j_id4"><span id="j_id0:j_id2:j_id5">Common</span></span>'; fieldCell2 = '<div id="j_id0:j_id2:j_id8" class="shadeHeader cellNormal cellAlignCenter"><span id="j_id0:j_id2:j_id9">Trade Customer</span></div>'; fieldCell3 = '<div id="j_id0:j_id2:j_id12" class="shadeHeader cellNormal cellAlignCenter"><span id="j_id0:j_id2:j_id13">Revolver</span></div>'; fieldCell4 = '<div id="j_id0:j_id2:j_id16" class="shadeHeader cellNormal cellAlignCenter"><span id="j_id0:j_id2:j_id17">LC</span></div>'; fieldCell5 = '&lt;div class="formInputElement"&gt;&lt;/div&gt;'; } else if (fieldname == 'Customer_Id__c') { fieldLabel = 'Loan Tranche 1'; fieldCell1 = '<div id="j_id0:j_id2:j_id20" class="shadeHeader cellNormal cellAlignCenter"><span id="j_id0:j_id2:j_id21">Common</span></div>'; fieldCell2 = '<div id="j_id0:j_id2:j_id24" class="shadeHeader cellNormal cellAlignCenter"><span id="j_id0:j_id2:j_id25">Trade Customer</span></div>'; fieldCell3 = '<div id="j_id0:j_id2:j_id28" class="shadeHeader cellNormal cellAlignCenter"><span id="j_id0:j_id2:j_id29">Revolver</span></div>'; fieldCell4 = '<div id="j_id0:j_id2:j_id32" class="shadeHeader cellNormal cellAlignCenter"><span id="j_id0:j_id2:j_id33">LC</span></div>'; fieldCell5 = '&lt;div class="formInputElement"&gt;&lt;/div&gt;'; } else alert('field ' + fieldname + ' could not be found'); return null; }

 

Notice that the "fieldLabel" line in the if statement block is completely botched although it doesn't contain any VF tags.  Also, the "fieldCell1" line renders differently (incorrectly creates a span tag instead of a div tag) than the same exact line in the else if block. 

 

What can be causing this?  What should I look for?

Message Edited by dotneteric on 03-26-2010 08:40 AM
Is there a way to determine field-level security (aka field visibility) for a profile or for the logged in user's profile through Apex?
Is it possible to unlock a user via the Web Services API or Apex?  I don't see any reference to unlocking a user in the documentation.
Can someone please help me out?  I can perform the following query:
 
select CreatedBy.TimeZoneSidKey from Task Limit 1
 
but the following fails telling me that TimeZoneSidKey is not a valid field on "Owner":
 
select Owner.TimeZoneSidKey from Task Limit 1
 
 
What gives?  Querying Owner.TimeZoneSidKey on a few other objects that I tried works:
 
select Owner.TimeZoneSidKey from Opportunity Limit 1
When I use the "Generate from WSDL" option then browse for my WSDL and click the "Parse WSDL" button, I get the following error:
 
Error: Failed to parse wsdl: Found more than one wsdl:binding. WSDL with multiple binding not supported
 
This is the only information I've been able to find on this error (about half way down the page):
 
So I tried removing the SOAP 1.2 binding, but then ran into errors when making a call to the generated code:

Web service callout failed:  Unable to find apex schema info

 
Can anyone tell me what I need to do to get this working without modifying the web service code (not my code)?  What can I remove from the WSDL to get it to work?
 
Here's the original WSDL without the 1.2 binding removed:
Code:
<—xml version="1.0" encoding="utf-8"–>
<s0:definitions targetNamespace="http://www.company.com" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://www.company.com" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s3="http://schemas.xmlsoap.org/wsdl/soap12/">
  <s0:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://www.company.com" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:tns="http://www.company.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <s:element name="SearchCustomerFromBureau">
        <s:complexType>
          <s:sequence>
            <s:element name="searchCustomerFromBureauRequest" nillable="true" type="tns:SearchCustomerFromBureauRequest"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="SearchCustomerFromBureauRequest">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="1" name="businessLine" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="countryCode" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="languageCode" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="dealerCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="originationCountryID" type="s:int"/>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeTypeCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="applicationNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="registrationNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="zipCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="ownerDateOfBirth" type="s:date"/>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="maidenName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="creditReformNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="phoneAreaCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="phoneNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="ownerLastName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="city" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="gender">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:enumeration value="Male"/>
                <s:enumeration value="Female"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element maxOccurs="1" minOccurs="0" name="maritalStatusCode">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:enumeration value="Divorced"/>
                <s:enumeration value="Married"/>
                <s:enumeration value="Separated"/>
                <s:enumeration value="Single"/>
                <s:enumeration value="WidowedOrWidower"/>
                <s:enumeration value="Other"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element maxOccurs="1" minOccurs="1" name="maxReturnRows" type="s:int"/>
          <s:element maxOccurs="1" minOccurs="1" name="CCIAAprovince">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:length value="2"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element maxOccurs="1" minOccurs="1" name="CCIAAnumber">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:length value="10"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
        </s:sequence>
      </s:complexType>
      <s:element name="SearchCustomerFromBureauResponse">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0" name="bureauCustomerSearchResponse" type="tns:BureauCustomerSearchResponse"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="BureauCustomerSearchResponse">
        <s:sequence>
          <s:element maxOccurs="unbounded" minOccurs="0" name="customerSearchList" nillable="true" type="tns:BureauCustomerSearch"/>
          <s:element maxOccurs="1" minOccurs="0" name="errorList" nillable="true" type="tns:ErrorList"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="BureauCustomerSearch">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="0" name="address1" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="businessStartDate" type="s:date"/>
          <s:element minOccurs="0" name="businessTypeCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="cciaaNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="cciaaProvince" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="city" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="companyRegistrationNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="countryID" type="s:int"/>
          <!--<s:element name="addressID" type="s:int" minOccurs="0" maxOccurs="1"/>-->
          <s:element maxOccurs="1" minOccurs="0" name="creditReform" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="dealerCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="dealerName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="dealerSegment" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="bureauNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="bureauType" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="portfolioDealerCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="managerFirstName" type="s:string"/>
          <s:element minOccurs="0" name="managerSurName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="numberOfBureausToSearch" type="s:int"/>
          <s:element maxOccurs="1" minOccurs="0" name="previousLesseeName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="province" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="sicDescription" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="statusCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="streetNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="vendorProgramCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="zipCode" type="s:string"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="ErrorList">
        <s:sequence>
          <s:element maxOccurs="unbounded" minOccurs="0" name="error" type="tns:Error"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="Error">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="0" name="code" type="s:string">
            <s:annotation>
              <s:documentation>Error Code</s:documentation>
            </s:annotation>
          </s:element>
          <s:element maxOccurs="1" minOccurs="0" name="description" type="s:string">
            <s:annotation>
              <s:documentation>Error Description</s:documentation>
            </s:annotation>
          </s:element>
        </s:sequence>
      </s:complexType>
      <s:element name="SearchCustomerFromOriginations">
        <s:complexType>
          <s:sequence>
            <s:element name="searchCustomerFromOriginationsRequest" nillable="true" type="tns:SearchCustomerFromOriginationsRequest"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="SearchCustomerFromOriginationsRequest">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="1" name="businessLine" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="countryCode" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="languageCode" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="dealerCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="registrationNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="vatNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="zipCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="maxReturnRows" type="s:int"/>
        </s:sequence>
      </s:complexType>
      <s:element name="SearchCustomerFromOriginationsResponse">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0" name="originationCustomerSearchResponse" type="tns:OriginationCustomerSearchResponse"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="OriginationCustomerSearchResponse">
        <s:sequence>
          <s:element maxOccurs="unbounded" minOccurs="0" name="customerSearchList" nillable="true" type="tns:OriginationCustomerSearch"/>
          <s:element maxOccurs="1" minOccurs="0" name="errorList" nillable="true" type="tns:ErrorList"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="OriginationCustomerSearch">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="companyRegistrationNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="addressID" type="s:int"/>
          <s:element name="mainAddress" type="tns:Address"/>
          <s:element maxOccurs="1" minOccurs="0" name="vatNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="undisclosedFlag" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="phoneAreaCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="phoneNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="creditReformNumber" type="s:string"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="Address">
        <s:sequence>
          <s:element minOccurs="0" name="propertyName">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="50"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element name="address1">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="50"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element minOccurs="0" name="streetNumber">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="6"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element minOccurs="0" name="address2">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="50"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element name="city">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="50"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element minOccurs="0" name="county">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="36"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element name="zipCode">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="9"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element name="countryID" type="s:int"/>
          <s:element name="countryDesc" type="s:string"/>
        </s:sequence>
      </s:complexType>
    </s:schema>
  </s0:types>
  <s0:message name="SearchCustomerFromBureauSoapIn">
    <s0:part element="s1:SearchCustomerFromBureau" name="parameters"/>
  </s0:message>
  <s0:message name="SearchCustomerFromBureauSoapOut">
    <s0:part element="s1:SearchCustomerFromBureauResponse" name="parameters"/>
  </s0:message>
  <s0:message name="SearchCustomerFromOriginationsSoapIn">
    <s0:part element="s1:SearchCustomerFromOriginations" name="parameters"/>
  </s0:message>
  <s0:message name="SearchCustomerFromOriginationsSoapOut">
    <s0:part element="s1:SearchCustomerFromOriginationsResponse" name="parameters"/>
  </s0:message>
  <s0:portType name="CustomerSoap">
    <s0:operation name="SearchCustomerFromBureau">
      <s0:input message="s1:SearchCustomerFromBureauSoapIn"/>
      <s0:output message="s1:SearchCustomerFromBureauSoapOut"/>
    </s0:operation>
    <s0:operation name="SearchCustomerFromOriginations">
      <s0:input message="s1:SearchCustomerFromOriginationsSoapIn"/>
      <s0:output message="s1:SearchCustomerFromOriginationsSoapOut"/>
    </s0:operation>
  </s0:portType>
  <s0:binding name="CustomerSoap" type="s1:CustomerSoap">
    <s2:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <s0:operation name="SearchCustomerFromBureau">
      <s2:operation soapAction="http://www.company.com/SearchCustomerFromBureau" style="document"/>
      <s0:input>
        <s2:body use="literal"/>
      </s0:input>
      <s0:output>
        <s2:body use="literal"/>
      </s0:output>
    </s0:operation>
    <s0:operation name="SearchCustomerFromOriginations">
      <s2:operation soapAction="http://www.company.com/SearchCustomerFromOriginations" style="document"/>
      <s0:input>
        <s2:body use="literal"/>
      </s0:input>
      <s0:output>
        <s2:body use="literal"/>
      </s0:output>
    </s0:operation>
  </s0:binding>
  <s0:binding name="CustomerSoap12" type="s1:CustomerSoap">
    <s3:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <s0:operation name="SearchCustomerFromBureau">
      <s3:operation soapAction="http://www.company.com/SearchCustomerFromBureau" style="document"/>
      <s0:input>
        <s3:body use="literal"/>
      </s0:input>
      <s0:output>
        <s3:body use="literal"/>
      </s0:output>
    </s0:operation>
    <s0:operation name="SearchCustomerFromOriginations">
      <s3:operation soapAction="http://www.company.com/SearchCustomerFromOriginations" style="document"/>
      <s0:input>
        <s3:body use="literal"/>
      </s0:input>
      <s0:output>
        <s3:body use="literal"/>
      </s0:output>
    </s0:operation>
  </s0:binding>
  <s0:service name="Customer">
    <s0:port binding="s1:CustomerSoap" name="CustomerSoap">
      <s2:address location="http://location/esb/customer"/>
    </s0:port>
    
  </s0:service>
</s0:definitions>

 
Any help is greatly appreciated.  Thanks!
 
-Eric
 
 
There is a business requirement to populate several fields with one of multiple values retrieved from a web service call when in new and edit mode for an Opportunity. 
 
After some brainstorming, we've come up with two concepts:
1) Create an S-Control and embed it in the page layout so that it displays in new/edit mode, performs the webservice calls and populates the dropdowns, and saves the values for those fields.  (My understanding is that you cannot display an S-Control in new or edit mode, so scratch that)
2) Override the new and edit buttons, and either:
- create custom new and edit page S-Controls that show only those fields that we want to populate with values from the webservice then put the user in edit mode for the rest of the fields
- create custom new and edit page S-Controls for all fields.
 
Since #1 is not possible, I guess #2 is the only solution right now.  Does anyone have an alternate solution?
 
Thanks.
Hello.  I am hoping someone can help me out.  I created an S-Control that changes the ownership of an opportunity, we call it "referring the opportunity".  The problem we are having is in keeping the team members of the opportunity when the ownership is changed via the S-Control.  The team members get deleted when the ownership is changed.  If I could at least add the previous owner as a team member after ownership has changed (which in turn is after the team members get deleted), we could bear with it.  But, I can't even do that because after the ownership of the opportunity changes, and the logic that creates the OpportunityTeamMember record runs, the logged in user doesn't have rights to create the record because they are not the owner of the opportunity anymore. 
 
How can I change the owner of the Opportunity without losing my team members?  If there is no way to prevent losing the team members, how can I at least create one team member record (the person who is the previous owner; who is referring the opportunity to the other person)?
 
Thanks in advance.
 
-E.R.
I need to open an SControl in a new window from an SControl.  I am using the following code to do this:

window.open("/servlet/servlet.Integration?lid=00bT0000000nyaf&eid=" + OPPORTUNITY_ID, "winLookup", "height=600,width=350,location=no,resizable=yes,toolbar=no,status=no,menubar=no,scrollbars=1");

where "lid" is the id of the SControl I want to open in the new window.  Is there a more practical way to do this?


My other question is, how can I pass information to the SControl in the new window?  I tried inserting additional querystring parameters other than "lid" and "eid", but the additional parameters get stripped out from the querystring.  Any suggestions on how to pass the information to the SControl in the new window?

Thanks in advance.

Message Edited by dotneteric on 06-01-2006 08:34 PM

Hi there,

 

I am using JDK 1.5.0_19 for an application running on Weblogic server, and trying to connect to Salesforce using Partner WSDL with Bulk API version 17.0. 

 

Recently upgraded a Sandbox which is on salesforce CS14, and since then getting following error. Any help or advice is appreciated.

 

<Feb 27, 2013 10:29:00 AM EST> <Warning> <Security> <BEA-090504>
<Certificate chain received from cs14-api.salesforce.com - 96.43.144.109
failed hostname verification check. Certificate contained *.salesforce.com
but check expected cs14-api.salesforce.com>

 

I found an article (http://help.salesforce.com/HTViewSolution?id=000170674&language=en_US ) in this regard, but has many certifiate files attached to it. Can any one please advice which of these attached files in this article need to be imported to weblogic server or Java cacerts and how do I do that? 

 

Thanks,
Ramana

 

 

  • February 28, 2013
  • Like
  • 0

We have an automated process that loads data from CSV files into SF via the web services API.  The data is updated and sharing records are created for the data via an Apex Service that we wrote.  We are processing tens of thousands of rows of data, so we call the Apex Service multiple times with a pointer passed to the method letting it know where the last call left off.  This process runs daily and has been in production for 3 months.  Every so often, we receive a soap error that says "connection was cancelled here".  The process terminates when it reaches an error, so we've rerun the process in the past, and it's always worked on the second run.  Unfortunately, we ran it 3 additional times yesterday after the initial failure, and it fails with the same error before the process finishes. 


Has anyone ever seen this error before - "connection was cancelled here"?  A google search of that phrase with quotes around it returns SF related results from the community and a forum, but no solid answer as to the cause or fix of the error.  We've engaged salesforce support, but have gotten nowhere fast. 


The data that gets loaded is for an HR app, so it is critical that we resolve this issue asap.  Any help is greatly appreciated.


Below are log entries for the request and response from our BEA ALSB from which the calls are made (this is only the body of the message):

 

####<Apr 1, 2010 3:31:58 AM EDT> <Info> <ALSB Logging> <crplivesb02> <ALSB_MS05> <[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1270107118299> <000000> < [PipelinePairNode11, PipelinePairNode11_request, Request Transformation, REQUEST] ====== Authentication granted. Sending Update Employee Shares Link request to SFDC. ========: <soapenv:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://soap.sforce.com/schemas/class/mafDataload">
  <createEmployeeShares>
    <pointerId>014802</pointerId>
  </createEmployeeShares>
</soapenv:Body>>


####<Apr 1, 2010 3:34:01 AM EDT> <Info> <ALSB Logging> <crplivesb02> <ALSB_MS05> <[ACTIVE] ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1270107241252> <000000> < [RouteNode10, null, null, ERROR] ========= Received exception while routing to SFDC =============: <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Fault>
    <faultcode>soapenv:Server</faultcode>
    <faultstring>connection was cancelled here</faultstring>
  </soapenv:Fault>
</soapenv:Body>>


Thanks,

Eric

Can someone please help me out?  I can perform the following query:
 
select CreatedBy.TimeZoneSidKey from Task Limit 1
 
but the following fails telling me that TimeZoneSidKey is not a valid field on "Owner":
 
select Owner.TimeZoneSidKey from Task Limit 1
 
 
What gives?  Querying Owner.TimeZoneSidKey on a few other objects that I tried works:
 
select Owner.TimeZoneSidKey from Opportunity Limit 1
When I use the "Generate from WSDL" option then browse for my WSDL and click the "Parse WSDL" button, I get the following error:
 
Error: Failed to parse wsdl: Found more than one wsdl:binding. WSDL with multiple binding not supported
 
This is the only information I've been able to find on this error (about half way down the page):
 
So I tried removing the SOAP 1.2 binding, but then ran into errors when making a call to the generated code:

Web service callout failed:  Unable to find apex schema info

 
Can anyone tell me what I need to do to get this working without modifying the web service code (not my code)?  What can I remove from the WSDL to get it to work?
 
Here's the original WSDL without the 1.2 binding removed:
Code:
<—xml version="1.0" encoding="utf-8"–>
<s0:definitions targetNamespace="http://www.company.com" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://www.company.com" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s3="http://schemas.xmlsoap.org/wsdl/soap12/">
  <s0:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://www.company.com" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:tns="http://www.company.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <s:element name="SearchCustomerFromBureau">
        <s:complexType>
          <s:sequence>
            <s:element name="searchCustomerFromBureauRequest" nillable="true" type="tns:SearchCustomerFromBureauRequest"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="SearchCustomerFromBureauRequest">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="1" name="businessLine" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="countryCode" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="languageCode" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="dealerCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="originationCountryID" type="s:int"/>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeTypeCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="applicationNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="registrationNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="zipCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="ownerDateOfBirth" type="s:date"/>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="maidenName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="creditReformNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="phoneAreaCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="phoneNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="ownerLastName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="city" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="gender">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:enumeration value="Male"/>
                <s:enumeration value="Female"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element maxOccurs="1" minOccurs="0" name="maritalStatusCode">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:enumeration value="Divorced"/>
                <s:enumeration value="Married"/>
                <s:enumeration value="Separated"/>
                <s:enumeration value="Single"/>
                <s:enumeration value="WidowedOrWidower"/>
                <s:enumeration value="Other"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element maxOccurs="1" minOccurs="1" name="maxReturnRows" type="s:int"/>
          <s:element maxOccurs="1" minOccurs="1" name="CCIAAprovince">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:length value="2"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element maxOccurs="1" minOccurs="1" name="CCIAAnumber">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:length value="10"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
        </s:sequence>
      </s:complexType>
      <s:element name="SearchCustomerFromBureauResponse">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0" name="bureauCustomerSearchResponse" type="tns:BureauCustomerSearchResponse"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="BureauCustomerSearchResponse">
        <s:sequence>
          <s:element maxOccurs="unbounded" minOccurs="0" name="customerSearchList" nillable="true" type="tns:BureauCustomerSearch"/>
          <s:element maxOccurs="1" minOccurs="0" name="errorList" nillable="true" type="tns:ErrorList"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="BureauCustomerSearch">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="0" name="address1" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="businessStartDate" type="s:date"/>
          <s:element minOccurs="0" name="businessTypeCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="cciaaNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="cciaaProvince" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="city" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="companyRegistrationNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="countryID" type="s:int"/>
          <!--<s:element name="addressID" type="s:int" minOccurs="0" maxOccurs="1"/>-->
          <s:element maxOccurs="1" minOccurs="0" name="creditReform" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="dealerCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="dealerName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="dealerSegment" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="bureauNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="bureauType" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="portfolioDealerCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="managerFirstName" type="s:string"/>
          <s:element minOccurs="0" name="managerSurName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="numberOfBureausToSearch" type="s:int"/>
          <s:element maxOccurs="1" minOccurs="0" name="previousLesseeName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="province" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="sicDescription" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="statusCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="streetNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="vendorProgramCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="zipCode" type="s:string"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="ErrorList">
        <s:sequence>
          <s:element maxOccurs="unbounded" minOccurs="0" name="error" type="tns:Error"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="Error">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="0" name="code" type="s:string">
            <s:annotation>
              <s:documentation>Error Code</s:documentation>
            </s:annotation>
          </s:element>
          <s:element maxOccurs="1" minOccurs="0" name="description" type="s:string">
            <s:annotation>
              <s:documentation>Error Description</s:documentation>
            </s:annotation>
          </s:element>
        </s:sequence>
      </s:complexType>
      <s:element name="SearchCustomerFromOriginations">
        <s:complexType>
          <s:sequence>
            <s:element name="searchCustomerFromOriginationsRequest" nillable="true" type="tns:SearchCustomerFromOriginationsRequest"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="SearchCustomerFromOriginationsRequest">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="1" name="businessLine" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="countryCode" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="languageCode" nillable="true" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="dealerCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="registrationNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="vatNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="zipCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="1" name="maxReturnRows" type="s:int"/>
        </s:sequence>
      </s:complexType>
      <s:element name="SearchCustomerFromOriginationsResponse">
        <s:complexType>
          <s:sequence>
            <s:element maxOccurs="1" minOccurs="0" name="originationCustomerSearchResponse" type="tns:OriginationCustomerSearchResponse"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="OriginationCustomerSearchResponse">
        <s:sequence>
          <s:element maxOccurs="unbounded" minOccurs="0" name="customerSearchList" nillable="true" type="tns:OriginationCustomerSearch"/>
          <s:element maxOccurs="1" minOccurs="0" name="errorList" nillable="true" type="tns:ErrorList"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="OriginationCustomerSearch">
        <s:sequence>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="lesseeName" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="companyRegistrationNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="addressID" type="s:int"/>
          <s:element name="mainAddress" type="tns:Address"/>
          <s:element maxOccurs="1" minOccurs="0" name="vatNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="undisclosedFlag" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="phoneAreaCode" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="phoneNumber" type="s:string"/>
          <s:element maxOccurs="1" minOccurs="0" name="creditReformNumber" type="s:string"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="Address">
        <s:sequence>
          <s:element minOccurs="0" name="propertyName">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="50"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element name="address1">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="50"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element minOccurs="0" name="streetNumber">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="6"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element minOccurs="0" name="address2">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="50"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element name="city">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="50"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element minOccurs="0" name="county">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="36"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element name="zipCode">
            <s:simpleType>
              <s:restriction base="s:string">
                <s:maxLength value="9"/>
              </s:restriction>
            </s:simpleType>
          </s:element>
          <s:element name="countryID" type="s:int"/>
          <s:element name="countryDesc" type="s:string"/>
        </s:sequence>
      </s:complexType>
    </s:schema>
  </s0:types>
  <s0:message name="SearchCustomerFromBureauSoapIn">
    <s0:part element="s1:SearchCustomerFromBureau" name="parameters"/>
  </s0:message>
  <s0:message name="SearchCustomerFromBureauSoapOut">
    <s0:part element="s1:SearchCustomerFromBureauResponse" name="parameters"/>
  </s0:message>
  <s0:message name="SearchCustomerFromOriginationsSoapIn">
    <s0:part element="s1:SearchCustomerFromOriginations" name="parameters"/>
  </s0:message>
  <s0:message name="SearchCustomerFromOriginationsSoapOut">
    <s0:part element="s1:SearchCustomerFromOriginationsResponse" name="parameters"/>
  </s0:message>
  <s0:portType name="CustomerSoap">
    <s0:operation name="SearchCustomerFromBureau">
      <s0:input message="s1:SearchCustomerFromBureauSoapIn"/>
      <s0:output message="s1:SearchCustomerFromBureauSoapOut"/>
    </s0:operation>
    <s0:operation name="SearchCustomerFromOriginations">
      <s0:input message="s1:SearchCustomerFromOriginationsSoapIn"/>
      <s0:output message="s1:SearchCustomerFromOriginationsSoapOut"/>
    </s0:operation>
  </s0:portType>
  <s0:binding name="CustomerSoap" type="s1:CustomerSoap">
    <s2:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <s0:operation name="SearchCustomerFromBureau">
      <s2:operation soapAction="http://www.company.com/SearchCustomerFromBureau" style="document"/>
      <s0:input>
        <s2:body use="literal"/>
      </s0:input>
      <s0:output>
        <s2:body use="literal"/>
      </s0:output>
    </s0:operation>
    <s0:operation name="SearchCustomerFromOriginations">
      <s2:operation soapAction="http://www.company.com/SearchCustomerFromOriginations" style="document"/>
      <s0:input>
        <s2:body use="literal"/>
      </s0:input>
      <s0:output>
        <s2:body use="literal"/>
      </s0:output>
    </s0:operation>
  </s0:binding>
  <s0:binding name="CustomerSoap12" type="s1:CustomerSoap">
    <s3:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <s0:operation name="SearchCustomerFromBureau">
      <s3:operation soapAction="http://www.company.com/SearchCustomerFromBureau" style="document"/>
      <s0:input>
        <s3:body use="literal"/>
      </s0:input>
      <s0:output>
        <s3:body use="literal"/>
      </s0:output>
    </s0:operation>
    <s0:operation name="SearchCustomerFromOriginations">
      <s3:operation soapAction="http://www.company.com/SearchCustomerFromOriginations" style="document"/>
      <s0:input>
        <s3:body use="literal"/>
      </s0:input>
      <s0:output>
        <s3:body use="literal"/>
      </s0:output>
    </s0:operation>
  </s0:binding>
  <s0:service name="Customer">
    <s0:port binding="s1:CustomerSoap" name="CustomerSoap">
      <s2:address location="http://location/esb/customer"/>
    </s0:port>
    
  </s0:service>
</s0:definitions>

 
Any help is greatly appreciated.  Thanks!
 
-Eric
 
 
I want to update a record and set the value of a custom DateTime field to the current date and time (SFDC system date and time).  So the equivalent of updating a field in Oracle and passing "now()" as the value.  Is there a one-step way to do this?  Or do I have to query the timestamp and the put it into the record that I'm updating?

Thanks
Chris
  • November 19, 2007
  • Like
  • 0
Hi,
 
I have a s-control that display records in a list and one column is a hyperlink.  When a user clicks on the hyperlink,  another s-control is invoked that executes the AJAX proxy call "sforce.connection.remoteFunction( )". 
 
URL for the column is "https://na5.salesforce.com/servlet/servlet.Integration?lid=01N700000000ugP which invokes the s-control.
 
An error occurs in the line "sforce.connection.remoteFunction( )" with the error message "Type Mismatch" (which can be seen when you double-click the error icon in the browser's lower right corner).  The weird thing is the same s-control works when invoked from a custom link I created in the accounts tab.
 
Thanks in advance.
 
 
 
  • September 12, 2007
  • Like
  • 0
Hello.  I am hoping someone can help me out.  I created an S-Control that changes the ownership of an opportunity, we call it "referring the opportunity".  The problem we are having is in keeping the team members of the opportunity when the ownership is changed via the S-Control.  The team members get deleted when the ownership is changed.  If I could at least add the previous owner as a team member after ownership has changed (which in turn is after the team members get deleted), we could bear with it.  But, I can't even do that because after the ownership of the opportunity changes, and the logic that creates the OpportunityTeamMember record runs, the logged in user doesn't have rights to create the record because they are not the owner of the opportunity anymore. 
 
How can I change the owner of the Opportunity without losing my team members?  If there is no way to prevent losing the team members, how can I at least create one team member record (the person who is the previous owner; who is referring the opportunity to the other person)?
 
Thanks in advance.
 
-E.R.
I need to open an SControl in a new window from an SControl.  I am using the following code to do this:

window.open("/servlet/servlet.Integration?lid=00bT0000000nyaf&eid=" + OPPORTUNITY_ID, "winLookup", "height=600,width=350,location=no,resizable=yes,toolbar=no,status=no,menubar=no,scrollbars=1");

where "lid" is the id of the SControl I want to open in the new window.  Is there a more practical way to do this?


My other question is, how can I pass information to the SControl in the new window?  I tried inserting additional querystring parameters other than "lid" and "eid", but the additional parameters get stripped out from the querystring.  Any suggestions on how to pass the information to the SControl in the new window?

Thanks in advance.

Message Edited by dotneteric on 06-01-2006 08:34 PM