I created a duplicate function in order to create a new and equal instance from an other. But when I try to delete the instance the next error appears:
FOREIG