I have a repository that looks like this:
Structure STRTEST3
Field STR_GRP1 (this is a group)
Field STR3_GP1AL6 (this is a field inside the group)
Running this command:
codegen -s STRTEST3 -t ODataUnitTests -i Templates\TraditionalBridge -o TraditionalBridge.TestClient\UnitTests -tf -n TraditionalBridge.TestClient.UnitTests -e -r -lf
ERROR: When processing structure STRTEST3 key segment field STR_GRP1 was not found.
Inside LoopExpander.dbl:611, you are looking for the first fld.OriginalName == seg.Field
The issue is that everything is expanded in str.Fields, so the group does not exist inside str.Fields, and this is why STR_GRP1 cannot be found.