My goal is to get the layer’s buffer data and upload it to our server. This is my work step：
It can be seen that my work relies on the operation of copying the layer, but in some cases, the layer cannot be copied. PS tells me that the operation cannot be completed because of a program error. In fact, I can hardly do most operation on the layer, including simply moving this layer or converting to a smart object layer(sometimes works).
After checking, I found that there is a child layer seems to be dirty.
After deleting it, I can continue to work, paste to new document and bla bla…
I don’t know how my user generated this dirty layer, but I want to know, besides reminding the user to find and delete this layer, is there any other way I can accomplish my goal?
for example, how to check or fix this kind of layer by program