Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key segment field not found when dealing with groups #8

Open
theplasmastorm opened this issue Aug 9, 2019 · 0 comments
Open

Key segment field not found when dealing with groups #8

theplasmastorm opened this issue Aug 9, 2019 · 0 comments
Labels

Comments

@theplasmastorm
Copy link
Contributor

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.

@SteveIves SteveIves added the bug label Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants