Create print content giving error when using different data

Hi,

I designed my template using a snippet of data instead of using the full database. I created a workflow process that sorts and splits the original full database. When using this ‘new’ data, in another process that will generate the PDF files, I get the below error after executing the ‘create print content’ plugin.

Here is the error from the messages pane.

Starting plugin Execute Data Mapping - 09:47:57
Sending file data source…
File Data Source ID: 356499
Sending data mapping command…
Using cached configuration file (id = 323764).
Starting data mapping operation…
[2016-03-11 09:51:11.675] Record creation> Metadata generated properly
Metadata file saved
Plugin Execute Data Mapping completed successfully - 09:51:11 (elapsed time: 00:03:14:081)

Starting plugin Metadata Filter - 09:53:43
Plugin Metadata Filter completed successfully - 09:53:43 (elapsed time: 00:00:00:069)

Starting plugin Create Print Content - 09:53:44
Create the rest client
Records updated from metadata
Using cached file (id = 345667).
Starting content creation operation…
Failed with cached configuration, trying with upload.
Template C:\ProgramData\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\OLConnect\Template\template.OL-template uploaded to server
Starting content creation operation…
W3001 : Error while executing plugin: HTTP/1.1 400 Bad Request <html>
<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=ISO-8859-1”/>
<title>Error 400 Bad Request</title>
</head>
<body><h2>HTTP ERROR 400</h2>
<p>Problem accessing /rest/serverengine/workflow/contentcreation/367330/. Reason:
<pre> Bad Request</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

</body>
</html>
Create Print Content: W1603 : Plugin failed - 09:53:44 (elapsed time: 00:00:00:253)

I then get this error when the ‘create job’ object executes.

Starting plugin Create Job - 10:16:02
W3001 : Error while executing plugin: W4206 - Metadata does not contain valid Content Set Item Collection
Create Job: W1603 : Plugin failed - 10:16:02 (elapsed time: 00:00:00:026)

Which in turn results in this error after the ‘create output’ plugin is executed.

Starting plugin Create Output - 10:17:22
W3001 : Error while executing plugin: W4230 - Metadata does not contain a valid Job Item Collection
Create Output: W1603 : Plugin failed - 10:17:22 (elapsed time: 00:00:00:018)

However if I use the data snippet that I used to design the template I get no errors and everything runs fine. (Data layout has not changed either.) My branches in workflow are exactly like the ones discussed here advised by Juan.

Connect server configuration is set to “Enable server security” Off/unchecked.

As usual, your help is greatly appreciated.

Regards,

Sharne

Hi Sharne,

Instead of sending it to the other process, just capture it and use it in the datamapper. You will be able to compare them and

also see if it is structured the same way.

Best regards,

Juan

Hi Juan,

I have added the data that is causing the errors to the data mapper and everything maps just fine.

Regards,

Sharne

Hi Juan,

I found what was causing the errors. It was the Job Creation and Output Creation presets made in designer.

What I did:

  • I deleted them from workflow and removed them from the template by not sending them to workflow.
  • Tried creating a PDF again and got a ‘output creation preset does not exist error’. Even though the "Trough Workflow” was selected.
  • Then added a standard PDF output preset and sent it to workflow, selected ‘as defined by output preset’. This created a PDF with no pages that generates an error when trying to open said PDF.
  • I then reselected "Trough Workflow” in the Create Output plugin and now all errors are gone and the PDF generates.

Regards,

Sharne