Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Script engine error: Report parameter "HomeFolder" does not exist.
jasonws
Hi, I'm getting an error when generating a report with BIRT Runtime. I set the value of the Home Folder Property Binding to params["HomeFolder"] and then tried to generate the report using the following commands.
C:\>%BIRT_HOME%\ReportEngine\genReport -f PDF -p HomeFolder=C:\FlatFiles c:\BIRTReports\BMFInvoice.rptdesign
C:\>%BIRT_HOME%\ReportEngine\genReport -f PDF -p "HomeFolder=C:\FlatFiles" c:\BIRTReports\BMFInvoice.rptdesign
C:\>%BIRT_HOME%\ReportEngine\genReport -f PDF -p "HomeFolder"="C:\FlatFiles" c:\BIRTReports\BMFInvoice.rptdesign
All of them resulted in the following error:
Oct 28, 2010 2:31:44 PM org.eclipse.birt.report.engine.data.dte.AbstractDataEngine prepare
SEVERE: Error evaluating Javascript expression. Script engine error: Report parameter "HomeFolder" does not exist.
Script source: <inline>, line: 0, text: params["HomeFolder"]
Any assistance would be appreciated.
Thanks,
Jason
Find more posts tagged with
Comments
jasonws
Here's an image of the parameter value.
jasonws
From
http://digiassn.blogspot.com/2006/09/birt-passing-parameters-from-command.html
I found that -p "PARAMETER=VALUE" is the correct format. So that's not the issue.
johnw
<blockquote class='ipsBlockquote' data-author="'jasonws'" data-cid="69851" data-time="1288294201" data-date="28 October 2010 - 12:30 PM"><p>
From <a class='bbc_url' href='
http://digiassn.blogspot.com/2006/09/birt-passing-parameters-from-command.html'>http://digiassn.blogspot.com/2006/09/birt-passing-parameters-from-command.html</a>
; I found that -p "PARAMETER=VALUE" is the correct format. So that's not the issue.<br /></p></blockquote>
<br />
Can you post the report design. I will take a look at it.<br />
<br />
John
jasonws
Thanks, John. I appreciate it!<br />
<br />
<blockquote class='ipsBlockquote' data-author="'johnw'" data-cid="69912" data-time="1288634537" data-date="01 November 2010 - 11:02 AM"><p>
Can you post the report design. I will take a look at it.<br />
<br />
John<br /></p></blockquote>
johnw
There isn't a parameter called "HomeFolder" defined in your report. I went ahead and modified it, added the parameter, and modified the script to check if it is null before it uses the value of the passed in parameter. That should take care of your issue.
John