Invalid position for replace: position.

Situation

The starting position in the target string for the replace() function is not valid.

Solution

Check the replace() function to be sure the target position isn't 0 or a negative number.


Documentation Feedback