Why can’t I do a Deep Traversal (subfolder) Search on the MAPI Public Folder Tree?

Published May 17 2004 04:51 PM 1,255 Views

I am sure many of you have at one time or another wanted to do a Deep Traversal (subfolder) Search on the MAPI Public Folder Tree.  However, as many of you probably know, Exchange does not allow for Deep Traversal (subfolder) Searches on the MAPI Public Folder Tree: http://support.microsoft.com/default.aspx?scid=kb;en-us;254911.  The reason you cannot do this is because when the Public Folder system was designed, it was decided that load balancing would be accomplished by putting only some of the content on some of the servers. For example, if there exists 3 folders and 3 servers. Folder1 may be replicated between servers 1 & 2, folder2 between servers 2 & 3, and folder3 between 1 & 3. If the client created a search folder that simultaneously searched all three folders, they’d get different results depending on which actual Public Folder Server they were connected to. To address this issue, search folders cannot be created that search the content of multiple folders; deep traversal, or subfolder, being a special case of “multiple folders”.

One way to get around this “limitation” is by setting up a Non-MAPI Public Folder Tree because you can do a Deep Traversal (subfolder) Search against that: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_exch2k_specifying_a_deep....  However, you cannot view this Public Folder Tree via MAPI (i.e Outlook).  So what is the difference you ask?  Well, the thought behind Application Public Folder Stores was that, for the most part, the content of the folders would not be replicated to any other server. There’s no actual architectural limitation to enforce this – Exchange originally just foresaw organizations would create only one Application Public Folder Store at all and so replication wouldn’t be an issue. Therefore, users can create Search Folders that can search the content of multiple folders. Given this, though, you do actually step back into the original problem. Namely, the search folder itself is replicated among servers but the content is always generated locally. Also, clients are never referred to a different server – search folders always seem (to the client) to have their exclusive replica on the server presently being queried. So, users should be aware that they will get different results depending on which server they contact for the content, and of course replication latency adds a new dimension to the differing results.

- Chris Ahlers

5 Comments
%3CLINGO-SUB%20id%3D%22lingo-sub-610469%22%20slang%3D%22en-US%22%3EWhy%20can%E2%80%99t%20I%20do%20a%20Deep%20Traversal%20(subfolder)%20Search%20on%20the%20MAPI%20Public%20Folder%20Tree%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-610469%22%20slang%3D%22en-US%22%3E%3CP%3E%3C%2FP%3E%3CP%20class%3D%22MsoNormal%22%3E%3CFONT%20face%3D%22Arial%22%20color%3D%22blue%22%20size%3D%222%22%3E%3CSPAN%20style%3D%22FONT-SIZE%3A%2010pt%3B%20COLOR%3A%20blue%3B%20FONT-FAMILY%3A%20Arial%22%3EI%20am%20sure%20many%20of%20you%20have%20at%20one%20time%20or%20another%20wanted%20to%20do%20a%20Deep%20Traversal%20(subfolder)%20Search%20on%20the%20MAPI%20Public%20Folder%20Tree.%26nbsp%3B%20However%2C%20as%20many%20of%20you%20probably%20know%2C%20Exchange%20does%20not%20allow%20for%20Deep%20Traversal%20(subfolder)%20Searches%20on%20the%20MAPI%20Public%20Folder%20Tree%3A%20%3CA%20title%3D%22http%3A%2F%2Fsupport.microsoft.com%2Fdefault.aspx%3Fscid%3Dkb%3Ben-us%3B254911%22%20href%3D%22http%3A%2F%2Fsupport.microsoft.com%2Fdefault.aspx%3Fscid%3Dkb%3Ben-us%3B254911%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fsupport.microsoft.com%2Fdefault.aspx%3Fscid%3Dkb%3Ben-us%3B254911%3C%2FA%3E.%26nbsp%3B%20The%20reason%20you%20cannot%20do%20this%20is%20because%20when%20the%20Public%20Folder%20system%20was%20designed%2C%20it%20was%20decided%20that%20load%20balancing%20would%20be%20accomplished%20by%20putting%20only%20some%20of%20the%20content%20on%20some%20of%20the%20servers.%20For%20example%2C%20if%20there%20exists%203%20folders%20and%203%20servers.%20Folder1%20may%20be%20replicated%20between%20servers%201%20%26amp%3B%202%2C%20folder2%20between%20servers%202%20%26amp%3B%203%2C%20and%20folder3%20between%201%20%26amp%3B%203.%20If%20the%20client%20created%20a%20search%20folder%20that%20simultaneously%20searched%20all%20three%20folders%2C%20they%E2%80%99d%20get%20different%20results%20depending%20on%20which%20actual%20Public%20Folder%20Server%20they%20were%20connected%20to.%20To%20address%20this%20issue%2C%20search%20folders%20cannot%20be%20created%20that%20search%20the%20content%20of%20multiple%20folders%3B%20deep%20traversal%2C%20or%20subfolder%2C%20being%20a%20special%20case%20of%20%E2%80%9Cmultiple%20folders%E2%80%9D.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CFONT%20face%3D%22Times%20New%20Roman%22%20size%3D%223%22%3E%3CSPAN%20style%3D%22FONT-SIZE%3A%2012pt%22%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CFONT%20face%3D%22Arial%22%20color%3D%22blue%22%20size%3D%222%22%3E%3CSPAN%20style%3D%22FONT-SIZE%3A%2010pt%3B%20COLOR%3A%20blue%3B%20FONT-FAMILY%3A%20Arial%22%3EOne%20way%20to%20get%20around%20this%20%E2%80%9Climitation%E2%80%9D%20is%20by%20setting%20up%20a%20Non-MAPI%20Public%20Folder%20Tree%20because%20you%20can%20do%20a%20Deep%20Traversal%20(subfolder)%20Search%20against%20that%3A%20%3CSPAN%20style%3D%22FONT-SIZE%3A%2010pt%3B%20COLOR%3A%20navy%3B%20FONT-FAMILY%3A%20Arial%22%3E%3CA%20title%3D%22http%3A%2F%2Fmsdn.microsoft.com%2Flibrary%2Fdefault.asp%3Furl%3D%2Flibrary%2Fen-us%2Fe2k3%2Fe2k3%2F_exch2k_specifying_a_deep_traversal.asp%3Fframe%3Dtrue%22%20href%3D%22http%3A%2F%2Fmsdn.microsoft.com%2Flibrary%2Fdefault.asp%3Furl%3D%2Flibrary%2Fen-us%2Fe2k3%2Fe2k3%2F_exch2k_specifying_a_deep_traversal.asp%3Fframe%3Dtrue%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fmsdn.microsoft.com%2Flibrary%2Fdefault.asp%3Furl%3D%2Flibrary%2Fen-us%2Fe2k3%2Fe2k3%2F_exch2k_specifying_a_deep_traversal.asp%3Fframe%3Dtrue%3C%2FA%3E%3C%2FSPAN%3E.%26nbsp%3B%20However%2C%20you%20cannot%20view%20this%20Public%20Folder%20Tree%20via%20MAPI%20(i.e%20Outlook).%26nbsp%3B%20So%20what%20is%20the%20difference%20you%20ask%3F%26nbsp%3B%20Well%2C%20the%20thought%20behind%20Application%20Public%20Folder%20Stores%20was%20that%2C%20for%20the%20most%20part%2C%20the%20content%20of%20the%20folders%20would%20not%20be%20replicated%20to%20any%20other%20server.%20There%E2%80%99s%20no%20actual%20architectural%20limitation%20to%20enforce%20this%20%E2%80%93%20Exchange%20originally%20just%20foresaw%20organizations%20would%20create%20only%20one%20Application%20Public%20Folder%20Store%20at%20all%20and%20so%20replication%20wouldn%E2%80%99t%20be%20an%20issue.%20Therefore%2C%20users%20can%20create%20Search%20Folders%20that%20can%20search%20the%20content%20of%20multiple%20folders.%20Given%20this%2C%20though%2C%20you%20do%20actually%20step%20back%20into%20the%20original%20problem.%20Namely%2C%20the%20search%20folder%20itself%20is%20replicated%20among%20servers%20but%20the%20content%20is%20always%20generated%20locally.%20Also%2C%20clients%20are%20never%20referred%20to%20a%20different%20server%20%E2%80%93%20search%20folders%20always%20seem%20(to%20the%20client)%20to%20have%20their%20exclusive%20replica%20on%20the%20server%20presently%20being%20queried.%20So%2C%20users%20should%20be%20aware%20that%20they%20will%20get%20different%20results%20depending%20on%20which%20server%20they%20contact%20for%20the%20content%2C%20and%20of%20course%20replication%20latency%20adds%20a%20new%20dimension%20to%20the%20differing%20results.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CFONT%20face%3D%22Arial%22%20color%3D%22blue%22%20size%3D%222%22%3E%3CSPAN%20style%3D%22FONT-SIZE%3A%2010pt%3B%20COLOR%3A%20blue%3B%20FONT-FAMILY%3A%20Arial%22%3E-%20%3CA%20href%3D%22http%3A%2F%2Fblogs.msdn.com%2Fexchange%2Farticles%2F72771.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EChris%20Ahlers%3C%2FA%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-610469%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAll%20Posts%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDevelopment%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EStorage%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Jul 01 2019 02:56 PM
Updated by: