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

System Record Field sometimes retains old name of fields after field rename #7893

Open
janrik-codebrew opened this issue Nov 6, 2024 · 0 comments

Comments

@janrik-codebrew
Copy link

janrik-codebrew commented Nov 6, 2024

1. Describe the bug

I'm cycling all fields in an app to migrate them to a new app in an Install codeunit.

var
FromField: Record "Field";

    FromField.SetRange(TableNo, FromTableNo);
    FromField.SetFilter(ObsoleteState, '<>%1', FromField.ObsoleteState::Removed);
    FromField.SetFilter("App Package ID", FromAppPackageId);

For a specific field that has previously been renamed (the new name is seen in BC zoom-window),
Image

FromField.FieldName still retains the old name.

Image

2. To Reproduce

Not sure how to reproduce, simply creating a new test extension with a new table and a new field, publishing and then republishing witha new name did update the value in Record Field.

3. Expected behavior

Record Field's FieldName should always contain the actual current name of the Field.

4. Actual behavior

FieldName reflects the name of the field sometime in the past.

5. Versions:
Business Central 24.5, 24.0.26059.0, App 24.5.23489.23968

@janrik-codebrew janrik-codebrew changed the title System Record Field seems to retain old name of fields after field rename System Record Field sometimes retains old name of fields after field rename Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants