Announcements
It looks like the issue happens because when the No. field is validated during the restore process, it triggers code that clears the custom fields.
By default, Business Central archives custom fields correctly, but restoring them isn't always automatic, especially if the standard validation logic resets them.
To fix this, you may need to manually transfer the custom fields from Sales Line Archive to Sales Line after the standard restore process. You can do this by extending the restore functionality with an event subscriber or modifying the process to include your custom fields.
Let me know if you need more details on how to implement this!
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator