Hello,

I changed my model from

-module(question_data, [Id,QData1,QData2,QData3,QData4,QData5,QData6]).
-compile(export_all).

 to the below;

-module(question_data, 
[Id::uuid(),QData1,QData2,QData3,QData4,QData5,QData6]).
-compile(export_all).

Then i tried again to save a record to mongodb as below;

NewQData = question_data:new(id,Data1,Data2,Data3,Data4,Data5,Data6),
{ok,SavedQData} = NewQData:save(),

Every Data (Data1,Data2,Data3,Data4,Data5,Data6) i am trying to save are 
strings. I face with the same error again:  Error parsing Boss record id: 
error:{badmatch,["Y39OPvJ1PrVf4"]}
And Data1 is saved to mongodb database as []. Whatever i put after id gets 
the same error and saved to mongo database as [].

Thanks
Mert




28 Nisan 2015 Salı 13:00:22 UTC+3 tarihinde Dmitry Polyanovsky yazdı:
>
> more info about it here https://github.com/ErlyORM/boss_db#primary-keys
>
> On Tuesday, April 28, 2015 at 12:53:19 AM UTC+3, Mert Öztürk wrote:
>>
>> Hello,
>>
>> This happens when i want to save a record to mongodb. A new record is 
>> created but doesnt save the value after id which is automatically generated 
>> by mongodb and shows it as [].
>> Also i get the error : Error parsing Boss record id: 
>> error:{badmatch,["dV52EVzNs27iOP"]}
>> Did this happen to anyone before?
>>
>> Thanks Mert
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/1e587a99-704f-478d-aa8c-58ea8bc175e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to