Hi
I've got a form which uses fragments. This form previews fine in the designer, but when I try to run it using generatePDF Output in a process, the parts that come from the fragments are gone.
The following entries are in the log:
ALC-OUT-002-058: Cannot retrieve the resource from Repository Path.
Authority component retrieved is "..". Path component retrieved is "/Fragments/scCoords.xdp".Underlying Exception is : ALC-REP-018-000:
Resource [/Fragments/scCoords.xdp] does not exist or you do not have sufficient rights to access it.
2010-09-07 11:46:59,987 WARN
[com.adobe.livecycle.formsservice.exception.FormServerException]
ALC-OUT-002-058: Cannot retrieve the resource from Repository Path.
Authority component retrieved is "..". Path component retrieved is "/Fragments/BookmarkPage.xdp".Underlying Exception is : ALC-REP-018-000:
Resource [/Fragments/BookmarkPage.xdp] does not exist or you do not have sufficient rights to access it.
2010-09-07 11:46:59,997 WARN
[com.adobe.livecycle.formsservice.exception.FormServerException]
ALC-OUT-002-058: Cannot retrieve the resource from Repository Path.
Authority component retrieved is "..". Path component retrieved is "/Fragments/bookmarks.xdp".Underlying Exception is : ALC-REP-018-000:
Resource [/Fragments/bookmarks.xdp] does not exist or you do not have sufficient rights to access it.
2010-09-07 11:47:00,007 WARN
[com.adobe.livecycle.formsservice.exception.FormServerException]
ALC-OUT-002-058: Cannot retrieve the resource from Repository Path.
Authority component retrieved is "..". Path component retrieved is "/Fragments/scMessage.xdp".Underlying Exception is : ALC-REP-018-000:
Resource [/Fragments/scMessage.xdp] does not exist or you do not have sufficient rights to access it.
Does anyone have any idea what the problem might be?
Thanks
Dan
Please check http://kb2.adobe.com/cps/521/cpsid_52158.html
It should help you understand why the fragments are lost.
Regards
-Vikas
Thanks a lot for your reply - that certainly looks like the problem I'm running into. Unfortunately the solutions it offers are:
I can't work out how to do either of these though. When I add a fragment to my form I can't find a way to stop it using a relative path (ie: ..\Fragments\BookmarkPage.xdp), and if I go into the Fragment info after it's attached it shows me this path, but won't let me edit it.
Do you know how to do it?
Thanks
Dan
For anyone who'se interested I found the solution on this thread:
http://forums.adobe.com/thread/799719
Here it is:
Assuming you launched Designer in Workbench and used that to add the fragments to the template, then the relative paths should be alright. What you need to add is some information to tell Output where to start with the relative paths.
In your generatePDF call, under Template Options there is a Content Root URI field. Output uses this, along with the paths in the form template to find the fragments. The Content Root URI should point to the form template (not the fragments).
For example. Say I have an application called GeneratePDF_Test v1.0 which has both a Fragments and a Forms directory. Using Designer I create a new form and add the fragments from the Fragments directory. Designer sets up my relative paths for me. I save the form to the Forms directory.
In the generatePDF step I set the Content Root URI to:
repository:///Applications/GeneratePDF_Test/1.0/Forms/
Now Output knows where to start the relative paths so it can find the fragments
North America
Europe, Middle East and Africa
Asia Pacific