KB Article #177360
"the variable <xxx> is not available or is not in the repository" when building a flow that was previously imported
Problem
-- I imported a flow and made some changes on the mapping
-- getting such error at build :
Errror 523 : the variable <xxx> is not available or is not in the repository
Resolution
* the most common cause is that a variable used in the map has been misspelled, and differs from the variable that was previously created
BUT there is another possible root, which is more tricky :
- if the output Business Document contains a parent with a multiple cardinality, and if there is no mapping defining this cardinality (1 times, for each ...), all the mapping under this parent will be ignored. It means that variables or tables used in those mapping will NOT be exported
- when the flow has been imported, the build will work fine until there is a cardinality mapping on the parent. then the mapping under this parent wll be done and will fail because the variables / tables that are used in the mappin will not have been imported
- in such case, either recreate the related objects (variables, tables...), or modify the original flow accordingly (adding cardinality expression) and re-export / import the flow