Hi @Alexander P ,the reason why Office can still read the label even when the stream is not there is because the label information is also stored in the file's custom properties. When you remove the "Document Summary Information" stream, the custom properties are still intact, which is why Office can still read the label.
However, the MIP SDK relies on the "Document Summary Information" stream to retrieve the label information. When this stream is removed, the SDK is unable to retrieve the label information from the custom properties, which is why the label is lost.
To resolve this issue, you can try to modify your software to preserve the "Document Summary Information" stream when decrypting and re-encrypting AIP-protected Office files. This will ensure that the MIP SDK is able to retrieve the label information correctly.
Alternatively, you can try to retrieve the label information from the custom properties using the MIP SDK's custom property APIs. This will require some additional development work, but it should allow you to retrieve the label information even when the "Document Summary Information" stream is not present.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James