RouterOS configuration works with referencing configuration items. Things break when an item is removed and reference points to a non-existent id:
[admin@ros7] > /interface/bridge/add name=test
[admin@ros7] > /ip/address/add address=10.0.0.1/24 interface=test
[admin@ros7] > /interface/bridge/remove test
[admin@ros7] > /ip/address/print
Flags: I, D - DYNAMIC
Columns: ADDRESS, NETWORK, INTERFACE
ADDRESS NETWORK INTERFACE
0 D 10.7.7.159/24 10.7.7.0 bridge
1 I 10.0.0.1/24 10.0.0.0 *B
When printing the configuration you see the dangling id (*B in this case). However exporting the configuration you can not see this:
[admin@ros7] > /ip/address/export
/ip address
add address=10.0.0.1/24 network=10.0.0.0
In case of broken references I would like to see a comment in export showing the issue, something like:
[admin@ros7] > /ip/address/export
/ip address
# WARNING: broken reference to internal id *B
add address=10.0.0.1/24 network=10.0.0.0
I contacted support (SUP-58120) an their answer was:
Thank you for your request, if there will be more, similar request like yours, we will see how this can be added in the future versions.
So if you think this would be a good addition please cast your vote by opening a support ticket.