Validate that you have provided a pid when calling export()