Found 1 integrity violations: The association source type is incorrect

cancel
Showing results for 
Search instead for 
Did you mean: 
owerfelli
Active Member

Found 1 integrity violations: The association source type is incorrect

Jump to solution

I want to create vncr:sender node as a child node of nvcr:senders node (custom types).

vncr:senders model :

<type name="vncr:senders">
 <title>Courrier senders</title>
<parent>cm:content</parent>
<associations>
<child-association name="vncr:contains_sender">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>vncr:sender</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
<duplicate>false</duplicate>
</child-association>
</associations>
</type>


vncr:sender model

<type name="vncr:sender">
<title>Courrier sender</title>
<parent>cm:content</parent>
<properties>
<property name="vncr:name_sender">
<type>d:text</type>
<mandatory>true</mandatory>
<multiple>false</multiple>
</property>
<property name="vncr:email_sender">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>


Template instance component

<component>
<region-id>sender</region-id>
<url>/components/form?mimeType={mimeType}</url>
<properties>
<itemKind>type</itemKind>
<itemId>vncr:sender</itemId>
<destination>{destination}</destination>
<mode>create</mode>
<submitType>json</submitType>
<showCaption>true</showCaption>
<showCancelButton>true</showCancelButton>
<htmlid>{htmlid}</htmlid>
</properties>
</component>

when I submit the form I have the following response

"message" : "06040016 Found 1 integrity violations:\nThe association source type is incorrect: \n Source Node: workspace://SpacesStore/c7ccd6bc-4e0c-4662-8660-58d263a81e4d\n
Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/content/1.0}folder], name={http://www.alfresco.org/model/content/1.0}contains, target class={http://www.alfresco.org/model/system/1.0}base, source role=null, target role=null]\n Required Source Type: {http://www.alfresco.org/model/content/1.0}folder\n Actual Source Type: {http://www.vneuron.com/model/courrier/1.0}senders",

"exception" : "org.alfresco.repo.node.integrity.IntegrityException - 06040016 Found 1 integrity violations:\nThe association source type is incorrect: \n Source Node: workspace://SpacesStore/c7ccd6bc-4e0c-4662-8660-58d263a81e4d\n
Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/content/1.0}folder], name={http://www.alfresco.org/model/content/1.0}contains, target class={http://www.alfresco.org/model/system/1.0}base, source role=null, target role=null]\n Required Source Type: {http://www.alfresco.org/model/content/1.0}folder\n Actual Source Type: {http://www.vneuron.com/model/courrier/1.0}senders",

1 Solution

Accepted Solutions
owerfelli
Active Member

Re: Found 1 integrity violations: The association source type is incorrect

Jump to solution

I solved the problem by changing `vncr:senders` (who is the parent node) parent to `cm:folder`

View solution in original post

1 Reply
owerfelli
Active Member

Re: Found 1 integrity violations: The association source type is incorrect

Jump to solution

I solved the problem by changing `vncr:senders` (who is the parent node) parent to `cm:folder`