xquery - XDMP-MODNOTFOUND: (err:XQST0059) Module /c/code/lib-multipart-post.xqy not found -


i quite new marklogic user. developed pipeline runs following module:

xquery version "1.0-ml";  import module namespace cpf="http://marklogic.com/cpf" @ "/marklogic/cpf/cpf.xqy"; import module namespace local="http://marklogic.com/ps/lib-multipart-post" @ "/c/code/lib-multipart-post.xqy"; import module namespace util = "http://marklogic.com/xdmp/utilities" @ "/marklogic/utilities.xqy";  declare variable $cpf:document-uri xs:string external; declare variable $cpf:transition node() external;  if (cpf:check-transition($cpf:document-uri,$cpf:transition))    try {     let $basename := util:basename( $cpf:document-uri )     let $rosokaresultpath :=util:basepath( $cpf:document-uri )      let $docname := substring-before($basename, '.')     let $newpath := fn:concat($rosokaresultpath ,'/',$docname,'_rosoka.xml')     let $rosokaconn := local:multipart-post(       "http://localhost:8080/rosokaweb/rosoka",        "------------12345xyz",        (<data name="file" filename="{$basename}" type="application/xml">      {$cpf:document-uri}</data>,        <data name="responsetype">application/xml</data>))     return        xdmp:document-insert(         $newpath, $rosokaconn[2],         xdmp:default-permissions(),         "rosoka_result"),      xdmp:log( "rosoka statistics saved" ),     cpf:success($cpf:document-uri, $cpf:transition, ())   } catch ($e) {     cpf:failure($cpf:document-uri, $cpf:transition, $e, ())   } else () 

however, got error message when pipeline runs:

<error:code>xdmp-modnotfound</error:code> <error:name>err:xqst0059</error:name> <error:xquery-version>1.0-ml</error:xquery-version> <error:message>module not found</error:message> <error:format-string>xdmp-modnotfound: (err:xqst0059) module /c/code /lib-multipart-post.xqy not found</error:format-string> <error:retryable>false</error:retryable> 

even though put lib-multipart-post.xqy in modules database appropriate uri.

please help

the space after /c/code suspicious. have space in path?


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -