Query for PR_HIERARCHY_SERVER property returns MAPI_E_INVALID_PARAMETER.

%3CLINGO-SUB%20id%3D%22lingo-sub-2655233%22%20slang%3D%22en-US%22%3EQuery%20for%20PR_HIERARCHY_SERVER%20property%20returns%20MAPI_E_INVALID_PARAMETER.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2655233%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOur%20application(IBM%20Content%20Collector%20-%20ICC)%20is%20trying%20to%20query%20PR_HIERARCHY_SERVER%20property.%20We%20use%20the%20MSMAPI32.dll%2C%20acting%20as%20client%20to%20Exchange%20servers.%3CBR%20%2F%3EHowever%20MAPI%20call%20HrGetProp%20for%20the%20property%20PR_HIERARCHY_SERVER%20%3D%200x6633001F%20fails%20with%20MAPI%20Error%20'MAPI_E_INVALID_PARAMETER'.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20noticed%20the%20issue%20is%20not%20seen%20when%20we%20use%20Outlook%202010%20as%20client.%20Below%20are%20all%20the%20scenariosand%20results%3A%3CBR%20%2F%3E1)%20ICC%20with%20Exchange%202019%20%3A%20Outlook%202019%20%3A%20Public%20folder%20archiving%20fails%3CBR%20%2F%3E2)%20ICC%20with%20Exchange%20Online%20%3A%20Outlook%202019%20%3A%20Public%20folder%20archiving%20fails%3CBR%20%2F%3E3)%20ICC%20with%20Exchange%202016%20%3A%20Outlook%202016%20%3A%20Public%20folder%20archiving%20fails%3CBR%20%2F%3E4)%20ICC%20with%20Exchange%202016%20%3A%20Outlook%202010%20%3A%20Public%20folder%20archiving%20works!%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EDo%20we%20have%20to%20make%20any%20changes%20to%20code%20when%20using%20newer%20Outlook%20client%20versions%3F%3CBR%20%2F%3EKindly%20provide%20suggestions%20as%20this%20is%20a%20blocker%20for%20one%20of%20our%20Customers(env%3A%20ICC%20with%20Exchange%20Online%20%3A%20Outlook%20365).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3CBR%20%2F%3ESalil%20Verlekar(saverlek%40in.ibm.com)%3CBR%20%2F%3EMob%3A%209823961730%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2655233%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%202016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eoutlook%202010%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOutlook%202016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPR_HIERARCHY_SERVER%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hi,

 

Our application(IBM Content Collector - ICC) is trying to query PR_HIERARCHY_SERVER property. We use the MSMAPI32.dll, acting as client to Exchange servers.
However MAPI call HrGetProp for the property PR_HIERARCHY_SERVER = 0x6633001F fails with MAPI Error 'MAPI_E_INVALID_PARAMETER'.

 

We noticed the issue is not seen when we use Outlook 2010 as client. Below are all the scenariosand results:
1) ICC with Exchange 2019 : Outlook 2019 : Public folder archiving fails
2) ICC with Exchange Online : Outlook 2019 : Public folder archiving fails
3) ICC with Exchange 2016 : Outlook 2016 : Public folder archiving fails
4) ICC with Exchange 2016 : Outlook 2010 : Public folder archiving works!


Do we have to make any changes to code when using newer Outlook client versions?
Kindly provide suggestions as this is a blocker for one of our Customers(env: ICC with Exchange Online : Outlook 365).

 

Regards,
Salil Verlekar(saverlek@in.ibm.com)
Mob: 9823961730

0 Replies