Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01008: not all variables bound

418213Apr 6 2009 — edited Apr 7 2009
Hi,
Here is a part of the codes in my 'aspx' file but I do have the following error in italic
...
<asp:GridView ID="gv1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="false" DataSourceID="conn" >
<Columns>
<asp:CommandField ShowSelectButton="True" />
</Columns>

</asp:GridView>
<asp:SqlDataSource ID="conn" runat="server"
SelectCommand="select fld_a,fld_b from tab_a where rec_id=:rec_id"
providerName="System.Data.OracleClient" ConnectionString="<%$ ConnectionStrings:conn %>" />
<SelectParameters>
<asp:Parameter Name="rec_id" Type="Int32" />
</SelectParameters>
...

Server Error in '/' Application.
--------------------------------------------------------------------------------

ORA-01008: not all variables bound

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.


Exception Details: System.Data.OracleClient.OracleException: ORA-01008: not all variables bound


Source Error:


An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
This post has been answered by 24208 on Apr 7 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2009
Added on Apr 6 2009
5 comments
4,392 views