Embedded files stored in cache thicket folder

T

Tom Barich

I just noticed something weird. When I embed a word doc in onenote the file is saved in the OneNoteOfflineCache_Files folder. So far, it makes sense to me.
What has me confused is two things.
First, when I open the file from within onenote and make (and save) changes I end up with two additional files (in the thicket folder) with the original name expanded to include what looks like hex code (i.e. B827BF, 5AEEF9, etc). The files are not overwritten each time I make and save a change, but rather a new set is created.
Second, if I remove the files from the thicket folder the embedded doc no longer opens. It was my understanding that the doc file is also saved in the .one file, which would mean it should open with or without the cache files.
Can anyone explain why this is happening and if, and under what circumstances, OneNote eliminates the extra files?

Thanks,
Tom Barich


EggHeadCafe - Software Developer Portal of Choice
Treeview Navigation - SqlCacheDependency and SqlSitemapProvider
http://www.eggheadcafe.com/tutorial...14-227d5d753712/treeview-navigation---sq.aspx
 
I

Ilya Koulchin

OT: your newsreader doesn't seem to wrap lines... For ease of replies,
please configure it to wrap lines at 80 characters or some other
reasonable limit.

Tom said:
First, when I open the file from within onenote and make (and save)
changes I end up with two additional files (in the thicket folder)
with the original name expanded to include what looks like hex code
(i.e. B827BF, 5AEEF9, etc). The files are not overwritten each time
I make and save a change, but rather a new set is created.

When you open an embedded file from within OneNote, when you save it a
new copy will be created in the cache. This is necessary so that OneNote
is able to detect modifications to the same file by anyone else who
might have the notebook open.
Second, if I remove the files from the thicket folder the embedded
doc no longer opens.

The OneNote cache and the cache thicket is OneNote's private storage
area. Modifying it in any way (including deleting portions) is
unsupported and will result in undefined behavior. In your case, the
cache is now most likely corrupt, so I strongly recommend deleting it
altogether, so that OneNote can rebuild it.
It was my understanding that the doc file is
also saved in the .one file, which would mean it should open with
or without the cache files.

The files are stored in the .one file, however, to make them accessible
offline, OneNote creates copies in the cache. When you access the
embedded file from within OneNote, OneNote will look in the cache and
open that copy. If there is no copy stored in the cache, OneNote will
think that the embedded file was lost and will fail to open the file.
Can anyone explain why this is happening and if, and under what
circumstances, OneNote eliminates the extra files?

OneNote will periodically optimize the thicket folder, which would get
rid of the extra files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top