SYMPTOM:
Running the ALTER ATTRIBUTEFORMEXP script in Command Manager to change an attribute form expression returns the following error:
The attribute form 'attribute form name' was not found within attribute 'attribute name'.
Using this command with the overwrite option for the command has the new attribute form expression overwrite the old one allowing the expression to be changed. It does require that the lookup and any additional source tables be specified again even if they are the same ones. An example of the command to change the attribute form expression of an attribute is as follows.
ADD ATTRIBUTEFORMEXP "new_expression" MAPPINGMODE MANUAL OVERWRITE LOOKUPTABLE "test_table" TO ATTRIBUTEFORM "test" FOR ATTRIBUTE "test" IN FOLDER "\Schema Objects\Attributes\test" FOR PROJECT "Test project";