I've opened a case with fortinet TAC.As per advice of the engineer,
maybe it's also your problem:The Fortigate-Firmware needs to be the same
as the ADOM-Version on the FMG.If the ADOM-Version is different to the
firmwareversion, the scripts will fail...