Hi,
I am not able to reproduce this issue. My understanding about your problem is that after some time, you are not able to put XMP packet inside the file. Is my understanding correct?
Before failing, were you able to put XMP packet inside the file?
Could you please post some code snippet stating XMP related calls with their corresponding input variables?
Thanks
Amit