This is a migrated thread and some comments may be shown as answers.

Firebird Binary2ArrayConverter Error

3 Answers 24 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mariob
Top achievements
Rank 1
mariob asked on 03 May 2011, 01:52 PM
Hi!

I'm following blog post to use OA with Lightswitch, so I thought I could try it with Firebird (version 2.1.3) since I have few projects running on it, using Visual Studio 2010 SP1 on Server 2008 R2 SP1 and Telerik Open Access ORM Free Edition (downloaded yesterday, May 02, so latest version whichever it is). 

I created Class Library project and added OA model and few firebird tables in it. This part works like a charm :)
Then I added RIA Services Class Library project to solution, but I have no luck with adding OA Domain Service (Add New Item -> Telerik OpenAccess Domain Service, error raises in moment when I select Domain Context). I even removed problematic fields from model (both in Open Access Model Explorer and Model Schema Explorer). I cleaned and rebuild entire solution after each change. I've attached the error message.

Am I doing something wrong or missing something? Ok, I understand that mapping of blob sub_type 1 type doesn't work, but why OA RIA services wizard insists on those fields, even when they do not exist in model or generated classes? I can't remove them from database because they do contain certain information which are important elsewhere, but not in this scenario. 

Is there a way to fix this?

Thanks, 

Mario B. 

3 Answers, 1 is accepted

Sort by
0
Accepted
Thomas
Telerik team
answered on 05 May 2011, 04:59 PM
Hello mariob,

there was an issue with blob subtype 1 columns incorrectly mapped to be byte[], where a string should be mapped. Therefore the mentioned converter gets into the game and fails.
Please change the mapping to string for those columns. The using fields will then be correctly handled by the meta data and the RIA wizard should work again. 

Best wishes,
Thomas
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
0
mariob
Top achievements
Rank 1
answered on 05 May 2011, 06:12 PM
Hi!

Thanks for reply. 

Yes, changing type manually to String fixed the issue, but only after restarting Visual Studio. I did clean and rebuild several times, but it seems something gets cached after first invocation of data services wizard.

Let me explain what happened. 
- I set type to String in model, Clean All, Rebuild All
- tried to add OA Domain Service, but I got error for another field (same problem, forgot about that field)
- ok, back to model, fix that field as well, Clean All, Rebuild all
- tried to add OA DS again - same error, same field
- restart Visual Studio
- tried to add OA DS - everything works fine

Not sure if I'm missing something or this is a small bug. 

Thanks, 

Mario B. 
0
Thomas
Telerik team
answered on 06 May 2011, 05:43 PM
Hi mariob,

yes, could be there is something cached. I will ask my colleagues to look into this.

All the best,
Thomas
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
Tags
Databases and Data Types
Asked by
mariob
Top achievements
Rank 1
Answers by
Thomas
Telerik team
mariob
Top achievements
Rank 1
Share this question
or