Cavity error only in flat pattern

Hi,

I have a part which is created by a cavity and then converted to sheet metal. This works fine in the default configuration but when I try to get the flat pattern from it there is an error that the part is not available in the assembly so the flat pattern is just a rectangle.

I have attached the part.

Any idea how to fix it?

Thanks for your help.

SolidworksParts And Features