You are getting the name
and path
parameters mixed up. Don't use backslashes in the name. See: https://learn.microsoft.com/en-us/exchange/collaboration-exo/public-folders/create-public-folder
Created public folders with leading special character?
George Hue
20
Reputation points
Hi, I created some public folders on Exchange Server 2019 (Version 15.2 (Build 1258.12)) by using this script:
# Creating some public folders
# ghue 22.08.23
$rootfoldername = "first_folder"
New-PublicFolder -name $rootfoldername
$foldername = $rootfoldername + "\" + "second_folder"
New-PublicFolder -Name $foldername
$subfolder1 = $foldername + "\" + "third_folder"
New-PublicFolder -Name $subfolder1
Unfortunately the EAC shows a leading special character in the subfolder path:
Clicking on the public folders leads to an error message:
error
Your request couldn't be completed. Please try again in a few minutes.
The event log shows an corresponding error message:
System.ServiceModel.Dispatcher.NetDispatcherFaultException: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter ECP:filter. The InnerException message was 'There was an error deserializing the object of type Microsoft.Exchange.Management.DDIService.DDIParameters. Characters with hexadecimal values 0xFFFE and 0xFFFF are not valid.'. Please see InnerException for more details. ---> System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type Microsoft.Exchange.Management.DDIService.DDIParameters. Characters with hexadecimal values 0xFFFE and 0xFFFF are not valid. ---> System.Xml.XmlException: Characters with hexadecimal values 0xFFFE and 0xFFFF are not valid.
Has anyone an idea what went wrong or how to avoid this issue?
Best regards
George
Accepted answer
-
ScottyDoo 111 Reputation points
2023-08-22T15:03:55.76+00:00