Incomple Path error in CLI using clispec

I am getting syntax error: incomplete path

ubuntu# diagnostic start location 0/7/CPU0 test filesystem_test
params:  --diag_start --location 0/7/CPU0 --test filesystem_test
cmd: diagnostic location 0/7/CPU0 test filesystem_test start
        diagnostic location 0/7/CPU0 test filesystem_test start
-------------------^
syntax error: incomplete path
Error executing command: CLI command error - 

I have modifies the CLI using the clispec and the actual functionality is invoked by the shell
${CONFD_DIR}/bin/maapi --clicmd --unhide internal-command “${cmd}”

snippet of yang file, clispec file and the shell file.

<cmd name="start" mount="diagnostic">
        <info>Start running test </info>
        <help>To start the ondemand test for a particular test </help>
        <callback>
        <exec>
          <osCommand>/home/ajodas/CISCO/ONLINE_DIAGS/diag.sh</osCommand>
          <options><noInput/></options>
        </exec>
        </callback>
           <params>
               <param>
                   <help/>
                   <info/>
                   <type><void/></type>
                   <mapTo>--diag_start</mapTo>
                   <params>
                       <param>
                          <name>location</name>
                          <id>start_loc_key</id>
                          <info>Select unit location</info>
                          <help/>
                          <type>
                              <key mode="exist">/diagnostic/diag_start/location</key>
                          </type>
                          <argFlag>--location</argFlag>
                          <params>
                               <param>
                                    <name>test</name>
                                    <info>Diagnostic test selection</info>
                                    <help/>
                                    <type>
                                        <key mode="exist">/diagnostic/diag_start/location{$(start_loc_key)}/test</key>
                                    </type>
                                    <argFlag>--test</argFlag>
                               </param>
                         </params>
                   </param>
                 </params>
            </param>
          </params>
    </cmd>
    </operationalMode>
</clispec>

###############

container diagnostic {
          tailf:info "Online Diagnostic commands";


            container diag_start {
            config false;
            tailf:cli-drop-node-name;
            tailf:hidden "internal";
            tailf:callpoint diag_ondemand_cli_cp;
            tailf:info "Show diagnostic start";
            list location {
                key "loc";
                leaf loc {
                    type Location;
                }
                leaf description {
                    type string;
                    default "port.";
                }
                list test {
                    key "test_type";
                    leaf test_type {
                        type Test;
                    }
                    leaf description {
                        type string;
                        default "Test.";
                    }

                    tailf:action start {
                        tailf:actionpoint diagnostic_start;
                        tailf:info "Diagnostic Start command";
                        input {
                        }
                        output {
                            leaf response_str {
                                tailf:cli-drop-node-name;
                                type string;
                            }
                        }
                    }
                }
            }
        } //end of diag_start

Can someone point out help what may be wrong ?

Any suggestions on this query ?

Have you tried something like:

${CONFD_DIR}/bin/maapi --clicmd --no-hidden --no-aaa "${cmd}"

to make sure that the issue is not related to unhide or authorization issues?