Byte array for GUID must be exactly 16 bytes long

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
frankdent
Posts: 2
Joined: Mon 05 Jul 2010 08:11

Byte array for GUID must be exactly 16 bytes long

Post by frankdent » Mon 05 Jul 2010 08:32

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

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 06 Jul 2010 16:40

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.

frankdent
Posts: 2
Joined: Mon 05 Jul 2010 08:11

Post by frankdent » Mon 12 Jul 2010 13:10

Sorry,

there was a wrong value in the id-field.

Frank

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 12 Jul 2010 13:42

Thank you for the information. Glad to hear the issue is resolved.

Post Reply