user5176293
user5176293

Reputation: 53

Marklogic Content Processing Framework (CPF) is not triggered when loaded the documents with MarkLogic Content Pump (MLCP))

I am loading the data from a pipe delimited file and i am storing them as XML documents as part of ingestion using MLCP. I have my CPF pipelines based on the state(initial), and the namespace and root element condition.

The CPF framework is not getting triggered when i load the documents using MLCP, but if i deploy the test content using Roxy(ml dev deploy content) which are already in XML, the transformation is happening successfully.

I noticed the state of the document is in initial when loading through Roxy, where are the state of the document is in created state when loading through MLCP.

So i have changed the pipeline state transition to trigger when the document is in created state. Even then i dont see CPF is triggered when documents are created as MLCP process

Please need help to fix the issue

MLCP Options, CPF Config and Pipeline XML file -- [https://gist.github.com/guru2228)

Upvotes: 2

Views: 409

Answers (1)

Dave Cassel
Dave Cassel

Reputation: 8422

There could be a permissions problem, or it could be that you need to configure a CPF Restart Trigger.

When CPF gets set up, that creates a set of triggers. In the Admin UI (port 8001), you can see the resulting triggers by viewing the configuration of your target database (say, Documents) and then clicking Triggers in the display on the left. You should see a list that includes cpf:restart. Click that one and check the "user" option.

If there was no cpf:restart, then it sounds like CPF didn't get set up correctly (you're using Roxy; did you run "ml deploy cpf"?).

If cpf:restart was there, does the user have permissions to read and update the documents that it should be working with?

Upvotes: 1

Related Questions