Free Support Forum -

Created PST not importing in outlook

I am creating pst using Aspose.Email but when I tried to open that pst then getting error that “Some Items can not be copied. They were either moved or deleted, or access was denied.”
The mails and other data is not importing in outlook.
Please help me with the issue.

Welcome to our community! Thank you for the issue description. Could you share a code example generating the PST file and reproducing the error, please? Also, please specify the version of Aspose.Email you used.

if (p_PSTFileMode == Mode.CREATE)
String tempFilepath = p_filePath;
int count = 1;
while (File.Exists(tempFilepath))
tempFilepath = p_filePath.Substring(0, p_filePath.LastIndexOf(’.’)) + " (" + count++ + “).pst”;
m_ObjPersonalStorage = PersonalStorage.Create(tempFilepath, FileFormatVersion.Unicode);

I am able to create the pst file but when trying to import the created pst it gives me an error.
Aspose.Email version is 18.6.

Unfortunately, I cannot use your piece of code to reproduce the error.

Please check the issue with the latest version of Aspose.Email. If the error persists, please share a comprehensive code example reproducing the issue.