Go Back   MarcomCentral (PTI) and FusionPro User Communities > Support > Issues, Questions, Etc.

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 14th, 2008, 09:47 AM
Admin's Avatar
Admin Admin is offline
Administrator
 
Join Date: Oct 2007
Posts: 331
Default Issue with OnNewOutPutFile Callback Rule

(Originally from user Dsweet)

Hello,

Did a quick search for OnNewOutputFile and only got this thread as a response.

I will be having a recurring project that will be fed nearly 100,000 or so records at a time and the desire is to create separate output pdf files for each record based on unique field entries in the data file. I thought that this would be tailor-made for this callback rule. However I have one major glitch in the process. The rule works on my desktop version, but not on the server? Both Acrobat and FusionPro are the same version (Acrobat 8.1.2 - FusionPro 4.2P1d) with the only difference being I'm working on Widows XP Pro and the server is Windows 2000 (sp4 installed).

I've tried both the full pathname and the basic output file version of this callback rule and get the same results with each. This is the coding for the two versions of the rule that I used...

basic...
FusionPro.Composition.outputFileName = Field("jobID") + "_testFile_" + Field("Market Code") + ".pdf";

full pathname...
FusionPro.Composition.outputFileFullPathName = "D:\\fusionProJobs\\testBatch\\" + Field("jobID") + "_testFile_" + Field("Market Code") + ".pdf";

I've put report message lines at the entrance and exit of the rule to help track the composition. I've also made certain that the path is acurate for both systems. I had my computer drives remapped to match the drive letters for the servers that we use. I've also tried the unc path name thinking that it still might be possible that a location error might occur. Still the same result.

When I compose the template on my desktop, the message file contains the following...
Job started 13:48:56 - 1223920136.
OnNewOutputFile, line 1: Entered OnNewOutputFile
OnNewOutputFile, line 3: Exited OnNewOutputFile
Begun composing record #1
OnNewOutputFile, line 1: Entered OnNewOutputFile
OnNewOutputFile, line 3: Exited OnNewOutputFile
Begun composing record #2
OnNewOutputFile, line 1: Entered OnNewOutputFile
OnNewOutputFile, line 3: Exited OnNewOutputFile
Begun composing record #3
OnNewOutputFile, line 1: Entered OnNewOutputFile
OnNewOutputFile, line 3: Exited OnNewOutputFile
Begun composing record #4
OnNewOutputFile, line 1: Entered OnNewOutputFile
OnNewOutputFile, line 3: Exited OnNewOutputFile

...and so on through to the end of the data file - just as I would expect. However the same file that is created on server contains...

Job started 13:52:44 - 1223920364.

... and that's it! The only message that I do get is in the command window when I envoke FusionPro and it states...

Composing Document...
Reading input
Reading input
Reading input

*****
FusionPro has encountered a fatal error and must abort.
If the problem persists, please call Printable Technical Support.
*****

It appears that FusionPro doesn't even get to the callback rule at all or the entrance message would have been contained in the file. I've gone this route last year with Printable Technical Support, and even sent them files to work on. I'm still waiting to hear back from them.

I just wondered if anyone can see a problem in my coding, or if someone else has had this situation and figured a solution to it. I REALLY don't want to have to do this project via a desktop composition. This is why we bought the server version for in the first place.
__________________
David A. Sweet
Variable Data Specialist
HKM Direct Market Communications
Reply With Quote
  #2  
Old October 14th, 2008, 09:47 AM
Admin's Avatar
Admin Admin is offline
Administrator
 
Join Date: Oct 2007
Posts: 331
Default Re: Issue with OnNewOutPutFile Callback Rule

David,

I'm actually looking into this right now.

Thanks
__________________
Forum Administrator
PTI Marketing Technologies, Inc.
Reply With Quote
  #3  
Old October 14th, 2008, 09:48 AM
Admin's Avatar
Admin Admin is offline
Administrator
 
Join Date: Oct 2007
Posts: 331
Default Re: Issue with OnNewOutPutFile Callback Rule

David,

in Acrobat, go to FusionPro > Compose...

In the Composition Settings dialog, under the Advanced tab, do you have anything set for "Abort on errors..."?

Thanks
__________________
Forum Administrator
PTI Marketing Technologies, Inc.
Reply With Quote
  #4  
Old October 14th, 2008, 09:48 AM
Admin's Avatar
Admin Admin is offline
Administrator
 
Join Date: Oct 2007
Posts: 331
Default Re: Issue with OnNewOutPutFile Callback Rule

(Originally from user Dsweet)

That tab is set for "Do not Abort".
__________________
David A. Sweet
Variable Data Specialist
HKM Direct Market Communications
Reply With Quote
  #5  
Old October 14th, 2008, 09:49 AM
Admin's Avatar
Admin Admin is offline
Administrator
 
Join Date: Oct 2007
Posts: 331
Default Re: Issue with OnNewOutPutFile Callback Rule

Can you collect the files (except the fonts) into a ZIP file and attach them here? I'll take a look.
__________________
Forum Administrator
PTI Marketing Technologies, Inc.
Reply With Quote
  #6  
Old October 14th, 2008, 09:53 AM
Admin's Avatar
Admin Admin is offline
Administrator
 
Join Date: Oct 2007
Posts: 331
Default Re: Issue with OnNewOutPutFile Callback Rule

(Originally from user Dsweet)

Here is the collected template and the folder structure, resources and other files that are necessary.

Thank you for taking a look.
Reply With Quote
  #7  
Old October 14th, 2008, 09:54 AM
Admin's Avatar
Admin Admin is offline
Administrator
 
Join Date: Oct 2007
Posts: 331
Default Re: Issue with OnNewOutPutFile Callback Rule

There has to be something about the path you are defining. I took the job and changed the output path to C:\Temp\Output (since that exists on my computer) and it worked. I made no other changes (including to the filename - just the path).

JavaScript is case-sensitive - is the capitalization of the actual directory name the same as it is on the server?

__________________
Forum Administrator
PTI Marketing Technologies, Inc.
Reply With Quote
  #8  
Old October 14th, 2008, 09:55 AM
Admin's Avatar
Admin Admin is offline
Administrator
 
Join Date: Oct 2007
Posts: 331
Default Re: Issue with OnNewOutPutFile Callback Rule

(Originally from user Dsweet)

It also works on my computer (desktop version only), but not on our server via a command line. That's my problem -- I don't want to process 100,000 or more records at a time using my desktop alone. This small process took about 15 seconds to do 26 records. Image how long it would take to do the full 100,000! That would be over 16 hours to do this on my desktop - assuming a constant process speed and that the actual pdf files won't be any bigger than the sample files of 140k. A full day of time that I lost since I can't use the FusionPro server version for this. I'm assuming that it would compose faster on server, as well as the facts that being on server we could automate the process and it wouldn't tie up my computer and time for the full day.

I'm beginning to wonder why we purchased the server version at all if it doesn't function in the same manner as the desktop version does. It seems that we might have done just as good to purchase several standalone software packages and just linked them to several computers to do the processing. [IMG]file:///C:/Documents%20and%20Settings/rdomaschuk/Desktop/DeleteMe/thread/showthread.php_files/frown.gif[/IMG]
Reply With Quote
  #9  
Old October 14th, 2008, 02:30 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,462
Default Re: Issue with OnNewOutPutFile Callback Rule

The problem here is not related to the OnNewOutputFile Callback Rule. The same crash occurs even without that particular rule.

This is actually a manifestation of a bug which causes a crash (in FP Server but not in Desktop ) when using the FusionProResource.pagenumber property in a rule (any rule, not just a callback) in conjunction with chunking (Output to multiple files).

I apologize for the trouble. We are working on a solution to this problem. You may reference case FP-11043 in any follow-ups.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});

Last edited by Dan Korn; October 14th, 2008 at 02:34 PM.. Reason: clarification
Reply With Quote
  #10  
Old October 14th, 2008, 02:42 PM
Ching Yue Ching Yue is offline
Forum noob
 
Join Date: Oct 2008
Posts: 9
Default Re: Issue with OnNewOutPutFile Callback Rule

Hello,

Here is a workaround to your problem. I hope it is acceptable for you as a short term solution till we fix the issue in FusionPro.

In your rules that reference the PDF resources, at the very beginning, you can put in something like:
Code:
if (CurrentRecordNumber() == 1)
    return NullResource();
You will need to add this to both of your graphic rules. This will make the 1st record invalid. If you want to chunk by 1 record, your first output needs to be discarded. If you chunk by other numbers, use the feature to set the first chunk to be different from others.

Hope you can use this as a workaround.

Ching Yue
Printable Technologies

Last edited by Dan Korn; October 14th, 2008 at 04:08 PM.. Reason: Fixed spelling of CurrentRecordNumber; added [code] block
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.