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
StreepeyeStreepeye 

not a valid value for the enum 'LogType' with upsert wsdl operation

i try to usert something with de enterprise.wsdl

 

i am getting the following error when i request the UPSERT operation

 

Does anybody knows where this is refering to / what goes wrong or what doe i have to give a value?

 

 THE REQUEST

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com" xmlns:urn1="urn:sobject.enterprise.soap.sforce.com">
   <soapenv:Header>
      <urn:EmailHeader>
         <urn:triggerAutoResponseEmail></urn:triggerAutoResponseEmail>
         <urn:triggerOtherEmail></urn:triggerOtherEmail>
         <urn:triggerUserEmail></urn:triggerUserEmail>
      </urn:EmailHeader>
      <urn:DebuggingHeader>
         <urn:debugLevel></urn:debugLevel>
      </urn:DebuggingHeader>
      <urn:MruHeader>
         <urn:updateMru></urn:updateMru>
      </urn:MruHeader>
      <urn:AssignmentRuleHeader>
         <urn:assignmentRuleId></urn:assignmentRuleId>
         <urn:useDefaultRule></urn:useDefaultRule>
      </urn:AssignmentRuleHeader>
      <urn:SessionHeader>
         <urn:sessionId>fp6KrNsQwVjKNplTnn4CN2xd</urn:sessionId>
      </urn:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
      <urn:upsert>
        <urn:externalIDFieldName>mskey__c</urn:externalIDFieldName>
        <urn:sObjects xsi:type="NewRBScodes__c">
           <mskey__c>1</mskey__c>
           <Name>000002</Name>
           <rlcode__c>340</rlcode__c>
        </urn:sObjects>
      </urn:upsert>
   </soapenv:Body>
</soapenv:Envelope> 

 

 

 

THE RESPONSE

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>'' is not a valid value for the enum 'LogType'</faultstring>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell
you sent an empty debugLevel (along with a bunch of other empty headers)

All Answers

SuperfellSuperfell
you sent an empty debugLevel (along with a bunch of other empty headers)
This was selected as the best answer
StreepeyeStreepeye
AHA ok so with LOGTYPE they mean DebugLevel !?
StreepeyeStreepeye
Where/How do i get a value for the DebugLevel ?