Convert OST to PST online throw exception

Hi,

My issue not resolved I am facing an issue where some folders are created with names like Contacts (This computer only) , Calendar (This computer only) , and Conversation Action Settings .

If a folder name contains “(This computer only)” , its item count shows as 0 , even though the data is actually present in other folders.

Please let me know if you need any additional details from my side.

please provide a code to skip folder and move next folder.

@Anjali12

You reported an issue where certain folders in your OST file, such as “Contacts (This computer only)”, “Calendar (This computer only)”, and “Conversation Action Settings”, show zero items even though they contain data . You’d like to skip these folders during conversion and proceed with the rest.

While Aspose.Email for .NET might throw a NotImplementedException during OST to PST conversion , one suggested workaround is to use the MergeWith method instead of SaveAs .

Here’s a code example to skip folders with “(This computer only)” in their name:

using Aspose.Email;
using Aspose.Email.Storage.Pst;

// Load the OST file
using (PersonalStorage ost = PersonalStorage.FromFile("path/to/source.ost"))
{
 // Create a new PST file
 using (PersonalStorage pst = PersonalStorage.Create("path/to/target.pst", FileFormatVersion.Unicode))
 {
 // Iterate through all folders in the OST
 foreach (FolderInfo folder in ost.RootFolder.EnumerateFolders())
 {
 // Skip folders with "(This computer only)" in their name
 if (folder.DisplayName.Contains("(This computer only)"))
 continue;

 // Copy folder contents to the new PST
 pst.MergeWith(new[] { folder });
 }
 }
}

Please note that this approach relies on MergeWith, and behavior may vary depending on the OST structure. A support engineer will follow up in this thread if needed.

Other Method

You reported an issue where certain folders in your OST file, such as “Contacts (This computer only)”, “Calendar (This computer only)”, and “Conversation Action Settings”, show zero items even though they contain data . You’d like to skip these folders during conversion and proceed with the rest.

While Aspose.Email for .NET might throw a NotImplementedException during OST to PST conversion , one suggested workaround is to use the MergeWith method instead of SaveAs .

Here’s a code example to skip folders with “(This computer only)” in their name:

using Aspose.Email;
using Aspose.Email.Storage.Pst;

// Load the OST file
using (PersonalStorage ost = PersonalStorage.FromFile("path/to/source.ost"))
{
 // Create a new PST file
 using (PersonalStorage pst = PersonalStorage.Create("path/to/target.pst", FileFormatVersion.Unicode))
 {
 // Iterate through all folders in the OST
 foreach (FolderInfo folder in ost.RootFolder.EnumerateFolders())
 {
 // Skip folders with "(This computer only)" in their name
 if (folder.DisplayName.Contains("(This computer only)"))
 continue;

 // Copy folder contents to the new PST
 pst.MergeWith(new[] { folder });
 }
 }
}


other method provides

Hi,

Based on the folder structure shown, the issue is caused by Outlook folders with names like “(This computer only)” (for example Calendar, Contacts, Conversation Action Settings). These are local-only Outlook folders that are not synchronized with the mailbox and are not fully supported by standard OST/PST processing APIs.

When a converter attempts to enumerate or read subfolders of these local-only folders, it may throw exceptions such as
“Could not read subfolders. Exception throw”. This behavior is expected and does not indicate data corruption.

During folder traversal, folders whose display name contains “(This computer only)” should be explicitly skipped. This prevents the exception and allows the conversion process to continue with supported folders.