Skip to Main Content


Oracle.ManagedDataAccess - System.IndexOutOfRangeException with FillSchema

Tech ROApr 14 2022

I have a strange behavior and I would like to know how to solve it. I am on a .NET Core 6 environment under Visual Studio 2022 and I have referenced the Nuget package Oracle.ManagedDataAccess.Core 3.21.50.

Here is how to reproduce it:
- Open a connection to an Oracle database
- Select all contents of a table
- FillSchema to get the table schema in an adapter
- Modify the table by adding a column for example
- FillSchema to update the schema -> IndexOutOfRangeException

I tried the suggestions here:
but the issue persists.

Would you know how to solve this problem which seems to be related to the statement cache and is blocking for us?

You will find in attachment a simple application to reproduce the issue. (1.85 KB)
Best regards.

This post has been answered by Alex Keh-Oracle on Apr 15 2022
Jump to Answer
Post Details
Added on Apr 14 2022