title: Hyperledger composer: Error: Could not find any functions to execute for transaction
body: <p>Before marking it duplicate because of this post</p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/47133754/why-does-transaction-give-this-error">Why does transaction give this error</a>
    I want to mention this post have`nt solved  my problem. </p>
  </blockquote>
  
  <p>my issue is that I am defining transaction in model file and then using it in js script but it throws an error  " Error: Could not find any functions to execute for transaction." when i try to execute it. </p>
  
  <p>my cto code`
                /**
               * New model file
               */</p>
  
  <pre><code>       namespace org.acme.model
  
        participant Trader identified by email {
         o String email 
         o Double balance 
       }
  
            transaction simpleDemo {
          }`
  </code></pre>
  
  <hr>
  
  <p>js file </p>
  
  <pre><code>/**
        * @param {org.acme.model.simpleDemo} SimpleDemo
         * @transaction 
         */
  
       function SimpleDemo (SimpleDemo) 
       {
    console.log('hello');
        }
  </code></pre>
  
  <p>picture is attached for reference. 
  <a href="https://i.stack.imgur.com/Zys9T.png" rel="nofollow noreferrer">enter image description here</a></p>