@Adnan.Ahmad,
Thank for your reply. The source code you have shared helped me get those name identifiers and guid.
Now, here is my next requirement.
I now have the properties and its identifiers read from an existing pst in this format:
- A Long tag and Object value — for type PidTagPropertyDescriptor
- A UUID guid, String name and Object value — for type PidNamePropertyDescriptor
- A UUID guid, Long id and Object value — for type PidLidPropertyDescriptor
Using these I’m creating a new pst that could not be imported in outlook.
Source code: sample code.zip (17.3 KB)
@nandhini.r.17.96,
Thank you for your feedback. I have tried opening the attached PST on my end and it got opened in MS Outlook on my end without any issue. For your kind reference, I have attached following snapshot as well. Can you please share which Outlook fails to open the provided PST on your end.
Do not just open it in Outlook. It will work fine.
Try to import that newly created PST (new.pst) into a mailbox in Outlook client. That’s where the issue occurred.
Outlook version: 2013
@nandhini.r.17.96,
I have observed your comments. An issue with ID EMAILJAVA-34532 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.
Thank you! I request you to address this as soon as possible. We need this to be resolved for our high priority release.
@nandhini.r.17.96,
I like to inform as per our company policy, the first priority for investigation is given to the Paid Support i.e. Enterprise and Priority Support on first come first serve basis. After that the issues from normal support forum are scheduled for investigation on first come first serve basis. I request for your patience. We will share good news with you soon regarding your issue.
I understand, we will be expecting your response on this issue.
@nandhini.r.17.96,
Sure, we will share good news with you soon.
Additional observation:
If we try to repair the newly formed pst file using outlook’s SCANPST.EXE, following error messages appear in logs.
!!BTH node (nid=200024, hid=40), keys not ascending (dwkey=C2CB0000, dwkeyPrev=C2CB80B7)
!!Contents Table for 8082, sub-object has invalid parent NID:
irow = 0, RowID = 200024, ParNID = 0
!!Message (nid=200024):
Invalid parent (nid=0)
Missing PR_MESSAGE_CLASS
Missing PR_MESSAGE_FLAGS
Missing PR_SEARCH_KEY
Missing PR_CREATION_TIME
Missing PR_LAST_MODIFICATION_TIME
PFA repair log log.zip (932 Bytes)
@Adnan.Ahmad
I recently read the messages in this thread https://forum.aspose.com/t/corrupt-psts-generated/20428/22
Since that is a private thread I did not have access to the issue description but i believe both could be linked. So, can you brief me about the issue and the fix provided.
@nandhini.r.17.96,
The thread that you have referred was related to Aspose.Email for .NET 16.1 and have been fixed in older version for provided PST. The nature of your issue could be different and may not be related to old issue. We will share good news with you as soon as the issue will be fixed.
@nandhini.r.17.96,
I have verified from our issue tracking system and regret to share that at present the issue is still unresolved. We will share the good news with you as soon as the issue will be fixed.
The issues you have found earlier (filed as EMAILJAVA-34532) have been fixed in this update.
@Adnan.Ahmad @mudassir.fayyaz,
The issue still exists for some items.
Please refer the attachment. source_code.zip (169.4 KB)
A more serious problem exists with Tasks which has outlook message items as attachments.
Most of the embedded attachments were missed out when copying the message in the same method.
Refer the source code [here](https://drive.google.com/open?id=11X_ROpFEBvMLScSp4o3f3NKfBUHcedy_)
.
I have tried opening the attached PST file on my end and there is no issue when opening in Outlook 2016 and I am able to load PST and open the message.
For this issue, you have already reported similar issue in other thread as well and an issue with ID EMAILJAVA-34550 has been added to resolve the issue of missing embedded attachment for MapiTask.
@mudassir.fayyaz,
The attached pst file is the one directly exported from Outlook. Execute the code in the attached file. A new pst file (new.pst) will be generated using aspose. The issue exists with this file. And DO NOT JUST OPEN THE PST FILE. You need to IMPORT the pst into a mailbox using outlook client to observe the issue.
@nandhini.r.17.96,
I am sorry for your inconvenience. I have tried opening the shared source_code.zip by importing in Outlook 2016 and was able to observe the message in MS Outlook. However, now I shall try loading the PST file and exporting that Outlook using Client. I will share updates with you as soon as possible.
@nandhini.r.17.96,
I have tried to use the sample code shared by you on my end. Unfortunately, I am unable to use that owing to use of some custom JSON method and also following line in your code is throwing error too. Can you please provide a working sample code with all dependencies resolved so that we may try that on our end to reproduce the issue.
namedPropLong.put(namedProperty.getGuid(), new HashMap<>());