Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Can not deploy or debug

(0) ShareShare
ReportReport
Posted on by 42

Hi,

Please help me this error when public app or debug: SchemaUpdateMode=synchronize&DependencyPublishingOption=default failed with code UnprocessableEntity. Reason: The extension could not be deployed because it is already deployed on another tenant.

I have taken the following steps:

I change the field size on the table and run "schemaUpdateMode": "ForceSync" in launch.json (after deploy i block //"schemaUpdateMode": "ForceSync",):

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "al",
            "request": "launch",
            "name": "ITDOF_UPGRADE",
            "server": "http://localhost",
            "serverInstance": "BC140",
            "authentication": "Windows",
            "startupObjectId": 22,
            "startupObjectType": "Page",
            "breakOnError": true,
            "launchBrowser": true,
            "enableLongRunningSqlStatements": true,
            "enableSqlInformationDebugger": true,
            "schemaUpdateMode": "ForceSync",
       
        }
    ]
}

Then deploy app as steps bellow (extention install OK):

  • Publish-NAVApp -ServerInstance BC140 -Path "C:\Extension DEV from LIVE\ITDOF_UPGRADE\ITDOF_ITDOF_UPGRADE_18.4.4.110.app" –SkipVerification
  • Sync-NAVApp -ServerInstance BC140 -Name "ITDOF_UPGRADE" -Version 18.4.4.110 -Mode ForceSync
  • Start-NAVAppDataUpgrade -ServerInstance BC140 -Name "ITDOF_UPGRADE" -Version 18.4.4.110

If I public directly from VS Code or Debug (F5) I get an error as picture:

I don’t know when change size field (ex: code[20] -> code[30]) I deploy it right (command) ?  cause and how to fix it, please help me !!!

  • Vu Chi Profile Picture
    Vu Chi 42 on at
    Can not deploy or debug
    I created new version for App but it still be working with this error, can someone help me!!!
  • RE: Can not deploy or debug

    Have you tried to increase the version number in the app.json file?

  • Vu Chi Profile Picture
    Vu Chi 42 on at
    RE: Can not deploy or debug

    I added the property but this error still be continue

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Can not deploy or debug

    Please add the property

    "tenant":default

    and try again.

  • Vu Chi Profile Picture
    Vu Chi 42 on at
    RE: Can not deploy or debug

    Thanks your reply, but it not working and still be error

    I think it not main cause 

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Can not deploy or debug

    Can you please define the Port Number property as well in the Launch.json file?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans