How to Avoid Missing xfasubset.js Error in ADEP Forms

If you try to render an XFA form as HTML, chances are that you will encounter the following error:
ERROR [com.adobe.livecycle.formsservice.exception.FormServerException] (http-0.0.0.0-8080-97) ALC-FRM-001-006: URI not found: /scripts/xfasubset.js Cause: \scripts\xfasubset.js (The system cannot find the path specified)

xfasubset.js is a BLOB of Javascript that implements XFA scripting support in HTML and will be referenced from the HTML form. The trick is in figuring out the HTTP-accessible repository URL for it.

If your application is an ADEP Document Services orchestration, and if you keep your form templates in ADEP’s RDBMS repository, you can determine that URL in Workbench from the REST “Programmatic Start Point”. Eg: if your “application” is called ‘MAX-PL1380′ and if the orchestration (process) is named ‘RenderHTMLFormWithSomeXMLData’, the REST endpoint will be http://jayan.adobe.com:8080/rest/services/MAX-PL1380/service_orchestrations/RenderHTMLFormWithSomeXMLData:1.0

In Workbench, the ‘RenderHTMLForm’ operation should have the value for ‘Application Web Root‘ set as http://jayan.adobe.com:8080/repository/Applications/MAX-PL1380/1.0/ and the value for ‘Base URL‘ set as http://jayan.adobe.com:8080/repository/Applications/MAX-PL1380/1.0/form_templates.

/form_templates is the folder which holds the form template being rendered. If done properly, the HTML form will be able to help the browser resolve and find the Javascript files such as these:
http://jayan.adobe.com:8080/FormServer/scripts/fscattachments.js
http://jayan.adobe.com:8080/FormServer/scripts/fscmenu.js

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 10.0/10 (2 votes cast)
How to Avoid Missing xfasubset.js Error in ADEP Forms, 10.0 out of 10 based on 2 ratings
This entry was posted in ADEP, Adobe LiveCycle ES, Adobe LiveCycle ES2 (9.0.x), Document Services and tagged , , . Bookmark the permalink.

Comments are closed.