Thank a lot my dear friend, for what you wrote got me based here, was this I did:
When Variable is greater than or equal to 3 -> Regenerate obstacle map
On pathfinding failed to found path -> Find patch at (tarjet.x, tarjet.y)
On pathfinding found path -> move along the path