<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Update database record</title><link>https://www.infopathdev.com:443/forums/thread/59013.aspx</link><pubDate>Mon, 20 Sep 2010 04:54:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59013</guid><dc:creator>Tuomo Ilonen2</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59013.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=59013</wfw:commentRss><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Thanks ErnestoM, your guess was correct and form was easy to fix. Many thanks!&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Update database record</title><link>https://www.infopathdev.com:443/forums/thread/58991.aspx</link><pubDate>Fri, 17 Sep 2010 11:57:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58991</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58991.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=58991</wfw:commentRss><description>&lt;p&gt;My guess would be that the xml that is being sent via email has no information about the existence of a record in the database. Because of that, Person B submits and tries to generate a new record, with the same primary key, which generates the error.&lt;/p&gt;&lt;p&gt;Are you submitting to SQL first or to email?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Update database record</title><link>https://www.infopathdev.com:443/forums/thread/58990.aspx</link><pubDate>Fri, 17 Sep 2010 10:40:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58990</guid><dc:creator>Tuomo Ilonen2</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58990.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=58990</wfw:commentRss><description>&lt;p&gt;I have a database-form with InfoPath 2007. Completing the form requires input from two persons, so the process is following:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1) Person A fills in a request and submits data to database&amp;nbsp;and as a mail attachment to person B&lt;/p&gt;
&lt;p&gt;&amp;nbsp;2) Person B opens the form from&amp;nbsp;office outlook&amp;nbsp;and approves it by clicking &amp;quot;Approve&amp;quot; button. &amp;quot;Approve&amp;quot; button should then update one field value in the record from &amp;quot;pending&amp;quot; to &amp;quot;approved&amp;quot;. After that the updated record should be send to database (and of course overwrite the record that person A originally submitted there).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Problem is that person B gets primary key violation error. I think it&amp;#39;s because the form is trying to create new record instead of just updating the existing one. How do I get the record updated?? Please help me, thanks!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;NOTE: Primary key&amp;nbsp;gets generated automatically based on person A name and now()-function when he opens empty form. Submitting to database in step 1 is a must.&lt;/p&gt;</description></item></channel></rss>