Created public folders with leading special character?

George Hue 20 Reputation points
2023-08-22T14:49:46.19+00:00

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:

LeadingSpecialCharacterInPublicFolderPath

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

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,855 questions
{count} votes

Accepted answer
  1. ScottyDoo 111 Reputation points
    2023-08-22T15:03:55.76+00:00

    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

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.