Jump to content

Trapping for specific error in XML Log


Recommended Posts

Hi there,

 

In the .msg file, I get the following errors when my multipage PDF rule fails due to unexpected page sizes from my input files:

 

"The specified Keep conditions could not be honored in the flow <FundSheetText1>. Text is truncated."

 

How can I trap for this error so that I can emit a warning using the LogXML function?

Link to comment
Share on other sites

In the .msg file, I get the following errors when my multipage PDF rule fails due to unexpected page sizes from my input files:

 

"The specified Keep conditions could not be honored in the flow <FundSheetText1>. Text is truncated."

 

How can I trap for this error so that I can emit a warning using the LogXML function?

I don't think you can. You can, however, go into the Composition Settings dialog, on the Advanced tab, and set "Abort on Errors of This Type" to "Minor", then select whether to abort the composition or just skip the record.

 

You might also be able to do something else to detect the condition where the page sizes are not as expected, such as measuring the resource's page sizes with a function similar to the one in this post, and then write a message to the XML log, or even call FusionPro.Composition.Abort.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...