What are the rules for updating tasks pcomplete&duration?

What are the rules for updating tasks pcomplete&duration?

I keep getting this error for certain combinations of pcomplete&duration?

After a bunch of experiments I see that pcomplete can only be 10,20,30,...,100 and can't be 56 for example. Also pcomplete=100 does not make my task complete unless duration is 0.


Are there any other rules?


Is duration specified in days? Can I specify minutes? Is it a mandatory form parameter?


<?xml version="1.0" encoding="UTF-8" ?>

<response uri="/jsp/error.jsp"><error><code>6501</code><message>Input Parameter Doesnt Match the Pattern Specified</message></error></response>