Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when uploading vdb with model of type "virtual" #380

Open
elfilip opened this issue Apr 13, 2016 · 0 comments
Open

Error when uploading vdb with model of type "virtual" #380

elfilip opened this issue Apr 13, 2016 · 0 comments

Comments

@elfilip
Copy link
Collaborator

elfilip commented Apr 13, 2016

Command: upload-vdb nosource path/to/vdb.xml
Output:

     VDB 'nosource' was successfully uploaded.
     WorkspaceStatusImpl:UploadVdbCommand__commitSuccessWithCallbackError-40:An error occurred during the commit of transaction 'WorkspaceStatusImpl:DeleteVdbCommand-39'
     java.lang.RuntimeException: Error reading VDB file "/tko:komodo/tko:workspace/nosource/jcr:content/jcr:data": The 'mmcore:modelType' property value 'virtual' on node '/tko:komodo/tko:workspace/nosource/myschema' does not satisfy the constraints of the 'mmcore:modelType' property definition on the 'vdb:declarativeModel' node type, and no other property definition is valid.
     Error reading VDB file "/tko:komodo/tko:workspace/nosource/jcr:content/jcr:data": The 'mmcore:modelType' property value 'virtual' on node '/tko:komodo/tko:workspace/nosource/myschema' does not satisfy the constraints of the 'mmcore:modelType' property definition on the 'vdb:declarativeModel' node type, and no other property definition is valid.
     The 'mmcore:modelType' property value 'virtual' on node '/tko:komodo/tko:workspace/nosource/myschema

Vdb:

<vdb name="nosource" version="1">
 <property name="{http://teiid.org/rest}auto-generate" value="true"/>
 <model name="myschema" type="virtual">
   <metadata type = "DDL">
        <![CDATA[
    CREATE VIEW data as select 'a' as col;
    ]]>
   </metadata>
 </model>
</vdb> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant