web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

schema update error while uploading upgraded extension to production environment

(0) ShareShare
ReportReport
Posted on by 5

Hello D365 community,

I am quite new to Dynamics 365 Business Central. I have upgraded one of our extension with extra functionality in it. I have added 2 extra fields in the existing table using table extension. I have also done some work on install and upgrade code unit. Now I don't know whether its schema conflicting error or what. This is what error looks like

Error Details:

Deployment failed. Errors: App ID : XXXX-XXXX-XXXX-XXXX Message : { Could not upgrade the extension ' XXXX' by 'XYZ' from version '1.0.0.26' to '17.5.1.50'
for tenant 'Tenant-XYZ' and company 'Company ABC' due to the following error: 'The record in table Report Selections already exists.
Identification fields and values: Usage='Reminder',Sequence='1'' and AL stack trace:
"Upgrade Standard Reports"(CodeUnit XXXXX).InitReportSelection - Standard Reports by XXXX
"Upgrade Standard Reports"(CodeUnit XXXXX).InatilizeDefaultReports - Standard Reports by XXXX
"Upgrade Standard Reports"(CodeUnit XXXXX).OnUpgradePerCompany - Standard Reports by XXXX
""Upgrade Triggers""(CodeUnit 2000000008).OnUpgradePerCompany line 2
} - Job Id : XXXX-XXXX-XXXX-XXXX

Can someone please help me with this? 

Thanks in Advance.

  • Lars Lohndorf-Larsen Profile Picture
    Microsoft Employee on at

    Are you able to catch this error in the debugger? If not, does the upgrade codeunit do anything with this table? And how about if you delete this record first before you upgrade?

  • D365 Business central community Profile Picture
    5 on at

    Well I couldn't able to catch the error through debugging, and yes logic has been written for this table in upgrade code unit.  And I deleted this record from table and just for verification if I check this value in table then I couldn't found. so you can say I have deleted the record from table as well.

  • D365 Business central community Profile Picture
    5 on at

    is this can be the issue because of schema update??

  • Lars Lohndorf-Larsen Profile Picture
    Microsoft Employee on at

    Hmm I think the schema update itself would not update this table. Sorry to say it but I would look at the logic in the upgrade codeunit :-). Especially for something like ReportSelections.INSERT;. Is there a line like that?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 720 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 436 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 409 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans