Month is out of range.
Parameter name: month
A size of one works fine and if there are more messages than the size, it works. But when there are fewer messages than the size I get the above error, no messages are returned, but the messages are dequeued (MSG_STATE set to PROCESSED) from the queue.
I am using dotConnect 5.20.29 against Oracle 10g.
Below is the section of code where I set up my Connection and DequeueOptions:
Code: Select all
using (OracleConnection _InQConn = new OracleConnection(InQConn))
{
_InQConn.Open();
using (OracleQueue _InQ = new OracleQueue(InQueue, _InQConn))
{
_InQ.DequeueOptions.Navigation = OracleQueueNavigation.FirstMessage;
_InQ.DequeueOptions.DeliveryMode = OracleQueueDeliveryMode.Persistent;
_InQ.DequeueOptions.Visibility = OracleQueueVisibility.Immediate;
_InQ.DequeueOptions.DequeueMode = this.DequeueMode;
_InQ.DequeueOptions.ConsumerName = this.InQConsumer;
_InQ.DequeueOptions.WaitTimeout = 0;
OracleQueueMessage[] qMsgs;
try
{
qMsgs = _InQ.DequeueArray(this.BatchSize);
}
catch (OracleException e)
{
if (e.Code == 25228)
{
//No Messages
return 0;
}
throw(e);
}
catch (Exception e)
{
throw (e);
}
...
..
.Thanks for any help.