I'm testing one of my extensions on a Sandbox running version: 26.0.30643.32477 (Preview) and when I select 'Publish without debugging' the lines below are displayed in the Console of the code editor:
[2025-04-02 15:55:28.41] Error: C# compilation has failed for the application object CodeUnit_50024.
The failing c# file name is E2304FBC7C4AFA5538E1C81DFB4C48646798BDFD6531E806B1CD1E962A28035F.cs. You can find this file with the associated AL file saved in the C:\ProgramData\Microsoft\Microsoft Dynamics NAV\260\Server\MicrosoftDynamicsNavServer$MS\apps\compilationerrors folder.
Detailed compilation error: C:\ProgramData\Microsoft\Microsoft Dynamics NAV\260\Server\MicrosoftDynamicsNavServer$MS\apps\metadata\3\E2304FBC7C4AFA5538E1C81DFB4C48646798BDFD6531E806B1CD1E962A28035F.cs(561,40): error CS0102: The type 'Codeunit50024' already contains a definition for 'ProcessDateRange_TextConst_βconst'
C:\ProgramData\Microsoft\Microsoft Dynamics NAV\260\Server\MicrosoftDynamicsNavServer$MS\apps\metadata\3\E2304FBC7C4AFA5538E1C81DFB4C48646798BDFD6531E806B1CD1E962A28035F.cs(562,40): error CS0102: The type 'Codeunit50024' already contains a definition for 'ProcessDateRange_TextConst_βconst'
When I test the process and it gets to the line where it calls the DateRangeProcessor codeunit (mentioned above), I get a 'Something went wrong' web-page.
What's causing this?