How to update the table column name use upgrade code


I have modified one of a table field name and table object ID. When I upload my new extension to the environment. It returns with error " field xxx unsupported change remove". I was trying to use upgrade codeunit to update the field name. How should I do to handle this situation. The table field(column) name change between the old extension and new extension.

No Data
  • It would help to know what version you are talking about? NAV, BC on-prem or BC cloud?

    If BC in the cloud, then you are basically locked, here no schema changes are allowed. So field cannot be renamed. At least not directly, but as you can see in 's blog, then there is another way:

    The same would apply to on-premise, but there you do have the access to force the removal of a field.