cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR in getting data from data Dictionary

vigj
Champ in-the-making
Champ in-the-making
Hi
i have a multitenant environment (alfresco 3.4d)

suddeltly on a tenant i'm no more able to manage the datadictionary from share (from explorer i can)
[img]https://lh6.googleusercontent.com/_TGBiIwM5nIc/TYdjnPfePlI/AAAAAAAAAVc/cbWKVvz-SAo/s800/alfresco_err...[/img]

I got this logging as tenant administrator

the log is:
15:36:58,233 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 02210013 Wrapped Exception (with status template): 02210193 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js': Node does not exist: workspace://@fintelengineering.it@SpacesStore/159da463-ff81-4f42-b676-626cc68c9605
org.springframework.extensions.webscripts.WebScriptException: 02210013 Wrapped Exception (with status template): 02210193 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js': Node does not exist: workspace://@fintelengineering.it@SpacesStore/159da463-ff81-4f42-b676-626cc68c9605
   at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:758)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
   at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:377)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:436)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:466)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:304)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:662)
Caused by: org.alfresco.scripts.ScriptException: 02210193 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js': Node does not exist: workspace://@fintelengineering.it@SpacesStore/159da463-ff81-4f42-b676-626cc68c9605
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:194)
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:282)
   at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
   at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:981)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
   … 24 more
Caused by: org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://@fintelengineering.it@SpacesStore/159da463-ff81-4f42-b676-626cc68c9605
   at org.alfresco.repo.node.db.DbNodeServiceImpl.getNodePairNotNull(DbNodeServiceImpl.java:142)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.hasAspect(DbNodeServiceImpl.java:902)
   at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.alfresco.repo.tenant.MultiTNodeServiceInterceptor.invoke(MultiTNodeServiceInterceptor.java:137)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy7.hasAspect(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:215)
   at $Proxy8.hasAspect(Unknown Source)
   at org.alfresco.repo.node.MLPropertyInterceptor.getPivotNodeRef(MLPropertyInterceptor.java:321)
   at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:161)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:198)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:198)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy7.getProperty(Unknown Source)
   at org.alfresco.repo.security.person.PersonServiceImpl.getPersonOrNull(PersonServiceImpl.java:380)
   at org.alfresco.repo.security.person.PersonServiceImpl.personExists(PersonServiceImpl.java:353)
   at sun.reflect.GeneratedMethodAccessor681.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:217)
   at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:184)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy72.personExists(Unknown Source)
   at org.alfresco.repo.jscript.People.getPerson(People.java:656)
   at sun.reflect.GeneratedMethodAccessor680.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
   at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
   at org.mozilla.javascript.gen.c8._c7(file:/D:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js:542)
   at org.mozilla.javascript.gen.c8.call(file:/D:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js)
   at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
   at org.mozilla.javascript.gen.c8._c4(file:/D:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js:62)
   at org.mozilla.javascript.gen.c8.call(file:/D:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js)
   at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
   at org.mozilla.javascript.gen.c8._c16(file:/D:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js:1095)
   at org.mozilla.javascript.gen.c8.call(file:/D:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js)
   at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
   at org.mozilla.javascript.gen.c8._c0(file:/D:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js:1198)
   at org.mozilla.javascript.gen.c8.call(file:/D:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   at org.mozilla.javascript.gen.c8.call(file:/D:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js)
   at org.mozilla.javascript.gen.c8.exec(file:/D:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:472)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:190)
   … 28 more
6 REPLIES 6

michaelc
Champ on-the-rise
Champ on-the-rise
Don't know if this is your issue.

I had something similar but it showed up in the document library.
I followed it back to a user having been removed from the system that had associated content.

took a while to figure out, not saying this is your issue.
I was using 3.3.b at the time I think.

vigj
Champ in-the-making
Champ in-the-making
I do not think it's the same case

what I did on data dictionary on this tenant is
-add a script
-add versionable aspect to the invite e-mail template
-modify the invite e.mail template

and suddently that page stopped working

For all the the rest the tenant was just created: no users no documents, nothing

It appears a bug to me

vigj
Champ in-the-making
Champ in-the-making
no one can help me?

mrogers
Star Contributor
Star Contributor
Not without more details.

vigj
Champ in-the-making
Champ in-the-making
which details do you need more?

Fresh install
created a new tenant
set versionable aspect on invite email template and modified it (a new version uploaded)
created a new site
added a script and a rule to run this script automatically on document library of the site of the tenant
boom….data dictionary on tenant no more accessible from share

vigj
Champ in-the-making
Champ in-the-making
I just tried with a new machine and a new fresh install and i can repeat the problem

i install 3.4d (standard install)
create a tenant
i apply my customizations deployng files in the tomcat/shared folder
(here they are)
<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://www.alfresco.org/model/dictionary/1.0" name="fin:FintelModel">
  <description>modelli fintel engineering srl</description>
  <author>Fintel Engineering</author>
  <version>1.0</version>
  <imports>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
     <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
   </imports>
  <namespaces>
    <namespace uri="http://www.fintelengineering.it/model/fintelengineering/1.0" prefix="fin"/>
  </namespaces>



  <types>

    <type name="fin:finteldoc">
      <title> Documento Fintel Engineering</title>
      <parent>cm:content</parent>

    </type>

    <type name="fin:AutorizzazioneBonifico">
      <title>Autorizzazione Bonifico</title>
      <description>Autorizzazione Bonifico</description>
      <parent>fin:finteldoc</parent>

      <properties>
        <property name="fin:ProtocolloFattura">
          <title>Protocollo Fattura</title>
          <type>d:text</type>
        </property>

        <property name="fin:Data">
          <title>Data</title>
          <type>d:date</type>
        </property>

        <property name="fin:DettagliCC">
          <title>Dettagli Conto Corrente</title>
          <type>d:text</type>
        </property>
        <property name="fin:IntestatarioCC">
          <title>Intestatario Conto Corrente</title>
          <type>d:text</type>
        </property>
        <property name="fin:RichiedenteBonifico">
          <title>Richiedente Bonifico</title>
          <type>d:text</type>
        </property>

      </properties>


    </type>

    <type name="fin:AutorizzazioneFatturaAttiva">

      <title>Autorizzazione Fattura Attiva</title>
      <description>Autorizzazione Fattura Attiva</description>
      <parent>fin:finteldoc</parent>
      <properties>
        <property name="fin:Importo">
          <title>Importo</title>
          <type>d:double</type>
        </property>
        <property name="fin:Cliente">
          <title>Cliente</title>
          <type>d:text</type>
        </property>
        <property name="fin:RichiedenteFattura">
          <title>Richiedente Fattura</title>
          <type>d:text</type>
        </property>
      </properties>

    </type>
    <type name="fin:DocInEntrata">
   
      <title>Documento in Entrata</title>
      <description>Documento in Entrata</description>
      <parent>fin:finteldoc</parent>
     
      <properties>
        <property name="fin:Mittente">
          <title>Mittente</title>
          <type>d:text</type>
        </property>
      <property name="fin:DataRicezione">
          <title>Data Ricezione</title>
          <type>d:date</type>
        </property>
      </properties>
    </type>

  </types>





   <aspects>
    <aspect name="fin:RelativoACommessa">
      <title>Relativo a Commessa</title>
      <properties>
        <property name ="fin:Commessa">
          <title>Codice Commessa</title>
          <type>d:text</type>
        </property>
        <property name="fin:DescrizioneCommessa">
          <title>Descrizione Commessa</title>
          <type>d:text</type>
        </property>
      </properties>
    </aspect>
    <aspect name="fin:Vistabile">
   <title>Vistabile</title>
      <properties>
        <property name="fin:VistatoDa">
          <title>Vistato Da</title>
          <type>d:text</type>
        </property>
      </properties>
    </aspect>
  </aspects>
 

 
</model>
log in in share as admin of this tenant
i go to data dictionary to modify invite e mail template. i add versionable aspect and upload a new version
which just translate the template in italian
then i upload a new script
(here it is)

if (document.type != "{http://www.alfresco.org/model/content/1.0}thumbnail" &&
    document.type != "{http://www.alfresco.org/model/content/1.0}folder")
{
   // tags
   var tagIds = ["AutorizzazioneBonifico", "AutorizzazioneFatturaAttiva", "DocInEntrata"];

   // Remove all previous status tags so we only have the latest one added
   document.removeTags(tagIds);

   // Add a tag to reflect the status
   if (document.typeShort=="fin:AutorizzazioneBonifico")
   {
      document.addTag("AutorizzazioneBonifico");
   }
  
   if (document.typeShort=="fin:AutorizzazioneFatturaAttiva")
   {
      document.addTag("AutorizzazioneFatturaAttiva");
   }
  
   if (document.typeShort=="fin:DocInEntrata")
   {
      document.addTag("DocInEntrata");
   }

  
   if ((document.properties["fin:Commessa"]) &&(document.properties["fin:Commessa"] !=""))
   {
      document.addTag(document.properties["fin:Commessa"]);
   }

   // Save changes
   document.save();
}

then customization for share
<alfresco-config>




<config replace="true">
      <flags>
         <!–
            Developer debugging setting to turn on DEBUG mode for client scripts in the browser
         –>
         <client-debug>true</client-debug>
         <!–
            LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift).
            This flag automatically activates logging on page load.
         –>
         <client-debug-autologging>true</client-debug-autologging>
      </flags>
     
      <header>
         <app-items>
            <!– defaults: icon="{id}.png" label="header.{id}.label" description="header.{id}.description" –>
            <item type="link" id="my-dashboard">{userdashboardpage}</item>
            <item type="js" id="sites" permission="admin" >Alfresco.module.Sites</item>
            <item type="link" id="people">/people-finder</item>
            <item type="link" id="repository" permission="admin"  >/repository</item>
            <item type="container" id="more">
               <container-group id="my">
                  <item type="link" id="my-tasks">/my-tasks</item>
                  <item type="link" id="my-workflows">/my-workflows</item>
                  <item type="link" id="my-content">/user/user-content</item>
                  <item type="link" id="my-sites">/user/user-sites</item>
                  <item type="link" id="my-profile">{userprofilepage}</item>
                  <item type="js" id="saved-searches" condition="false">Alfresco.module.SavedSearches</item>
               </container-group>
               <container-group id="tools" permission="admin">
                  <item type="link" id="application">/console/admin-console/application</item>
                  <item type="link" id="groups">/console/admin-console/groups</item>
                  <item type="link" id="replication-jobs">/console/admin-console/replication-jobs</item>
                  <item type="link" id="repository">/console/admin-console/repository</item>
                  <item type="link" id="users">/console/admin-console/users</item>
               </container-group>
            </item>
         </app-items>
         <user-items>
            <item type="container" id="user" icon="" description="">
               <container-group id="usermenu" label="">
                  <item type="user" id="status">{userprofilepage}</item>
                  <item type="link" id="my-profile">{userprofilepage}</item>
                  <item type="link" id="change-password" condition="!context.externalAuthentication">/user/change-password</item>
                  <item type="external-link" id="help">{share-help}</item>
                  <item type="link" id="logout" condition="!context.externalAuthentication">/dologout</item>
               </container-group>
            </item>
            <item type="external-link" id="help" icon="">{share-help}</item>
         </user-items>
         <dependencies>
            <css src="/modules/create-site.css" />
            <css src="/modules/header/sites.css" />
            <js src="/modules/create-site.js" />
            <js src="/modules/header/sites.js" />
         </dependencies>
      </header>
   </config>

























   <!– Document Library config section –>
   <config evaluator="string-compare" condition="DocumentLibrary">

      <!–
         Used by the "Manage Aspects" action

         For custom aspects, remember to also add the relevant i18n string(s)
            cm_myaspect=My Aspect
      –>
      <aspects>
         <!– Aspects that a user can see –>
         <visible>
   
         
            <aspect name="cm:generalclassifiable" />
            <aspect name="cm:complianceable" />
            <aspect name="cm:dublincore" />
            <aspect name="cm:effectivity" />
            <aspect name="cm:summarizable" />
            <aspect name="cm:versionable" />
            <aspect name="cm:templatable" />
            <aspect name="cm:emailed" />
            <aspect name="emailserver:aliasable" />
            <aspect name="cm:taggable" />
            <aspect name="app:inlineeditable" />
         <aspect name="fin:RelativoACommessa" />
         <aspect name="fin:Vistabile" />
           
         </visible>

         <!– Aspects that a user can add. Same as "visible" if left empty –>
         <addable>

         </addable>

         <!– Aspects that a user can remove. Same as "visible" if left empty –>
         <removeable>

         </removeable>
      </aspects>
    
     <types>
         <type name="cm:content">
           <subtype name="fin:AutorizzazioneBonifico">
             </subtype>
          <subtype name="fin:AutorizzazioneFatturaAttiva">
             </subtype>
          <subtype name="fin:DocInEntrata">
             </subtype>
         </type>

         <type name="cm:folder">
         </type>
      
      
      </types>
    
     <google-docs>
         <!–
            Enable/disable the Google Docs UI integration (Extra types on Create Content menu, Google Docs actions).
         –>
         <enabled>true</enabled>
        
         <!–
            The mimetypes of documents Google Docs allows you to create via the Share interface.
            The I18N label is created from the "type" attribute, e.g. google-docs.doc=Google Docs&trade; Document
         –>
         <creatable-types>
            <creatable type="doc">application/msword</creatable>
            <creatable type="xls">application/vnd.ms-excel</creatable>
            <creatable type="ppt">application/vnd.ms-powerpoint</creatable>
         </creatable-types>
      </google-docs>

   </config>
  
   <config evaluator="string-compare" condition="AdvancedSearch">
   <advanced-search>
      <forms>
         <form id="cercaPerCommessa" label="cerca Per Commessa" description="cerca Per Commessa">cm:content</form>
         <form id="cercaDocInEntrata" label="cerca Doc In Entrata" description="cerca Doc In Entrata">cm:content</form>
       <form id="cercaAutorizzazioneBonifico" label="cerca Autorizzazione Bonifico" description="cerca Autorizzazione Bonifico">cm:content</form>
         <form id="cercaAutorizzazioneFatturaAttiva" label="cerca Autorizzazione Fattura Attiva" description="cerca Autorizzazione Fattura Attiva">cm:content</form>
    
     </forms>
   </advanced-search>
   </config>



   <config evaluator="model-type" condition="cm:content">
     <forms>
         <form id="cercaPerCommessa">
         <field-visibility>
            <show id="fin:Commessa" force="true" />
         <show id="fin:DescrizioneCommessa" force="true" />
         </field-visibility>
         <appearance>
          <field id="fin:Commessa" label="Codice Commessa" description="Codice Commessa">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
            <field id="fin:DescrizioneCommessa" label="Descrizione Commessa" description="Descrizione Commessa">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
         </appearance>
      </form>


    <form id="cercaDocInEntrata">
         <field-visibility>
            <show id="fin:Commessa" force="true" />
         <show id="fin:DescrizioneCommessa" force="true" />
            <show id="fin:Mittente" force="true" />
          <show id="fin:DataRicezione" force="true" />
         </field-visibility>
         <appearance>
          <field id="fin:Commessa" label="Codice Commessa" description="Codice Commessa">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
            <field id="fin:DescrizioneCommessa" label="Descrizione Commessa" description="Descrizione Commessa">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
          <field id="fin:Mittente" label="Mittente" description="Mittente">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
       <field id="fin:DataRicezione" label="Data Ricezione" description="Data Ricezione">
                <control template="/org/alfresco/components/form/controls/daterange.ftl" />
            </field>
         </appearance>
      </form>

    
       <form id="cercaAutorizzazioneBonifico">
         <field-visibility>
            <show id="fin:Commessa" force="true" />
         <show id="fin:DescrizioneCommessa" force="true" />
            <show id="fin:ProtocolloFattura" force="true" />
          <show id="fin:Data" force="true" />
         <show id="fin:DettagliCC" force="true" />
         <show id="fin:IntestatarioCC" force="true" />
         <show id="fin:RichiedenteBonifico" force="true" />
         
         
         
         </field-visibility>
         <appearance>
          <field id="fin:Commessa" label="Codice Commessa" description="Codice Commessa">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
            <field id="fin:DescrizioneCommessa" label="Descrizione Commessa" description="Descrizione Commessa">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
          <field id="fin:ProtocolloFattura" label="DProtocollo Fattura" description="Protocollo Fattura">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
         
            <field id="fin:Data" label="Data " description="Data ">
                <control template="/org/alfresco/components/form/controls/daterange.ftl" />
            </field>
       <field id="fin:DettagliCC" label="Dettagli CC" description="Dettagli CC">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
         <field id="fin:IntestatarioCC" label="Intestatario CC" description="Intestatario CC">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
         <field id="fin:RichiedenteBonifico" label="Richiedente Bonifico" description="Richiedente Bonifico">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>         
         </appearance>
      </form>

    
     <form id="cercaAutorizzazioneFatturaAttiva">
         <field-visibility>
            <show id="fin:Commessa" force="true" />
         <show id="fin:DescrizioneCommessa" force="true" />
            <show id="fin:Importo" force="true" />
          <show id="fin:Cliente" force="true" />
         <show id="fin:RichiedenteFattura" force="true" />
         <show id="fin:IntestatarioCC" force="true" />
         <show id="fin:RichiedenteBonifico" force="true" />
         
         
         
         </field-visibility>
         <appearance>
          <field id="fin:Commessa" label="Codice Commessa" description="Codice Commessa">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
            <field id="fin:DescrizioneCommessa" label="Descrizione Commessa" description="Descrizione Commessa">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
            <field id="fin:Importo" label="Importo " description="Importo ">
                <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
       <field id="fin:Cliente" label="Cliente" description="Cliente">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
         <field id="fin:RichiedenteFattura" label="Richiedente Fattura" description="Richiedente Fattura">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
         
         </appearance>
      </form>


              <!– Default form configuration used on the document details and edit metadata pages –>
         <form>
            <field-visibility>
               <show id="fin:Commessa" />
            <show id="fin:DescrizioneCommessa" />
              <show id="fin:VistatoDa"/>
            </field-visibility>
         </form>





         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
            <show id="fin:Commessa" />
             <show id="fin:DescrizioneCommessa" />
               <show id="fin:VistatoDa"/>
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
         </form>

         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
            <show id="fin:Commessa" />
             <show id="fin:DescrizioneCommessa" />
                <show id="fin:VistatoDa"/>
            </field-visibility>
         </form>
    </forms>
   </config>
  
  
   <!– cm:content type (existing nodes) –>
   <config  evaluator="node-type" condition="cm:content">
      <forms>

         <!– Default form configuration used on the document details and edit metadata pages –>
         <form>
            <field-visibility>
                     <show id="fin:Commessa" />
                  <show id="fin:DescrizioneCommessa" />
                <show id="fin:VistatoDa"/>
            </field-visibility>
         </form>

         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
            <show id="fin:Commessa" />
             <show id="fin:DescrizioneCommessa" />
                <show id="fin:VistatoDa"/>
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
         </form>

         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
            <show id="fin:Commessa" />
             <show id="fin:DescrizioneCommessa" />
            <show id="fin:VistatoDa"/>
            </field-visibility>
         </form>
   
      </forms>
   </config>
  


   <config evaluator="node-type" condition="fin:DocInEntrata">
      <forms>
           <form >
                
                  <field-visibility>
                          <show id="cm:name" />
                          <show id="cm:description"/>
                          <show id ="fin:Mittente" />
                        <show id="fin:Commessa" />
                     <show id="fin:DescrizioneCommessa" />
                        <show id="fin:DataRicezione" />
                  <show id="fin:VistatoDa"/>
                  <show id="cm:created" for-mode="view" />
                  <show id="cm:modified" for-mode="view" />

                  </field-visibility>
             

            </form>

        </forms>
   </config>
  


   <config evaluator="node-type" condition="fin:AutorizzazioneFatturaAttiva">
      <forms>
           <form>
                  <!– <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />–>
                  <field-visibility>
                          <show id="cm:name" />
                          <show id="cm:description"/>
                          <show id ="fin:Importo" />
                          <show id ="fin:Cliente" />
                  <show id ="fin:RichiedenteFattura" />


                        <show id="fin:Commessa" />
                     <show id="fin:DescrizioneCommessa" />
                  <show id="fin:VistatoDa"/>
                  <show id="cm:created" for-mode="view" />
                  <show id="cm:modified" for-mode="view" />

                  </field-visibility>

            </form>
        </forms>
   </config>
  
      <config evaluator="node-type" condition="fin:AutorizzazioneBonifico">
      <forms>
           <form>
                  <!– <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />–>
                  <field-visibility>
                          <show id="cm:name" />
                          <show id="cm:description"/>
                          <show id ="fin:ProtocolloFattura" />
                          <show id ="fin:Data" />
                  <show id ="fin:DettagliCC" />
                  <show id ="fin:IntestatarioCC" />
                  <show id ="fin:RichiedenteBonifico" />
                        <show id="fin:Commessa" />
                     <show id="fin:DescrizioneCommessa" />
                  <show id="fin:VistatoDa"/>
                  <show id="cm:created" for-mode="view" />
                  <show id="cm:modified" for-mode="view" />

                  </field-visibility>

            </form>
        </forms>
   </config>

</alfresco-config>

then i create a new site on the tenant

i create a new rule that applies script above to every file created or modified in the documenti library of the website

and then suddently data dictionary view from share stopped working

I have this problem only in multitenancy on a tenant…the same exact customization works perfectly if multinetancy is not used or i log in as global admin