Hello
New to AL - tried Sauravs introduction - all went fine until Publishing new objects (
https://saurav-nav.blogspot.com/2018/12/msdyn365bc-al-development-05-publish.html
When doing F5 I get the following messages :
[2019-02-05 22:22:39.40] The request for path /BC130/dev/apps?SchemaUpdateMode=synchronize failed with code 422. Reason:
The application object of type 'Table' with the ID '50000' is defined in the app 'ALProject1 by Default publisher 1.0.0.0', but already exists in the base application.
I enabled NetFx40_LegacySecurityPolicy restarted NAV Instance
Any Idea what to do ?
Answers
"schemaUpdateMode": "Recreate"
You need to delete the previous extension call ALProject1 before publishing the new.
Search Extension -> Mark your extension and press uninstall + unpublish.
But :
I can't see the table 50000 (because it does not contain the word extension)
I can't see how to uninstall or unpublish
In there you need to delete your extension
Regarding error you are facing you have to (I hope you are using On-Prem Version):
1.Check your launch.json and check for Server Instance mentioned.
2.Go to Business Central Administration and check the database connected to that service.
3.Open Database in Development Environment and search for Object - Table50000
4.If the object exists you may delete it or you can change your Object ID in Visual Studio code and change it to one which is not previously used.
Hope this helps.
Let me know if it works for you!.