newjersey / taxation-mef-viewer

Fork of betson/irs-efile-viewer for DOT use
MIT License
0 stars 0 forks source link

[BUG] There was a problem generating <TAX FORM> #19

Open jachan opened 1 month ago

jachan commented 1 month ago

Background

User testing of the webapp revealed an issue with the viewer where some forms fail to display. This could be an issue with the underlying XML or with the transform. This occurs in 4 out of 30+ of the tax forms in the Consolidated Group XML forms.

Steps to Reproduce

  1. Navigate to Beta MeF Viewer
  2. Open Consolidated Group XML provided by Joe
  3. Attempt to open 1118 Schedule J form, this should produce the error: "There was a problem generating 1118 Schedule J." at the top of the webapp.

Acceptance Criteria

Fix is merged and deployed to the beta site.

jachan commented 1 month ago

Seeing the following errors in the console:

TypeError: XSLTProcessor.importStylesheet: Argument 1 is not an object.

render transform.js:332 generateAndDisplayForm transform.js:251

jachan commented 1 month ago

Root cause is an issue with the Schedule J 1118 template, see https://github.com/newjersey/taxation-mef-viewer/blob/main/mef/Stylesheets/2020/IRS1118ScheduleJ.xsl#L977.