Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 7th, 2011, 05:24 AM
mclisa81 mclisa81 is offline
Regular Contributor
 
Join Date: Oct 2008
Location: Manchester CT
Posts: 97
Default OnNewOutputFile error

Hi,

We've recently upgraded from FP6.2 to 7.1. I have been using the same "OnNewOutputFile" rule for quite some time and now after upgrading it gets an error when composing. Nothing has changed with this template besides the upgrade. Can someone let me know what I need to change now to fix this. Thanks.

msg error

OnNewOutputFile, line 1: Error: In Field(), no data source defined or data could not be loaded.

Code:
FusionPro.Composition.outputFileName="604292-"+(Field("Barcode")+".pdf")
Reply With Quote
  #2  
Old January 18th, 2011, 04:42 AM
mclisa81 mclisa81 is offline
Regular Contributor
 
Join Date: Oct 2008
Location: Manchester CT
Posts: 97
Default Re: OnNewOutputFile error

Does anyone have any ideas on this? My output seems ok, I'm just curious as to why after upgrading I am getting an error.
Reply With Quote
  #3  
Old January 19th, 2011, 09:39 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,322
Default Re: OnNewOutputFile error

I don't have any problems with the OnNewOutputFile rule, in a test job with similar logic, using the latest version of FusionPro. Can you collect up a minimal example job which demonstrates the problem and either post it here or send it to Support?
__________________
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)});
Reply With Quote
  #4  
Old January 19th, 2011, 10:21 AM
mclisa81 mclisa81 is offline
Regular Contributor
 
Join Date: Oct 2008
Location: Manchester CT
Posts: 97
Default Re: OnNewOutputFile error

Hi Dan,

I'll post the collected files, along with 2 message files. Same data used - (1 with FusionPro 6.2P1c, 1 with FusionPro 7.1P1c). There has been no changes to this template except for the update to FusionPro and as you can see after the update I am now getting an error.

Thanks
Attached Files
File Type: zip AS00010_Stampimage.zip (1.20 MB, 5 views)
Reply With Quote
  #5  
Old January 19th, 2011, 06:20 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,322
Default Re: OnNewOutputFile error

That message can be safely ignored. As you have seen, your output file will still be properly named; you'll just get the false message once per composition. So it's a reporting bug, against which I've created case FP-11499.

I didn't see the problem when I tried it in the Frodo Travel tutorial, because that job does preprocessing for FP Expression images, and the preprocessing suppresses that message. Turning on imposition stacking will also invoke preprocessing and suppress the message.
__________________
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)});
Reply With Quote
  #6  
Old January 20th, 2011, 03:33 AM
mclisa81 mclisa81 is offline
Regular Contributor
 
Join Date: Oct 2008
Location: Manchester CT
Posts: 97
Default Re: OnNewOutputFile error

Thanks for your help Dan.
Reply With Quote
  #7  
Old March 2nd, 2011, 10:57 PM
aronallenson aronallenson is offline
Junior Community Member
 
Join Date: Mar 2011
Location: A little North and West of Chicago
Posts: 13
Default Re: OnNewOutputFile error

Hi Dan,

I have the same issue but if I try to use any PDF security such as no changes to the PDF, no output file is produced and FP hangs.

Any ideas?

Aron
Reply With Quote
  #8  
Old March 3rd, 2011, 02:47 PM
aronallenson aronallenson is offline
Junior Community Member
 
Join Date: Mar 2011
Location: A little North and West of Chicago
Posts: 13
Default Re: OnNewOutputFile error

I am running into the same error but no output file is produced.
This occurs when I turn on PDF security.
If I turn off PDF security, I get the same response as is written above.

Any ideas
Reply With Quote
  #9  
Old March 3rd, 2011, 04:21 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,322
Default Re: OnNewOutputFile error

Quote:
Originally Posted by aronallenson View Post
I am running into the same error but no output file is produced.
This occurs when I turn on PDF security.
Sorry, that is a different bug, one about which I was not aware.

This bug doesn't have anything to do with the OnNewOutputFile rule. You'll get the same crash if you have the "Output to multiple files" box checked and you're using PDF Security, regardless of whether you're trying to rename the output file in OnNewOutputFile or doing preprocessing. Apparently that particular combination of features (output to multiple files with PDF security) is not covered in our QA testing.

I've entered case FP-11516 regarding this issue, and we'll make sure it gets fixed in the 7.2 release. (Actually, I've already fixed it.)

In the meantime, you'll have to either not use security or output to a single file. Or you can compose to a non-PDF-based output format (which ignores the PDF Security settings). If these workarounds are not acceptable, please contact Support and they will escalate the issue.
Quote:
Originally Posted by aronallenson View Post
If I turn off PDF security, I get the same response as is written above.
That's just the aforementioned reporting bug (FP-11499), which is harmless, although that's targeted for a fix in 7.2 as well.
__________________
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; March 3rd, 2011 at 04:27 PM..
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 09:38 PM.


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