Jump to content

nwarnock

Members
  • Posts

    4
  • Joined

  • Last visited

About nwarnock

  • Birthday October 24

nwarnock's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. I know this is nine years later, but maybe it helps someone. This error is often triggered by comments in the code. If I go back and remove commenting, both --comment and /* comment */, that often stops the error. Other times, the editor has no problem with comments. My suspicion is that something gets screwy in the source java code, but I'm building reports without knowledge of java, so I am working rather blind in that regard. Example that throws error: WITH TARGET_SN AS ( SELECT INV.SERIAL_NO_OEM, INV.INV_NO_DB_ID, INV.INV_NO_ID, INV.INV_CLASS_CD, INV.H_INV_NO_DB_ID, INV.H_INV_NO_ID FROM INV_INV INV WHERE /* INV.INV_NO_DB_ID = $P{INV_NO_DB_ID} AND INV.INV_NO_ID = $P{INV_NO_ID} */ INV.INV_NO_DB_ID = 1080001 AND INV.INV_NO_ID = 3334616 -- INV.SERIAL_NO_OEM = '038842' -- LEAP INSRV: '603905' LEAP NOT INSRV: '602616' -- CFM56-7 INSRV: '889692', '891608', '892587' (no LPT REAR FRAME), '960843', '660371', '038842' CFM56-7 NOT INSRV: '890780' AND INV.INV_CLASS_CD = 'ASSY' ) -- Pulls Life Limited Parts for the Engine assembly PARTS_TASKS AS ( /* Adapted from query "GetTasksForPart.qrx" in query repository */ SELECT DISTINCT PARTS.PART_NO_DB_ID, PARTS.PART_NO_ID, TASK_TASK.TASK_CLASS_CD FROM EQP_PART_NO PARTS INNER JOIN EQP_PART_BASELINE ON -- list of alternate part numbers (cross-ref between usual part and alternate parts) PARTS.PART_NO_DB_ID = EQP_PART_BASELINE.PART_NO_DB_ID AND PARTS.PART_NO_ID = EQP_PART_BASELINE.PART_NO_ID INNER JOIN EQP_BOM_PART ON EQP_PART_BASELINE.BOM_PART_DB_ID = EQP_BOM_PART.BOM_PART_DB_ID AND EQP_PART_BASELINE.BOM_PART_ID = EQP_BOM_PART.BOM_PART_ID INNER JOIN EQP_ASSMBL_BOM ON EQP_BOM_PART.ASSMBL_DB_ID = EQP_ASSMBL_BOM.ASSMBL_DB_ID AND EQP_BOM_PART.ASSMBL_CD = EQP_ASSMBL_BOM.ASSMBL_CD AND EQP_BOM_PART.ASSMBL_BOM_ID = EQP_ASSMBL_BOM.ASSMBL_BOM_ID INNER JOIN TASK_TASK ON EQP_BOM_PART.ASSMBL_DB_ID = TASK_TASK.ASSMBL_DB_ID AND EQP_BOM_PART.ASSMBL_CD = TASK_TASK.ASSMBL_CD AND EQP_BOM_PART.ASSMBL_BOM_ID = TASK_TASK.ASSMBL_BOM_ID WHERE PARTS.PART_TYPE_CD = 'ATA-72PP' Example that stops error: WITH TARGET_SN AS ( SELECT INV.SERIAL_NO_OEM, INV.INV_NO_DB_ID, INV.INV_NO_ID, INV.INV_CLASS_CD, INV.H_INV_NO_DB_ID, INV.H_INV_NO_ID FROM INV_INV INV WHERE INV.INV_NO_DB_ID = 1080001 AND INV.INV_NO_ID = 3334616 AND INV.INV_CLASS_CD = 'ASSY' ) PARTS_TASKS AS ( SELECT DISTINCT PARTS.PART_NO_DB_ID, PARTS.PART_NO_ID, TASK_TASK.TASK_CLASS_CD FROM EQP_PART_NO PARTS INNER JOIN EQP_PART_BASELINE ON PARTS.PART_NO_DB_ID = EQP_PART_BASELINE.PART_NO_DB_ID AND PARTS.PART_NO_ID = EQP_PART_BASELINE.PART_NO_ID INNER JOIN EQP_BOM_PART ON EQP_PART_BASELINE.BOM_PART_DB_ID = EQP_BOM_PART.BOM_PART_DB_ID AND EQP_PART_BASELINE.BOM_PART_ID = EQP_BOM_PART.BOM_PART_ID INNER JOIN EQP_ASSMBL_BOM ON EQP_BOM_PART.ASSMBL_DB_ID = EQP_ASSMBL_BOM.ASSMBL_DB_ID AND EQP_BOM_PART.ASSMBL_CD = EQP_ASSMBL_BOM.ASSMBL_CD AND EQP_BOM_PART.ASSMBL_BOM_ID = EQP_ASSMBL_BOM.ASSMBL_BOM_ID INNER JOIN TASK_TASK ON EQP_BOM_PART.ASSMBL_DB_ID = TASK_TASK.ASSMBL_DB_ID AND EQP_BOM_PART.ASSMBL_CD = TASK_TASK.ASSMBL_CD AND EQP_BOM_PART.ASSMBL_BOM_ID = TASK_TASK.ASSMBL_BOM_ID WHERE PARTS.PART_TYPE_CD = 'ATA-72PP'
  2. Thomas, I've gone thru and built that. It doesn't get into adding an existing main jrxml from another report unit. It was interesting and potentially useful to see that the Cover&TOC and Backcover are the equivalents of the group bands in a standard report, much like the book parts are equivalent to subreports in a standard report.
  3. Hi, Thomas, Thank you for your response. I did start from the Wizard, using the empty book template. I have been in and out of that section of the user guide. It's for a more recent version of JS, but hopefully it applies to my slightly older version. 😄 Neva
  4. Hello! I am hoping someone can help me figure out how to get my new Report book running from JasperServer. My guess is that I need to change my Component Expression, but it could be something else entirely. I am working with Jaspersoft Studio Professional 7.9.0, Visual Designer for JasperReports 6.16.0, JasperServer 7.9.2.6 We have one Report book that was set up a few years ago, because we needed one book part (report) to be landscape and another to be portrait. Now I am working on another Report book, which will also have parts/reports with different orientations. It will also share one part/report with the older book (and have two other parts/reports). So that means that we have a goal for the parts to dynamically reference the parent report. I have the three individual reports working fine, in Studio Preview and on the server. The new Report book works in Studio Preview, however, throws "Resource Not Found" errors on the server. The book parts each reference their respective locations, like: Component Expression: "organizations/Reports/Custom/OrderInvoiceForm_files/main_jrxml.jrxml" Error Message Resource not found at: organizations/Reports/Custom/OrderInvoiceForm_files/main_jrxml.jrxml. (Error UID: 085d18b9-34d2-4b20-9be5-bd66dbc0355f) (Error UID: 3d209160-3785-4875-9c5a-cdce4bfe026e) In the Properties on JasperServer, the path of the unit "OrderInvoiceForm" is "/organizations/Reports/Custom/OrderInvoiceForm" I see that Properties also shows Resource ID: OrderInvoiceForm In Studio, thru the Repository Explorer, I see this: Still in Studio, the properties of Main show this: Thanks so much! Neva
×
×
  • Create New...