Admin
October 14th, 2008, 10:47 AM
(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
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