How to troubleshoot "Unresolved ID reference" error?

tanja
Posts: 7
Joined: Tue Oct 30, 2018 10:49 am

How to troubleshoot "Unresolved ID reference" error?

Post by tanja » Thu Nov 05, 2020 10:37 am

Hi all,

I am creating PDF files using Oxygen XML Editor 22.1 and a publishing template with a customized version of the 'DITA Map PDF - based on HTML & CSS' transformation scenario. When creating a PDF file, I receive the following warning:

Code: Select all

"Destination: Unresolved ID reference "AG135_d7e61a1035" found.
"AG135" is the ID of my product. I set it in the topicmeta of my map as the value of the id attribute of the prodname element:

Code: Select all

<prodname id="AG135">Troubleshooting</prodname>
So I am pretty sure this ID is not referenced anywhere else. How can there be an unresolved reference?

I tried troubleshooting this issue following the solution for a broken link, https://www.oxygenxml.com/doc/versions/ ... a-pdf.html, but even after setting the clean.temp parameter to no, my temp folder does not contain a topic.fo file. And the retain.topic.fo parameter is not available in my parameter list, so the solution stated in this topic also does not work : https://www.oxygenxml.com/doc/versions/ ... l=topic.fo

Do you have any ideas how I can tackle this issue? It's only version 22 that is causing the issue, versions 21 and 20 do not show the warnings.

Thanks, Tanja

julien_lacour
Posts: 164
Joined: Wed Oct 16, 2019 3:47 pm

Re: How to troubleshoot "Unresolved ID reference" error?

Post by julien_lacour » Thu Nov 05, 2020 4:27 pm

Hello,

This issue is already fixed in Oxygen 23.0 (which release is really soon).
Anyway, you can still generate your outputs even with this warning, it is not problematic for the PDF.

The problem was due to the existence of IDs on hidden elements (the <prodname> is set with display: none in the PDF).
All these IDs are converted to named-destinations in the final output but in Oxygen 23.0 if the containing element is not displayed, the named-destination is not generated and the warning disappear.

You did not see this issue on older version because the Result view is available since Oxygen 22. Before that the warning was still present but only displayed in the console output of the transformation (hidden by default - shown when errors only).

Thank you for your report.

Regards,
Julien

tanja
Posts: 7
Joined: Tue Oct 30, 2018 10:49 am

Re: How to troubleshoot "Unresolved ID reference" error?

Post by tanja » Thu Nov 05, 2020 6:15 pm

Hello Julien,

Thanks for the quick reply and the explanation as to where the error comes from.

You are correct, my PDF looks fine. I was just wondering if I set up my map incorrectly.
As this is not the case, I will happily ignore the warning and wait for Oxygen 23.0 :)

Regards,
Tanja

Post Reply