The target of a creature created from an object via Polymorph any Object cannot be resurrected via the Resurrection or True Resurrection spells.
Resurrection states:
So long as some small portion of the creature’s body still exists, it can be resurrected, but the portion receiving the spell must have been part of the creature’s body at the time of death. (The remains of a creature hit by a disintegrate spell count as a small portion of its body.)
This specifies that there are two conditions that can't be met if a creature is created using PAO. Those conditions are:
- That some form of the creatures body after polymorphing still exists
- The portion of the body recovered must have been a part of the
creature's body when it died.
This means that these conditions cannot be fulfilled, as when a creature dies its body returns to its original state, which is that of an object. None of its original body remains after reverting back to an object. Furthermore, recovering part of its body from before it died is impossible, as when pieces are removed from the polymorphed creature, they return to their original form as well. Your limbs cease to be alive once separated from your body.
So since no part of the polymorphed creature's body can exist at the time of death, Resurrection wouldn't function.
True resurrections wording also states:
This spell can even bring back creatures whose bodies have been destroyed, provided that you unambiguously identify the deceased in some fashion (reciting the deceased’s time and place of birth or death is the most common method).
An object is not a creature. An Animated object however is a creature, but it falls under the classification of construct, True resurrection also states:
This spell can also resurrect elementals or outsiders, but it can’t resurrect constructs or undead creatures.
This means that likely the only way to get the object back to the state of being a creature once again is to polymorph it once more using Polymorph any Object.
Meaning that even if you turned an animated object into a creature, when it ceased being that creature and became an object once again, it would no longer meet the requirements to be raised via True resurrection.
Ontop of that, True resurrection and Resurrection work by searching for a soul in the outer planes, and returning it to a material body. Since the soul of a creature created by PAO doesn't exist once the magic ends, there's no soul to return to a body, which would cause the magic to fail as well.
TL,DR;
PAO targets objects, which can be anything.
Resurrection and True Resurrection target creatures or the body parts of creatures, which objects aren't once they die.