When attempting to run a GUI script which updates units of measure, some materials return a "Control ID not found" error message.
This issue can be caused when a certain type of material has an additional or missing column in the units of measure grid.
To account for a missing or additional column in the grid, first find a way to distinguish which materials will have these additional or missing columns show. Once you have a way to distinguish which materials will need columns, copy and paste an additional set of each of the fields which need to be mapped and surround the fields in a condition, like below:
In the above case, I have set the condition to use the standard (recorded) columns for materials with 6 digit material numbers and all other materials have an additional column accounted for (as can be seen by the change in the Field Name column being incremented). Additional conditions should be created for each instance of the above fields in the script.
After having completed the above changes, the materials with 6 digit material numbers will load correctly, and all other materials with an extra column added before "Depth" will also load correctly.
Please sign in to leave a comment.