Enonic version: 6.5.1
OS: Ubuntu 15.10
Hi.
I am getting this error when creating a content with data.
Error
"com.enonic.xp.inputtype.InputType.createValue(Lcom/enonic/xp/data/Value;Lcom/enonic/xp/inputtype/InputTypeConfig;)Lcom/enonic/xp/data/Value;",
Code
var object = {
parentPath: '/somePath',
displayName: someVar,
draft: true,
contentType: 'com.x:y',
data: {
id: project_id
},
x: {},
page: {},
attachments: {}
};
var objectCreated = contentLib.create(object)
....
Content type:
<content-type>
<display-name>Example</display-name>
<super-type>base:structured</super-type>
<allow-child-content>true</allow-child-content>
<form>
<field-set name="example-info">
<label>Example</label>
<items>
<input type="TextLine" name="id">
<label>id</label>
<occurrences minimum="0" maximum="1"/>
</input>
</items>
</field-set>
</form>
</content-type>
If I do not specify id: project_id
and the data is passed empty the content is created without any problem.
What could it be ?
Thx in advance.