<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SalesForce Data Integration with lookup relationships in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Data-Integration-with-lookup-relationships/m-p/2249070#M33727</link>
    <description>Hi @ 
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;JoRoesecke,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt; 
&lt;BR /&gt;This actually worked! Thanks a lot! 
&lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;</description>
    <pubDate>Thu, 05 Jan 2017 13:26:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-05T13:26:21Z</dc:date>
    <item>
      <title>SalesForce Data Integration with lookup relationships</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Data-Integration-with-lookup-relationships/m-p/2249067#M33724</link>
      <description>Hi, 
&lt;BR /&gt;I've been trying to get this working and I can't figure out for the life of me why I keep getting this error. Maybe someone has already run into this and can explain what I'm doing wrong. Actually I believe it has to do with the tSalesforceOutput_1 Advanced Settings where I'm setting the Relationship Lookup to use External IDs. Here's what I have in my job and what I've done: 
&lt;BR /&gt;In our Salesforce Org, 2 of the custom objects are Distribution_Center__c and Country__c. The Country__c object has a lookup reference to a Distribution_Center__c and the field is called exactly Distribution_Center__c. Same as the actual object. 
&lt;BR /&gt;What I needed to do is to move the records for these 2 objects from Production to a Sandbox. Based on some tutorials online I went into the Sandbox objects and created External ID fields for the two objects, both called Sandbox_Migration_Id. 
&lt;BR /&gt;Then, in the Talend Job I added first a copy of the Distribution Center object from tSalesforceInput (Production Distribution_Center__c object) --&amp;gt; tMap --&amp;gt; tSalesforceOutput (Sandbox Distribution_Center__c object) making sure that the tMap is moving the Id from Production into the Sandbox_Migration_Id field in the Sandbox. 
&lt;BR /&gt;I used UPSERT so I can keep running this whenever I need , of course using the Sandbox_Migration_Id as a key. 
&lt;BR /&gt;Then I added a second part to the job with tSalesforceInput (Production Country__c object) --&amp;gt; tMap --&amp;gt; tSalesforceOutput (Sandbox Country__c object) with the same tMap moving the Id from Production into the Sandbox_Migration_Id field in the Sandbox. 
&lt;BR /&gt;Here I understood that in order to make sure that the Distribution_Center__c field of the Country__c object is properly linked to the correct Sandbox Distribution_Center_c object I need to use the Advanced Settings for the tSalesforceOutput (Sandbox Country__c object) to add that relationship. Now the problem is that in the tutorial I followed, and even on Talend documentation website, the example was most likely using an old version of Talend which was only requiring 4 columns to be filled in. Now in the newest version 6.3 that table requires 5 columns and I'm not sure I'm filling the 5th one correctly. 
&lt;BR /&gt;Here are the 5 columns and what I added in each: 
&lt;BR /&gt;Column name of Talend schema: Distribution_Center__c (selected from the dropdown list). 
&lt;BR /&gt;Field name: "Distribution_Center__r" 
&lt;BR /&gt;Lookup field name: "Distribution_Center__c" - 
&lt;B&gt;This is the one I'm not sure about.&lt;/B&gt; 
&lt;BR /&gt;Module name: "Distribution_Center__c" 
&lt;BR /&gt;External id name: "Sandbox_Migration_Id__c" 
&lt;BR /&gt;Can anyone find where and what I'm doing wrong? Thank you in advance! 
&lt;BR /&gt;Error tSalesforceOutput_2: 
&lt;BR /&gt; 
&lt;PRE&gt;java.io.IOException: com.sforce.ws.SoapFaultException: Unexpected element {urn:sobject.partner.soap.sforce.com}type during simple type deserialization&lt;BR /&gt;	at org.talend.components.salesforce.runtime.SalesforceWriter.doUpsert(SalesforceWriter.java:397)&lt;BR /&gt;	at org.talend.components.salesforce.runtime.SalesforceWriter.logout(SalesforceWriter.java:536)&lt;BR /&gt;	at org.talend.components.salesforce.runtime.SalesforceWriter.close(SalesforceWriter.java:527)&lt;BR /&gt;	at org.talend.components.salesforce.runtime.SalesforceWriter.close(SalesforceWriter.java:54)&lt;BR /&gt;	at prod2sb.prod2cnsb_0_1.Prod2CNSB.tSalesforceInput_1Process(Prod2CNSB.java:2778)&lt;BR /&gt;	at prod2sb.prod2cnsb_0_1.Prod2CNSB.tSalesforceInput_2Process(Prod2CNSB.java:1466)&lt;BR /&gt;	at prod2sb.prod2cnsb_0_1.Prod2CNSB.runJobInTOS(Prod2CNSB.java:3121)&lt;BR /&gt;	at prod2sb.prod2cnsb_0_1.Prod2CNSB.main(Prod2CNSB.java:2978)&lt;BR /&gt;Caused by: com.sforce.ws.SoapFaultException: Unexpected element {urn:sobject.partner.soap.sforce.com}type during simple type deserialization&lt;BR /&gt;	at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:212)&lt;BR /&gt; disconnected&lt;BR /&gt;	at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:156)&lt;BR /&gt;	at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)&lt;BR /&gt;	at com.sforce.soap.partner.PartnerConnection.upsert(PartnerConnection.java:1150)&lt;BR /&gt;	at org.talend.components.salesforce.runtime.SalesforceWriter.doUpsert(SalesforceWriter.java:383)&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Cris</description>
      <pubDate>Sat, 16 Nov 2024 10:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SalesForce-Data-Integration-with-lookup-relationships/m-p/2249067#M33724</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T10:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: SalesForce Data Integration with lookup relationships</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Data-Integration-with-lookup-relationships/m-p/2249068#M33725</link>
      <description>Hi,&lt;BR /&gt;Could you please post your job setting screenshots into forum which will be helpful for us to understand your problem?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 11 Nov 2016 07:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SalesForce-Data-Integration-with-lookup-relationships/m-p/2249068#M33725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-11T07:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: SalesForce Data Integration with lookup relationships</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Data-Integration-with-lookup-relationships/m-p/2249069#M33726</link>
      <description>Based on your description, I am assuming you are using Talend 6.2.1. Please change your settings like this and let us know how it works out: 
&lt;BR /&gt;Column name of Talend schema: Distribution_Center__c (selected from the dropdown list). 
&lt;BR /&gt;Field name: NULL 
&lt;BR /&gt;Lookup field name: "Distribution_Center__r" 
&lt;BR /&gt;Module name: "Distribution_Center__c" 
&lt;BR /&gt;External id name: "Sandbox_Migration_Id__c" 
&lt;BR /&gt;Please note that this will only work if you unselected "Ignore NULL fields values". If this is set, you will most likely have to set "Field name" to "Distribution_Center__c".</description>
      <pubDate>Fri, 11 Nov 2016 08:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SalesForce-Data-Integration-with-lookup-relationships/m-p/2249069#M33726</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2016-11-11T08:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: SalesForce Data Integration with lookup relationships</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Data-Integration-with-lookup-relationships/m-p/2249070#M33727</link>
      <description>Hi @ 
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;JoRoesecke,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt; 
&lt;BR /&gt;This actually worked! Thanks a lot! 
&lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SalesForce-Data-Integration-with-lookup-relationships/m-p/2249070#M33727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-05T13:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: SalesForce Data Integration with lookup relationships</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SalesForce-Data-Integration-with-lookup-relationships/m-p/2249071#M33728</link>
      <description>Hi, 
&lt;BR /&gt;in TOS_BD 6.3.0 tSalesforceOutput actually has 5(!) fields: 
&lt;BR /&gt;Column Name of Talend Schema 
&lt;BR /&gt;Lookup field name 
&lt;BR /&gt;Lookup relationship field name 
&lt;BR /&gt;Module name 
&lt;BR /&gt;External id name 
&lt;BR /&gt;Honestly I couldn't find out what "Lookup field name" is good for, and inmy experiments it actually isn't even used. 
&lt;BR /&gt;The following values worked for me - note that Lookup field name for Case is a string without any meaning: 
&lt;BR /&gt;For a custom object (Line_Item_c which belongs to Invoice__c): 
&lt;BR /&gt;Invoice__c, "Invoice__c", "Invoice__r", "Invoice__c", "ExtID__c" 
&lt;BR /&gt;For a case associated to both an account and a contact: 
&lt;BR /&gt;AccountId, "Accountx", "Account", "Account", "ExtID__c" 
&lt;BR /&gt;ContactID, "Contactx", "Contact", "Contact", "ExtID__c" 
&lt;BR /&gt;Talend Open Studio for Big Data Components 6.2.2 - Reference Guide (EN) says on the Lookup field name parameter: " 
&lt;B&gt;Lookup field name&lt;/B&gt;: the name of the lookup field. It refers to the lookup field of the module specified in the 
&lt;B&gt;Module Name&lt;/B&gt; field in the 
&lt;B&gt;Basic settings&lt;/B&gt; view. This column needs to be specified when there are NULL input values for it and the 
&lt;B&gt;Ignore Null&lt;/B&gt; check box is cleared." 
&lt;BR /&gt;I have problems to understand this, and unfortunately the example screenshots in the guide still show the old (4 value) parameters. 
&lt;BR /&gt;However some testing resulted in the following working example (even if null is passed as a contact): 
&lt;BR /&gt;AccountId, "AccountId", "Account", "Account", "ExtID__c" 
&lt;BR /&gt;ContactID, "ContactId", "Contact", "Contact", "ExtID__c" 
&lt;BR /&gt;Note that AccountId and Contactid are the field names as you find them in the workbench or the API documentation.</description>
      <pubDate>Wed, 01 Feb 2017 10:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SalesForce-Data-Integration-with-lookup-relationships/m-p/2249071#M33728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-01T10:00:27Z</dc:date>
    </item>
  </channel>
</rss>

