DOTX031E error for file in same directory

Post here questions and problems related to editing and publishing DITA content.
GHogarth
Posts: 26
Joined: Tue Aug 27, 2019 10:55 pm

DOTX031E error for file in same directory

Post by GHogarth »

Hi: I'm getting the following error on a transform.

Code: Select all

System ID: C:\DEV\GPSS\c_join_function.dita
Scenario: GPSS (PDF (CSS Formatter - HTML5))
Input file: C:\DEV\GPSS\GPSS.ditamap
Engine name: DITA-OT
Severity: error
Description: [DOTX031E]: The file c_find_function.dita is not available to resolve link information.
Start location: 6:79
Both files are in the same folder, c_find_function.dita is not write or read protected, and there are other links (one in the same "c_join_function" file) that do not throw this error. I read the other forum post on this, and tried changing the link to

Code: Select all

<xref href="c_find_function.dita#c_find_function" type="concept"/>
but this did not resolve the error.
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: DOTX031E error for file in same directory

Post by Radu »

Hi,

Hard to tell what's wrong without having a sample DITA project to reproduce the problem.
I would guess something like this could happen because the "c_find_function.dita" topic is not referenced directly in the DITA Map (it's just referenced in topics), so it will not appear in the final PDF, thus all links to it become broken.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
GHogarth
Posts: 26
Joined: Tue Aug 27, 2019 10:55 pm

Re: DOTX031E error for file in same directory

Post by GHogarth »

Here is the Map structure:
I have bolded the relevant lines.
-------------------------------------------------
*** BOOKMAP ***
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd">
<bookmap>
<booktitle>
<mainbooktitle>Partner IR Database Implementation Guide</mainbooktitle>
<booktitlealt/>
</booktitle>
<bookmeta> </bookmeta>
<frontmatter>
<notices>
<topicmeta> **** </topicmeta>
<topicref href="topics/r_copyight.dita" navtitle="Copyright notices" toc="no"/>
</notices>
<topicref href="zz_task_snippets.dita" navtitle="Task Snippet source file" toc="no" processing-role= "resource-only"/>
<keydef keys="gpss_keys" href="customization/gpss_keys.ditamap" format="ditamap" processing-role= "resource-only"/>
<booklists>
<toc/>
</booklists>
</frontmatter>
<chapter href="c_introduction.dita" format="dita" navtitle="Introduction"/>
<chapter href="0.workflow_diagrams.ditamap" format="ditamap" navtitle="Workflow diagrams"/>
<chapter href="0.checklists_and_trackers.ditamap" format="ditamap" navtitle="Project Plan, Checklists, and Trackers"/>
<chapter href="0.implementation_process.ditamap" format="ditamap" navtitle="Implementation process"/>
<chapter href="zz_glossary.dita"/>
<backmatter>
<booklists>
<indexlist/>
</booklists>
</backmatter>
</bookmap>
-------------------------------------------------
*** Chapter Map ***
-------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<!-- This is the map for the Implementation Process chapter -->
<map>
<title>Implementation Process</title>
<topichead navtitle="Implementation Process">
<!-- Phase 1 -->
<topichead navtitle="Phase 1: Kickoff">
<topicref href="c_phase1-kickoff-overview.dita" format="dita" navtitle="Kickoff overview"/>
<topicref href="0.setting_up_accounts.ditamap" format="ditamap" navtitle="Setting up accounts"/>
<topicref href="0.ip.project_discovery.ditamap" format="ditamap" navtitle="Project discovery"/>
<topicref href="0.ip.sox_data_template_tabs.ditamap" format="ditamap" navtitle="Understanding the SOX data template tabs"/>
<topicref href="0.ip.using_the_shell_account.ditamap" format="ditamap" navtitle="Using the shell account"/>
</topichead>
<!-- Phase 2 -->
<topichead navtitle="Phase 2: Document and Database Delivery">
<topicref href="c_document_dbase_delivery_overview.dita" format="dita"
navtitle="Overview"/>
<topicref href="0.database_toolbox.ditamap" format="ditamap"
navtitle="Using the Database Toolbox"/>
<topicref href="0_using_import_template_sheets.ditamap" format="ditamap"
navtitle="Using import template sheets"/>
<topicref href="0_preparing_the_database.ditamap" format="ditamap"
navtitle="Preparing the database"/>
<topicref href="0_setup_beyond_the_database.ditamap" format="ditamap"
navtitle="Setup: Beyond the database"/>
</topichead>
<!-- Phase 3 -->
<topichead navtitle="Phase 3: Project Review and Handoff">
<topicref href="0_phase3_project_review_handoff.ditamap" format="ditamap"/>
</topichead>
<!-- Phase 4 -->
<topichead navtitle="Phase 4: Go Live">
<topicref href="0_phase4_golive.ditamap" format="ditamap"/>
</topichead>
</topichead>
</map>
-------------------------------------------------
*** Section Map ***
-------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<!-- This is the map for the Database Toolbox section -->
<map>
<title>Database Toolbox</title>
<topichead navtitle="Database Toolbox">
<topicmeta><keywords><indexterm start="db_tb">database toolbox</indexterm>
<indexterm end="db_tb">database toolbox</indexterm></keywords>
</topicmeta>
<topicref href="0.dt.understanding_and_working_with_models.ditamap" format="ditamap"
navtitle="Understanding and working with models"/>
<topicref href="0_understand_graph_structure-graphical_edit.ditamap" format="ditamap"
navtitle="Understanding graph structure and using Graphical Edit"/>

<topicref href="0.dt.using_data_mapping.ditamap" format="ditamap"
navtitle="Using data mapping"/>
</topichead>
</map>
-------------------------------------------------
*** Subsection Map ***
-------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<!-- This is the map for the Graph Structure and Graphical Edit tool sub-section -->
<map>
<title>Understanding graph structure and using Graphical Edit</title>
<topicref navtitle="Understanding graph structure and using Graphical Edit">
<topicref href="c_overview_GStruct-Gedit.dita"/>
<topicref href="t_opening_graphical_edit.dita"/>
<topicref href="c_working_with_data_types.dita" navtitle="Working with data types">
<topicref href="t_adding_a_data_type.dita" navtitle="Adding a data type"/>
<topicref href="t_deleting_a_data_type.dita" navtitle="Deleting a data type"/>
<topicref href="t_editing_a_data_type.dita" navtitle="Editing a data type"/>
</topicref>
<topicref href="c_working_with_properties.dita" navtitle="Working with properties">
<topicref href="t_adding_a_property.dita" navtitle="Adding a property"/>
<topicref href="t_deleting_a_property.dita" navtitle="Deleting a property"/>
<topicref href="c_editing_a_property.dita" navtitle="Editing a property"/>
</topicref>
<topicref href="c_working_with_relationships.dita" navtitle="Working with relationships">
<topicref href="t_adding_a_relationship.dita" navtitle="Adding a relationship"/>
<topicref href="t_deleting_a_relationship.dita" navtitle="Deleting a relationship"/>
<topicref href="c_editing_a_relationship.dita" navtitle="Editing a relationship"/>
</topicref>
<topicref href="c_using_computed_properties.dita" navtitle="Using computed properties">
<topicref href="c_compose_function.dita" navtitle="Compose function"/>
<topicref href="c_find_function.dita" navtitle="Find function"/>
<topicref href="c_join_function.dita" navtitle="Join function"/>
</topicref>
<topicref href="c_model_items_to_keep_in_mind.dita" navtitle="Model items to keep in mind"/>
</topicref>
</map>
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: DOTX031E error for file in same directory

Post by Radu »

Hi,

Not sure, if you open the "c_find_function.dita" in Oxygen does it report any kind of validation error?
If you open the main DITA Map in the Oxygen DITA Maps Manager view and use the "Validate and check for completeness" toolbar action does it report any problem?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
GHogarth
Posts: 26
Joined: Tue Aug 27, 2019 10:55 pm

Re: DOTX031E error for file in same directory

Post by GHogarth »

No error on page open/validation for either the host page or the target page..
The only errors on the Book ditamap validation are for having too long a shortdesc in several topics (none of them are the problem one or the one it it referencing) , and a couple of unreferenced keys.
I have tried removing and re-doing the link; no change.
Both topic appear correctly in the PDF file, and the link works as expected.

In the Formatting log, I get the following error:

Code: Select all

[topicpull] I/O error reported by XML parser processing file:/C:/Users/Grant.Hogarth/Downloads/oxygen-publishing-engine-3.x/plugins/org.dita.base/xsl/preprocess/c_find_function.dita: C:\Users\Grant.Hogarth\Downloads\oxygen-publishing-engine-3.x\plugins\org.dita.base\xsl\preprocess\c_find_function.dita (The system cannot find the file specified)
[topicpull] file:/C:/DEV/GPSS/c_join_function.dita:6:28: [DOTX031E][ERROR]: The file c_find_function.dita is not available to resolve link information. 
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: DOTX031E error for file in same directory

Post by Radu »

Hi Grant,

I remember I've seen a similar problem before, with the topic being searched in the wrong folder.
Do you refer to the "c_find_function.dita" topic inside a short description?
Then this could be related to:

https://github.com/dita-ot/dita-ot/issues/3078

The problem is that a topic's short description is also used when hovering over links which point to it and in this case the publishing engine attempts to convert it to plain text and it has trouble doing this if it has links inside.

From what version of Oxygen did you obtain the publishing engine? I tried to fix this I think in Oxygen 21.1 but my fix did not work in all cases.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
GHogarth
Posts: 26
Joined: Tue Aug 27, 2019 10:55 pm

Re: DOTX031E error for file in same directory

Post by GHogarth »

Yes, it is contained in the <shortdesc>, and removing it from that location removes the error.
Thank you Radu!
Post Reply