<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/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>Method:API Q&amp;A</title><link>http://forums.method.me/cs/forums/15.aspx</link><description>Ask questions specific to the MethodAPI from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: APIDelete</title><link>http://forums.method.me/cs/forums/thread/544.aspx</link><pubDate>Mon, 30 Mar 2009 14:30:57 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:544</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/544.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=544</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Matt,&lt;/p&gt;
&lt;p&gt;This was an issue with non-accounting tables.&amp;nbsp; I&amp;#39;ve update the API so you can try the delete out again.&lt;/p&gt;
&lt;p&gt;Let me know if you have any other questions/issues.&lt;/p&gt;
&lt;p&gt;Pete&lt;/p&gt;</description></item><item><title>Re: APIDelete</title><link>http://forums.method.me/cs/forums/thread/538.aspx</link><pubDate>Fri, 27 Mar 2009 17:47:42 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:538</guid><dc:creator>Matt</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/538.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=538</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m only trying to delete 1 record per call, just make multiple calls in a row.&lt;/p&gt;
&lt;p&gt;I am trying to delete ofut of a table I created called a1test.&lt;/p&gt;
&lt;p&gt;I tried it again just now get :&lt;/p&gt;
&lt;p&gt;&amp;lt;ERROR&amp;gt;&amp;lt;MESSAGE&amp;gt;ExecuteNonQuery requires an open and available Connection. The connection&amp;#39;s current state is closed.&amp;lt;/MESSAGE&amp;gt;&amp;lt;STACKTRACE&amp;gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlConnection.GetOpenConnection(String method)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at shrServiceCleanUp.fnExecuteSqlTransaction(String sDatabaseName, String sSQL, SqlConnection&amp;amp; connection, String sWebServiceEncryptionKey, Int32 intSecurityID, SqlCommand sqlConn, SqlTransaction sqlTran, String sComingFrom)&amp;lt;/STACKTRACE&amp;gt;&amp;lt;DETAIL&amp;gt;sSQL=DELETE FROM [a1test] WHERE RecordID=3&amp;lt;/DETAIL&amp;gt;&amp;lt;sDatabaseName&amp;gt;Apex&amp;lt;/sDatabaseName&amp;gt;&amp;lt;sComingFrom&amp;gt;&amp;lt;/sComingFrom&amp;gt;&amp;lt;/ERROR&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: APIDelete</title><link>http://forums.method.me/cs/forums/thread/532.aspx</link><pubDate>Fri, 27 Mar 2009 15:51:28 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:532</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/532.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=532</wfw:commentRss><description>&lt;p&gt;Matt,&lt;/p&gt;
&lt;p&gt;For each APIDelete call there will only be&amp;nbsp;one record deleted at a time. The problem appears to be the table was an accounting table and there were some locking issues when trying to perform some accounting clean up tasks that caused the error.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve updated the&amp;nbsp;APIDelete. Can you call the APIDelete again and see if the error message happens. If it continues to happen can you tell us what table you are trying to delete the record from?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;</description></item><item><title>APIDelete</title><link>http://forums.method.me/cs/forums/thread/530.aspx</link><pubDate>Thu, 26 Mar 2009 18:38:36 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:530</guid><dc:creator>Matt</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/530.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=530</wfw:commentRss><description>&lt;p&gt;I tried using APIDelete and the response was &amp;quot;ThisSqlTransaction has ; it is no longer usable&amp;quot; it deletes 1 record, but I wanted it to delete multiple records, is that not allowed?&lt;/p&gt;</description></item></channel></rss>