﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Business object error when trying to use stored proc</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 03:08:57 GMT</lastBuildDate><ttl>20</ttl><item><title>Business object error when trying to use stored proc</title><link>http://forum.strataframe.net/FindPost5952.aspx</link><description>When i try to use a stored proc for updating a table. For example your &lt;P&gt;customers table using strataframes own Customers_Update , I receive the folowling error "Procedure or function Customers_Update has too many arguments specified."&lt;/P&gt;&lt;P&gt;Can somebody tell me why this is or at least how to try and debug it</description><pubDate>Fri, 19 Jan 2007 14:51:56 GMT</pubDate><dc:creator>Bradley Marston</dc:creator></item><item><title>RE: Business object error when trying to use stored proc</title><link>http://forum.strataframe.net/FindPost5968.aspx</link><description>When you configure a business object so that the PrimaryKeyIsAutoIncremented property is False, that _ORGPK value is used to find the record on the server since you could conceivably change the PK value (since it's not an IDENTITY field on the server).&amp;nbsp; So, yes, on your table that is using a non-integer, non-identity PK, you'll need to include the extra value in the parameters list.</description><pubDate>Fri, 19 Jan 2007 14:51:56 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Business object error when trying to use stored proc</title><link>http://forum.strataframe.net/FindPost5960.aspx</link><description>Thanks a lot for your help. That did the trick and the debug code you gave me is very useful. I have a follow up question though, I have a table with a varcharfield as a primarty key @Rese . when i look at the debug output i see a new parameter is created by strataframe @Rese_ORGPK. Will this always be the case that i have to add an extra parameter to my stored procs for this or is there a way to turn this off.&lt;P&gt;Thanks Brad</description><pubDate>Fri, 19 Jan 2007 10:53:33 GMT</pubDate><dc:creator>Bradley Marston</dc:creator></item><item><title>RE: Business object error when trying to use stored proc</title><link>http://forum.strataframe.net/FindPost5956.aspx</link><description>Most likely, the business object needs to be configured to use an UpdateConcurrencyMode of RowVersion and the RowVersionOrTimestampColumn needs to be set to cust_Version.&amp;nbsp; The version field specified as an output parameter within the stored procedure and the business object needs to be configured to match.&amp;nbsp; Also, if that doesn't work, you can debug your data source.&amp;nbsp; At the bottom of the SetDataSources() method within the AppMain.vb file (or Program.cs), you can add this line to generate an HTML debug file of the data source:&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.Data.DataBasics.DataSources("").SetDebugOn("C:\Debug.html", True)</description><pubDate>Fri, 19 Jan 2007 09:42:39 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>