<?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: How to write to Salesforce object using Spark Salesforce Library in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-write-to-salesforce-object-using-spark-salesforce-library/m-p/16918#M11009</link>
    <description>&lt;P&gt;this could not be the whole error can you please share the driver/error logs thread dump, I will try to help you&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 14:12:51 GMT</pubDate>
    <dc:creator>Aviral-Bhardwaj</dc:creator>
    <dc:date>2022-12-20T14:12:51Z</dc:date>
    <item>
      <title>How to write to Salesforce object using Spark Salesforce Library</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-write-to-salesforce-object-using-spark-salesforce-library/m-p/16917#M11008</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2022-12-14 at 8.18.07 AM"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/998iCDBEA61C47376563/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-12-14 at 8.18.07 AM" alt="Screen Shot 2022-12-14 at 8.18.07 AM" /&gt;&lt;/span&gt;Hi I'm facing an issue when writing to a salesforce object. I'm using the springml/spark-salesforce library. I have the above libraries installed as recommended based on my research.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to write like this:&lt;/P&gt;&lt;P&gt;(_sqldf&lt;/P&gt;&lt;P&gt;  .write&lt;/P&gt;&lt;P&gt;  .format("com.springml.spark.salesforce")&lt;/P&gt;&lt;P&gt;  .option("username", sf_username)&lt;/P&gt;&lt;P&gt;  .option("password", sf_password_token)&lt;/P&gt;&lt;P&gt;  .option("sfObject", sf_object)&lt;/P&gt;&lt;P&gt;  .option("upsert", True)&lt;/P&gt;&lt;P&gt;  .save())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am receiving this error:&lt;/P&gt;&lt;P&gt;org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 15.0 failed 4 times, most recent failure: Lost task 0.3 in stage 15.0 (TID 15) (10.139.64.32 executor 0): java.lang.IllegalArgumentException: Can not instantiate Stax reader for XML source type class org.codehaus.stax2.io.Stax2ByteArraySource (unrecognized type)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 13:21:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-write-to-salesforce-object-using-spark-salesforce-library/m-p/16917#M11008</guid>
      <dc:creator>theSoyf</dc:creator>
      <dc:date>2022-12-14T13:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to write to Salesforce object using Spark Salesforce Library</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-write-to-salesforce-object-using-spark-salesforce-library/m-p/16918#M11009</link>
      <description>&lt;P&gt;this could not be the whole error can you please share the driver/error logs thread dump, I will try to help you&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 14:12:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-write-to-salesforce-object-using-spark-salesforce-library/m-p/16918#M11009</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2022-12-20T14:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to write to Salesforce object using Spark Salesforce Library</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-write-to-salesforce-object-using-spark-salesforce-library/m-p/16919#M11010</link>
      <description>&lt;P&gt;Im facing the same issue while trying to write to Salesforce, if you have found a resolution could you please share it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 12:07:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-write-to-salesforce-object-using-spark-salesforce-library/m-p/16919#M11010</guid>
      <dc:creator>Gauthy</dc:creator>
      <dc:date>2023-02-15T12:07:49Z</dc:date>
    </item>
  </channel>
</rss>

