I searched the Cadence Manual but I can't find the right command/solution to check if a pcell instance got PcellEvalFailed.
In IC6.x failed evaluation will put a marker in the master of the instance. Check the master for markers:
If any exist, you may have to check the owner/value of the marker to make sure it is a pcellEvaFailed marker.
To create a test marker, use printf inside your pcell code. The print statement will create a marker with the pcellEvalFailed attributes.