<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Running into Cannot find any valid path in operation chain error with Document.GetPrincipalEmails and Notification.SendMail in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/running-into-cannot-find-any-valid-path-in-operation-chain-error/m-p/328077#M15078</link>
    <description>&lt;P&gt;facing the same error in some other issue..will appreciate any resolution to the same&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2016 09:59:27 GMT</pubDate>
    <dc:creator>Parul_Puri</dc:creator>
    <dc:date>2016-06-23T09:59:27Z</dc:date>
    <item>
      <title>Running into Cannot find any valid path in operation chain error with Document.GetPrincipalEmails and Notification.SendMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/running-into-cannot-find-any-valid-path-in-operation-chain-error/m-p/328075#M15076</link>
      <description>&lt;P&gt;I am writing a chain to retrieve the emails of assignees for a workflow node, and send an email to those assignees.&lt;/P&gt;
&lt;P&gt;My current chain:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Context &amp;gt; Fetch Document&lt;/LI&gt;
&lt;LI&gt;Document &amp;gt; Get Principal Emails (retrieve the assignee emails here)&lt;/LI&gt;
&lt;LI&gt;Audit &amp;gt; Log&lt;/LI&gt;
&lt;LI&gt;Context &amp;gt; Run Script&lt;/LI&gt;
&lt;LI&gt;Document &amp;gt; Set Lifecycle&lt;/LI&gt;
&lt;LI&gt;Document &amp;gt; Set Property&lt;/LI&gt;
&lt;LI&gt;Notification &amp;gt; Send Mail (set the TO property to the assignee emails here)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;My chain works fine if I leave out Document &amp;gt; Get Principal Emails (I substitute in a dummy email for testing), but if I run the chain as above, I get the following error stack:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Caused by: org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: Error running chain: AssignReview
	at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:523)
	at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:491)
	at org.nuxeo.ecm.platform.routing.core.impl.GraphRunner.runGraph(GraphRunner.java:227)
	at org.nuxeo.ecm.platform.routing.core.impl.GraphRunner.resume(GraphRunner.java:161)
	... 190 more
Caused by: org.nuxeo.ecm.automation.TraceException: 

****** chain ******
Name: AssignReview
Exception: InvalidChainException
Caught error: Cannot find any valid path in operation chain - no method found for operation 'Notification.SendMail' and for first input type 'org.nuxeo.ecm.core.api.impl.DocumentModelListImpl'
Caused by: null
****** Hierarchy calls ******

	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:195)
	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:89)
	at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:515)
	... 193 more
Caused by: org.nuxeo.ecm.automation.InvalidChainException: Cannot find any valid path in operation chain - no method found for operation 'Notification.SendMail' and for first input type 'org.nuxeo.ecm.core.api.impl.DocumentModelListImpl'
	at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.buildChain(CompiledChainImpl.java:161)
	at org.nuxeo.ecm.automation.core.impl.ChainTypeImpl.newInstance(ChainTypeImpl.java:130)
	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:157)
	... 195 more&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any ideas? It doesn't matter where the Get Principal Emails operation is location the chain, it still throws the error.&lt;/P&gt;
&lt;P&gt;I am on the latest hotpatch (HF06).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 00:08:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/running-into-cannot-find-any-valid-path-in-operation-chain-error/m-p/328075#M15076</guid>
      <dc:creator>pegsablaze_</dc:creator>
      <dc:date>2014-02-14T00:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Running into Cannot find any valid path in operation chain error with Document.GetPrincipalEmails and Notification.SendMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/running-into-cannot-find-any-valid-path-in-operation-chain-error/m-p/328076#M15077</link>
      <description>&lt;P&gt;I have the same message error ("Cannot find any valid path in operation chain"), but in a diferrent situation, and a would like to know what does it means.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 18:25:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/running-into-cannot-find-any-valid-path-in-operation-chain-error/m-p/328076#M15077</guid>
      <dc:creator>SergioFerreira_</dc:creator>
      <dc:date>2014-02-20T18:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Running into Cannot find any valid path in operation chain error with Document.GetPrincipalEmails and Notification.SendMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/running-into-cannot-find-any-valid-path-in-operation-chain-error/m-p/328077#M15078</link>
      <description>&lt;P&gt;facing the same error in some other issue..will appreciate any resolution to the same&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 09:59:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/running-into-cannot-find-any-valid-path-in-operation-chain-error/m-p/328077#M15078</guid>
      <dc:creator>Parul_Puri</dc:creator>
      <dc:date>2016-06-23T09:59:27Z</dc:date>
    </item>
  </channel>
</rss>

