In the function rapi:prepare-entry, the new element is modified by adding two attributes (@resp and @when), for example:
attribute when {format-date(current-date(), '[Y]-[M,2]-[D,2]')}
The @when attribute is not valid for <person> and <place> elements in the current version of TEI Guidlines.
A more appropriate and available attribute in this case is @change, which must point to the description in teiHeader,
I know it's more verbose and complicated, but valid.