Page 1 of 1

Byte array for GUID must be exactly 16 bytes long

Posted: Mon 05 Jul 2010 08:32
by frankdent
Hello,

I have installed Devart dotConnect for Oracle Trial, version 5.70.140.0 on Windows XP with Visual Studio 2010.

My model has a table 'Text' with following fields:

- IdText Guid (RAW(16))
- Kennung String (VARCHAR2)
- Typ String (VARCHAR2)
- Inhalt String (CLOB)

When read all text rows by the generated code:

public IQueryable GetTexts()
{
return this.ObjectContext.Texts;
}

I'm getting the System.ArgumentException "Byte array for GUID must be exactly 16 bytes long".

What's wrong?

Frank

Posted: Tue 06 Jul 2010 16:40
by AndreyR
I have tried to reproduce this situation with the help of table definition provided by you.
A new item was successfully queried from database.
Please check that the values stored in the IdText column contain the correct Guid byte representations.

Posted: Mon 12 Jul 2010 13:10
by frankdent
Sorry,

there was a wrong value in the id-field.

Frank

Posted: Mon 12 Jul 2010 13:42
by AndreyR
Thank you for the information. Glad to hear the issue is resolved.