'Collection type for payload data type MSG_TYPE does not exist.'
Posted: Wed 28 Nov 2018 10:52
Hi *,
i am dequeueing an Oracle Advanced Queue succesfully through the following code:
When i try to gather a queue array through the next code snippet, i am receiving the error message
Whats wrong with my code?
best regards
i am dequeueing an Oracle Advanced Queue succesfully through the following code:
Code: Select all
OracleQueue oracleDequeueQueue = new OracleQueue("QUEUENAME", oracleConnection);
OracleQueueMessage msg = oracleDequeueQueue.Dequeue();
if (msg != null && msg.ObjectPayload != null)
{
Convert.ToString(msg.ObjectPayload["ID"])
}
System.Exception: 'Collection type for payload data type MESSAGE_TYPE_NAME does not exist.'
Code: Select all
OracleQueue oracleDequeueQueue = new OracleQueue("QUEUENAME", oracleConnection);
OracleQueueMessage[] msgArr = oracleDequeueQueue.DequeueArray(10);
foreach (OracleQueueMessage m in msgArr)
{
if (m != null && m.ObjectPayload != null)
{
Convert.ToString(m.ObjectPayload["ID"]));
}
}
best regards