• Lukas R.
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies
Hi,
Im trying to import contacts using Talend ETL, but Im receiving error (see below). Im no coder or advanced user either so I dont know what it means and I would appreciate if you talk to me like if you were explaining to small child :) The import starts and seems to be running fine, some contacts get imported until one point where this error ocurres and job stops. See the job at the bottom.
Exception in component tSalesforceOutput_1
org.apache.axis2.AxisFault: Invalid white space character (0xe) in text to output (in xml 1.1, could output as a character entity)
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)
	at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
	at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
	at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)
[statistics] disconnected
	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
	at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
	at com.salesforce.soap.partner.SforceServiceStub.create(SforceServiceStub.java:7496)
	at org.talend.salesforce.SforceConnection.create(SforceConnection.java:84)
	at org.talend.salesforce.SforceManagementImpl.insert(SforceManagementImpl.java:344)
	at campersf.industrycontact_0_1.IndustryContact.tFileInputExcel_1Process(IndustryContact.java:4934)
	at campersf.industrycontact_0_1.IndustryContact.runJobInTOS(IndustryContact.java:8226)
	at campersf.industrycontact_0_1.IndustryContact.main(IndustryContact.java:8083)
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid white space character (0xe) in text to output (in xml 1.1, could output as a character entity)
	at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:467)
	at org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.writeCharacters(XMLStreamWriterWrapper.java:100)
	at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(MTOMXMLStreamWriter.java:325)
	at org.apache.axiom.om.impl.llom.OMTextImpl.writeOutput(OMTextImpl.java:249)
	at org.apache.axiom.om.impl.llom.OMTextImpl.internalSerialize(OMTextImpl.java:400)
	at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:556)
	at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:846)
	at org.apache.axiom.om.impl.llom.OMSerializableImpl.serialize(OMSerializableImpl.java:120)
	at org.apache.axiom.om.impl.llom.OMSerializableImpl.serialize(OMSerializableImpl.java:108)
	at com.salesforce.soap.partner.sobject.SObject.serialize(SObject.java:311)
	at com.salesforce.soap.partner.sobject.SObject.serialize(SObject.java:218)
	at com.salesforce.soap.partner.Create.serialize(Create.java:127)
	at com.salesforce.soap.partner.Create.serialize(Create.java:100)
	at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
	at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:638)
	at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:563)
	at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:846)
	at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:267)
	at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:229)
	at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:188)
	at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
	... 22 more
Caused by: java.io.IOException: Invalid white space character (0xe) in text to output (in xml 1.1, could output as a character entity)
	at com.ctc.wstx.api.InvalidCharHandler$FailingHandler.convertInvalidChar(InvalidCharHandler.java:55)
	at com.ctc.wstx.sw.XmlWriter.handleInvalidChar(XmlWriter.java:629)
	at com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:497)
	at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:465)
	... 42 more

The import job is composed of 4 components. The input xls file contains list of names and account Id (external), accounts have been already loaded. In tMap component Im matching account Id from the staff list with external account Id on Account object already loaded into salesforce in Accounts. Many thanks for help
TalendJob
Hi,
I need to be able to send hard copy invitation for campaign members and I need to generate list of labels with names/addresses of contacts and these labels would be later used for envelopes with the invitation. This list of labels needs to be 3 columns x 8 rows. We have proffesional edition so I cannot use apex, only visualforce. Im trying my luck with the code below, but Im not good at that. Columns are responsive so they change the width according to cell content and still dont know how to specify fixed number of rows per page. Many thanks for help
<apex:page standardController="Campaign" showHeader="false" applyBodyTag="false" >

      <apex:pageBlock >
          <apex:pageBlockSection columns="3" showHeader="false">
                <apex:repeat value="{!Campaign.CampaignMembers}" var="line" >   
                    <apex:pageBlockSectionItem rendered="{!line.Status='Sent'}" dataStyle="width:33%" labelStyle="width:33%" >
    
                    {!line.Contact.Name}<BR/>
                    {!line.Contact.MailingStreet}<BR/>
                    {!line.Contact.MailingPostalCode} {!line.Contact.MailingCity}<BR/>
                    {!line.Contact.MailingCountry}<BR/>  
                    
                    </apex:pageBlockSectionItem>
                </apex:repeat>
          </apex:pageBlockSection>
      </apex:pageBlock> 
      
    
</apex:page>
Hi,
Im trying to generate letter (pdf) using visualforce for campaign members who are contacts and have status 'Sent' with specific header and footer (see code below). This works fine however the result generated always includes one additional blank page with header/footer at the end. Im not really good at coding, can somebody help me out? Thanks a lot
<apex:page standardController="Campaign" renderAs="pdf" showHeader="false" sidebar="false" standardStylesheets="false" applyBodyTag="false" applyHtmlTag="false">

    <html>
    <head>
        <style>
            @page {
                size: letter;
                margin: 25mm;
                @top-center {
                    content: "Sample";
                }
                @bottom-center {
                    content: "Page " counter(page) " of " counter(pages);
                }
            }
            .page-break {
                display:block;
                page-break-after:always;
            }
            body {
                font-family: Arial Unicode MS;
            }
        </style>
    </head>
    
    
    <body>
        <div class="page-break">
    
          <apex:repeat value="{!Campaign.CampaignMembers}" var="line">
  
            <apex:outputPanel layout="block" style="page-break-after:always;" rendered="{!line.Status='Sent'}"> 
              
                  <apex:outputText value="{!line.contact.Name}," escape="false"/><br/>
                  <apex:outputText value="{!Campaign.Test_Letter__c}"  escape="false"/><br/>
                  <apex:outputText value="S pozdravem,"  escape="false"/><br/>
                  <apex:outputText value="Lukas" escape="false"/><br/>
            
            </apex:outputPanel>

          </apex:repeat>
    
        </div>
    </body>
    
   </html>
   
</apex:page>

 
Hi,
Im trying to generate letter using the VF page for campaign members who are contacts and have status 'Letter to Send' (see code below). It is generated properly however when I set the result page to print, it includes the blank pages for all campaign members who dont have this status as well and I would like to avoid this. In other words if I have 40 campaign members and only 2 of them with status 'Letter to Send' I need just two pages to be sent for printing the hard copy but it generates 38 more blank pages as result. Im not really good at coding, can somebody help me out? Many thanks
<apex:page standardController="Campaign" showHeader="false" applyBodyTag="false">

  <apex:repeat value="{!Campaign.CampaignMembers}" var="line">
 
  <div style="page-break-after:always;">
  
  <apex:outputText value="{!line.contact.Osloveni__c} {!line.contact.Vokativ__c}," rendered="{!line.Status='Letter to Send'}" escape="false"/><br/>
  <apex:outputText value="{!Campaign.Letter__c}" rendered="{!line.Status='Letter to Send'}" escape="false"/><br/>
  <apex:outputText value="S pozdravem," rendered="{!line.Status='Letter to Send'}" escape="false"/><br/>
  <apex:outputText value="LR" rendered="{!line.Status='Letter to Send'}" escape="false"/><br/>
  
  </div>
  

  
  </apex:repeat>

</apex:page>

 
Hi,
Im trying to import contacts using Talend ETL, but Im receiving error (see below). Im no coder or advanced user either so I dont know what it means and I would appreciate if you talk to me like if you were explaining to small child :) The import starts and seems to be running fine, some contacts get imported until one point where this error ocurres and job stops. See the job at the bottom.
Exception in component tSalesforceOutput_1
org.apache.axis2.AxisFault: Invalid white space character (0xe) in text to output (in xml 1.1, could output as a character entity)
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)
	at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
	at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
	at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)
[statistics] disconnected
	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
	at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
	at com.salesforce.soap.partner.SforceServiceStub.create(SforceServiceStub.java:7496)
	at org.talend.salesforce.SforceConnection.create(SforceConnection.java:84)
	at org.talend.salesforce.SforceManagementImpl.insert(SforceManagementImpl.java:344)
	at campersf.industrycontact_0_1.IndustryContact.tFileInputExcel_1Process(IndustryContact.java:4934)
	at campersf.industrycontact_0_1.IndustryContact.runJobInTOS(IndustryContact.java:8226)
	at campersf.industrycontact_0_1.IndustryContact.main(IndustryContact.java:8083)
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid white space character (0xe) in text to output (in xml 1.1, could output as a character entity)
	at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:467)
	at org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.writeCharacters(XMLStreamWriterWrapper.java:100)
	at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(MTOMXMLStreamWriter.java:325)
	at org.apache.axiom.om.impl.llom.OMTextImpl.writeOutput(OMTextImpl.java:249)
	at org.apache.axiom.om.impl.llom.OMTextImpl.internalSerialize(OMTextImpl.java:400)
	at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:556)
	at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:846)
	at org.apache.axiom.om.impl.llom.OMSerializableImpl.serialize(OMSerializableImpl.java:120)
	at org.apache.axiom.om.impl.llom.OMSerializableImpl.serialize(OMSerializableImpl.java:108)
	at com.salesforce.soap.partner.sobject.SObject.serialize(SObject.java:311)
	at com.salesforce.soap.partner.sobject.SObject.serialize(SObject.java:218)
	at com.salesforce.soap.partner.Create.serialize(Create.java:127)
	at com.salesforce.soap.partner.Create.serialize(Create.java:100)
	at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
	at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:638)
	at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:563)
	at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:846)
	at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:267)
	at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:229)
	at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:188)
	at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
	... 22 more
Caused by: java.io.IOException: Invalid white space character (0xe) in text to output (in xml 1.1, could output as a character entity)
	at com.ctc.wstx.api.InvalidCharHandler$FailingHandler.convertInvalidChar(InvalidCharHandler.java:55)
	at com.ctc.wstx.sw.XmlWriter.handleInvalidChar(XmlWriter.java:629)
	at com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:497)
	at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:465)
	... 42 more

The import job is composed of 4 components. The input xls file contains list of names and account Id (external), accounts have been already loaded. In tMap component Im matching account Id from the staff list with external account Id on Account object already loaded into salesforce in Accounts. Many thanks for help
TalendJob
Hi,
I need to be able to send hard copy invitation for campaign members and I need to generate list of labels with names/addresses of contacts and these labels would be later used for envelopes with the invitation. This list of labels needs to be 3 columns x 8 rows. We have proffesional edition so I cannot use apex, only visualforce. Im trying my luck with the code below, but Im not good at that. Columns are responsive so they change the width according to cell content and still dont know how to specify fixed number of rows per page. Many thanks for help
<apex:page standardController="Campaign" showHeader="false" applyBodyTag="false" >

      <apex:pageBlock >
          <apex:pageBlockSection columns="3" showHeader="false">
                <apex:repeat value="{!Campaign.CampaignMembers}" var="line" >   
                    <apex:pageBlockSectionItem rendered="{!line.Status='Sent'}" dataStyle="width:33%" labelStyle="width:33%" >
    
                    {!line.Contact.Name}<BR/>
                    {!line.Contact.MailingStreet}<BR/>
                    {!line.Contact.MailingPostalCode} {!line.Contact.MailingCity}<BR/>
                    {!line.Contact.MailingCountry}<BR/>  
                    
                    </apex:pageBlockSectionItem>
                </apex:repeat>
          </apex:pageBlockSection>
      </apex:pageBlock> 
      
    
</apex:page>
Hi,
Im trying to generate letter using the VF page for campaign members who are contacts and have status 'Letter to Send' (see code below). It is generated properly however when I set the result page to print, it includes the blank pages for all campaign members who dont have this status as well and I would like to avoid this. In other words if I have 40 campaign members and only 2 of them with status 'Letter to Send' I need just two pages to be sent for printing the hard copy but it generates 38 more blank pages as result. Im not really good at coding, can somebody help me out? Many thanks
<apex:page standardController="Campaign" showHeader="false" applyBodyTag="false">

  <apex:repeat value="{!Campaign.CampaignMembers}" var="line">
 
  <div style="page-break-after:always;">
  
  <apex:outputText value="{!line.contact.Osloveni__c} {!line.contact.Vokativ__c}," rendered="{!line.Status='Letter to Send'}" escape="false"/><br/>
  <apex:outputText value="{!Campaign.Letter__c}" rendered="{!line.Status='Letter to Send'}" escape="false"/><br/>
  <apex:outputText value="S pozdravem," rendered="{!line.Status='Letter to Send'}" escape="false"/><br/>
  <apex:outputText value="LR" rendered="{!line.Status='Letter to Send'}" escape="false"/><br/>
  
  </div>
  

  
  </apex:repeat>

</apex:page>