# Error in HTML Schema Doc Generator

**URL:** <https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [September 30, 2014, 8:16am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059 "2014-09-30T08:16:30Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmtejero](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jmtejero](https://forums.toadworld.com/u/jmtejero)\
**Post date:** [September 30, 2014, 8:16am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/1 "2014-09-30T08:16:30Z")

</div>

Cannot create file “\.\CON”. El sistema no puede encontrar el archivo especificado

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [September 30, 2014, 8:56am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/2 "2014-09-30T08:56:34Z")

</div>

¿Qué escribe aquí? Utilice "C:" o algo así - una carpeta real, no "\."

 ![HTML.jpeg](https://global.discourse-cdn.com/quest/original/2X/d/da4867500e55a9691a4eba92370c3b18cadc0ede.jpeg)

---

<div class="post-metadata">

**Author:** ![jmtejero](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jmtejero](https://forums.toadworld.com/u/jmtejero)\
**Post date:** [September 30, 2014, 11:40pm UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/3 "2014-09-30T23:40:50Z")

</div>

![2061.error.jpeg](https://global.discourse-cdn.com/quest/original/2X/2/2e9ec5676234dfd2daee89097a3885db1e50d23e.jpeg)

---

<div class="post-metadata">

**Author:** ![damir.vadas\_250](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/damir.vadas_250/32/37_2.png) [@damir.vadas\_250](https://forums.toadworld.com/u/damir.vadas_250)\
**Post date:** [October 1, 2014, 12:19am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/4 "2014-10-01T00:19:44Z")

</div>

here are mine 5c thoughts.

You can’t make folders on the desktop that have “System Action” or “Device” references such

as con, nul and prn. Solution is to use another name or use 0 instead of o,O for C0n.

Here are others :

CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9,

LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9

But why is Toad understanding such a name … have no clue.

---

<div class="post-metadata">

**Author:** ![Bert\_Scalzo](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/bert_scalzo/32/274_2.png) [@Bert\_Scalzo](https://forums.toadworld.com/u/Bert_Scalzo)\
**Post date:** [October 1, 2014, 12:26am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/5 "2014-10-01T00:26:32Z")

</div>

When toad needs to do any work with a file name - it calls a Delphi function such as file open or file write or whatever - and all such functions in any language call out to Windows functions to perform that specific file action - and Windows honors those “reserved names”. That’s "standard " windows app behavior.

---

<div class="post-metadata">

**Author:** ![jmtejero](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jmtejero](https://forums.toadworld.com/u/jmtejero)\
**Post date:** [October 1, 2014, 12:28am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/6 "2014-10-01T00:28:24Z")

</div>

I have found that the error occurs when TOAD will create the html table file named CON

---

<div class="post-metadata">

**Author:** ![Bert\_Scalzo](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/bert_scalzo/32/274_2.png) [@Bert\_Scalzo](https://forums.toadworld.com/u/Bert_Scalzo)\
**Post date:** [October 1, 2014, 12:30am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/7 "2014-10-01T00:30:59Z")

</div>

Exactly - as Damir rightly pointed out that is one of those old DOS reserved words that Windows honors - it’s just like using a reserved word in SQL - just don’t do it 🙂

---

<div class="post-metadata">

**Author:** ![jmtejero](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jmtejero](https://forums.toadworld.com/u/jmtejero)\
**Post date:** [October 1, 2014, 1:13am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/8 "2014-10-01T01:13:07Z")

</div>

Ok, thank you very much everyone, but I will not be able to change the name because it is an external schema

---

<div class="post-metadata">

**Author:** ![damir.vadas\_250](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/damir.vadas_250/32/37_2.png) [@damir.vadas\_250](https://forums.toadworld.com/u/damir.vadas_250)\
**Post date:** [October 1, 2014, 4:06am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/9 "2014-10-01T04:06:55Z")

</div>

Interesting point.

Maybe Dell’s developers might parse names and replace only filenames adding “\_1” as sufix at the end of filename? I’m pretty sure that such a parsing is done in a case when some objects have the same name so avoid overwrite content in such a cases.

I strongly suggest to place this problem on Ideapond and see if this will be acceptable task for any further version.

---

<div class="post-metadata">

**Author:** ![Bert\_Scalzo](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/bert_scalzo/32/274_2.png) [@Bert\_Scalzo](https://forums.toadworld.com/u/Bert_Scalzo)\
**Post date:** [October 1, 2014, 5:16am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/10 "2014-10-01T05:16:13Z")

</div>

I get that you say you cannot change the file name - but what you want is specifically to be avoided (i.e. bad practice) and not common enough to warrant coding around. From MSDN website ([msdn.microsoft.com/…/aa365247(v=vs.85).aspx](http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx)) :

Do not use the following reserved names for the name of a file:

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names followed immediately by an extension; for example, NUL.txt is not recommended. For more information, see Namespaces.

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [October 1, 2014, 5:51am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/11 "2014-10-01T05:51:12Z")

</div>

We already have code to replace filename characters with underscores. It’s easy to add checks for these reserved words in the same place. It’s fixed for 12.7.

---

<div class="post-metadata">

**Author:** ![damir.vadas\_250](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/damir.vadas_250/32/37_2.png) [@damir.vadas\_250](https://forums.toadworld.com/u/damir.vadas_250)\
**Post date:** [October 1, 2014, 7:07am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/12 "2014-10-01T07:07:23Z")

</div>

> It's easy to add checks for these reserved words in the same place.

I'm not too familiar with option where you can say to alter different file name of object (i.e. TABLE or PACKAGE). Could you please tell us how?

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [October 1, 2014, 7:14am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/13 "2014-10-01T07:14:43Z")

</div>

Damir, there is no option.

The HTML schema doc generator produces files with the same name as your objects in the database. But if a database object name contains a character that is not a valid windows filename character, Toad will replace that character with an underscore when it writes the corresponding html file. We don’t do anything to the object in the database. I just made a change so that these windows reserved words will be handled too.

---

<div class="post-metadata">

**Author:** ![damir.vadas\_250](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/damir.vadas_250/32/37_2.png) [@damir.vadas\_250](https://forums.toadworld.com/u/damir.vadas_250)\
**Post date:** [October 1, 2014, 9:11am UTC](https://forums.toadworld.com/t/error-in-html-schema-doc-generator/31059/14 "2014-10-01T09:11:11Z")

</div>

John,

great!

Thank you.
