When A RA Webservice REST Job fails with the following error:
U00021719 Syntax error in object 'JOBS.JOBNAME', line '00000'. 'U01001307 A variable name with the length x is not allowed.'In case cases the job runs if restarted.
This can also happen when running a RA Webservices REST job submitted via a recurring execution (C_PERIOD), where the job may intermittently fail with the following syntax errors:
U01001303 Invalid variable name '1'. Begin with a letter or valid special character.U01001307 A variable name with the length 0 is not allowed.This issue is caused by a misconfiguration in the Response tab of the job object combined with limitations of the older RA REST Agent (v4.6 and earlier). The older agent allowed or required an ampersand (&) prefix in the Output Name field (e.g., &PRIMARY#), which causes parsing conflicts during certain execution cycles like C_PERIOD.
There are two ways to resolve this issue: a manual workaround for existing objects or a permanent upgrade to the supported REST agent.
&) from the beginning of all entries (e.g., change &RESULT# to RESULT#).Upgrade the agent from the legacy RA REST solution to the Integration.REST (IG REST) agent (available for v21 and v24).
& prefix in these fields, preventing the issue entirely.Note: The legacy RA REST solution reaches End of Support on September 30, 2025. It is highly recommended to migrate to the Integration.REST agent as soon as possible.