I think it's failing to find your pipeline file due to the path. cpf:install-cpf-pipelines(<pipeline xmlns=\"http://marklogic.com/roxy/cpf\">../src/pipelines/ns-pipeline.xml</pipeline>
The <pipeline> element in your pipeline-config.xml should use the paths as they are in the modules database, rather than relative to the pipeline file itself. Thus: cpf:install-cpf-pipelines(<pipeline xmlns=\"http://marklogic.com/roxy/cpf\">/pipelines/ns-pipeline.xml</pipeline> -- Dave Cassel<http://davidcassel.net>, @dmcassel<https://twitter.com/dmcassel> Developer Community Manager MarkLogic Corporation<http://www.marklogic.com/> Data Innovation Summit<http://fedscoop.com/events/datainnovationsummit/2015/> May 7th in DC From: Geert Josten <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Friday, May 1, 2015 at 12:48 AM To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Subject: Re: [MarkLogic Dev General] Roxy deploy CPF Hi, From the looks of it, it is trying to find the pipelines inside the modules database (esif-modules?), but didn¹t find it there. Maybe path to the pipeline is incorrect and/or you might need to do a deploy modules first. Does that help? Otherwise you can take a look here for a bit of help: https://github.com//marklogic/roxy/wiki/Working-with-CPF Cheers, Geert On 5/1/15, 12:21 AM, "Chunyu Cong" <[email protected]<mailto:[email protected]>> wrote: Hello, I got the following error when I tried 'ml local deploy cpf'. Could someone give me a clue what is the error about please? Thanks. ERROR: { "error": { "evalinfo": "query evaluated in esif-content at file:: as 1.0-ml", "errorcode": "[1.0-ml] XDMP-ARG: xdmp:eval(\"import module namespace p="http://marklogic.com/cpf/pipelin...\", fn:QName(\"\", \"doc\"), <options xmlns=\"xdmp:eval\"><database>15632994262066241436</database></options>) -- Invalid argument", "stacktrace": { "stack": [ { "errorline": "198", "errorcolumn": "4", "lines": [ " )", " return", " xdmp:eval(", " 'import module namespace p=\"http://marklogic.com/cpf/pipelines\" at \"/MarkLogic/cpf/pipelines.xqy\";", " declare variable $doc external;" ], "operation": "cpf:install-cpf-pipelines(<pipeline xmlns=\"http://marklogic.com/roxy/cpf\">../src/pipelines/ns-pipeline.xml</ pipeline>, xs:unsignedLong(\"2906425435323038295\"))", "errorDatum": "", "code": [ "$pipeline-uris := \"../src/pipelines/ns-pipeline.xml\"", "$modules-database := xs:unsignedLong(\"2906425435323038295\")", "$uri := \"../src/pipelines/ns-pipeline.xml\"", "$doc := ()" ] }, { "errorline": "82", "errorcolumn": "6", "lines": [ " (", " cpf:install-system-pipelines($domain/cpf:system-pipelines/cpf:system-pipel ine),", " cpf:install-cpf-pipelines($domain/cpf:pipelines/cpf:pipeline, xdmp:database($domain/cpf:context/cpf:modules-database))", " )", " let $context := cpf:evaluation-context(xdmp:database($domain/cpf:context/cpf:modules-datab ase), $domain/cpf:context/cpf:root)" ], "operation": "cpf:load-from-config(<config xmlns=\"http://marklogic.com/roxy/cpf\"><domains><!-- one <domain> for each cpf domain --><domain><name>...</config>)", "errorDatum": "", "code": [ "$config := <config xmlns=\"http://marklogic.com/roxy/cpf\"><domains><!-- one <domain> for each cpf domain --><domain><name>...</config>", "$domain := <domain xmlns=\"http://marklogic.com/roxy/cpf\"><name>My Test Domain</name><description>This domain is awesome!!...</domain>" ] }, { "errorline": "461", "errorcolumn": "3", "lines": [ "\t </options>)", "};", ":) cpf:load-from-config(<config xmlns=\"http://marklogic.com/roxy/cpf\">", " <domains>", " <!-- one <domain> for each cpf domain -->" ], "operation": "xdmp:eval(\"(: Copyright 2012 MarkLogic Corporation Licensed un...\", (), <options xmlns=\"xdmp:eval\"><database>12459739181686467876</database><isolation>di fferent-tr...</options>)", "errorDatum": "" }, { "whereURI": "/MarkLogic/appservices/qconsole/qconsole-amped.xqy", "errorline": "211", "errorcolumn": "4", "operation": "amped-qconsole:qconsole-eval(\"(: Copyright 2012 MarkLogic Corporation Licensed un...\", (), <options xmlns=\"xdmp:eval\"><database>12459739181686467876</database><isolation>di fferent-tr...</options>)", "errorDatum": "", "code": [ "$xquery := \"(: Copyright 2012 MarkLogic Corporation Licensed un...\"", "$vars := ()", "$options := <options xmlns=\"xdmp:eval\"><database>12459739181686467876</database><isolation>di fferent-tr...</options>" ] }, { "whereURI": "/MarkLogic/appservices/qconsole/qc-evaler.xqy", "errorline": "595", "errorcolumn": "12", "operation": "qceval:do-eval(xs:unsignedLong(\"1763775169632162950\"), document{text{\"(: Copyright 2012 MarkLogic Corporation Licensed un...\"}}, \"\", <options xmlns=\"xdmp:eval\"><database>12459739181686467876</database><isolation>di fferent-tr...</options>, \"xquery\")", "errorDatum": "", "code": [ "$qid := xs:unsignedLong(\"1763775169632162950\")", "$query := \"(: Copyright 2012 MarkLogic Corporation Licensed un...\"", "$wrappedQuery := \"\"", "$options := <options xmlns=\"xdmp:eval\"><database>12459739181686467876</database><isolation>di fferent-tr...</options>", "$query-type := \"xquery\"" ] }, { "whereURI": "/qconsole/endpoints/evaler.xqy", "errorline": "87", "errorcolumn": "28", "operation": "", "errorDatum": "", "code": [ "$http-opts := <rest:request xmlns:rest=\"http://marklogic.com/appservices/rest\"><rest:param name=\"sid\" as=\"unsignedLong\"/><rest:param name=\"dbid...</rest:request>", "$set := ()", "$params-map := map:map(<map:map xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:map=\"http://marklogic.com/xdmp/map\"><map:entry key=\"wsid\"><map:value xsi:type=\"xs:unsignedLong\">1096...</map:map>)", "$action := \"eval\"", "$qid := xs:unsignedLong(\"1763775169632162950\")", "$wsid := xs:unsignedLong(\"10965177595049296257\")", "$sid := ()", "$dbid := xs:unsignedLong(\"12459739181686467876\")", "$crid := \"\"", "$query-type := \"xquery\"", "$query-text := document{text{\"(: Copyright 2012 MarkLogic Corporation Licensed un...\"}}", "$sql-query := \"import module namespace amped-qconsole = "http://marklogic....\"", "$sparql-query := \"import module namespace amped-qconsole = "http://marklogic....\"", "$query := document{text{\"(: Copyright 2012 MarkLogic Corporation Licensed un...\"}}", "$new-query := ()", "$eval-opts := <options xmlns=\"xdmp:eval\"><database>12459739181686467876</database><isolation>di fferent-tr...</options>" ] } ] } } } _______________________________________________ General mailing list [email protected]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
