Absolute position regulation NXC
According to the docs (emphasis added):


  Warning
  
  This function requires the enhanced NBC/NXC firmware version 1.31+


Make sure you are using the enhanced firmware provided with NXC and not the official firmware from LEGO.