Nav Error caused by SQL Replication process???

Simo_ba
Member Posts: 78
Hi guys,
I need your help to fix this issue,guys.
I get an error message when I upload fob file to Nav that contain replicated tables,
the error message is:
Microsoft Dynamics NAV
The following SQL Server error(s) occurred while accessing the Item Ledger Entry table:
3724,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot drop the view 'dbo.Test$Item Ledger Entry$VSIFT$2' because it is being used for replication.
SQL:
IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'dbo."Test$Item Ledger Entry$VSIFT$2"') AND OBJECTPROPERTY(id, N'IsView') = 1) DROP VIEW dbo."Test$Item Ledger Entry$VSIFT$2"
OK
I found Microsoft solution but it's not be applied to me sorry.
'
Error occurs for objects that are replicated
For objects that are replicated, remove the object from the publication before attempting to alter or drop it. If the publication has subscriptions, you must delete all subscriptions before removing the object from the publication. '
Thank you guys,
I need your help to fix this issue,guys.
I get an error message when I upload fob file to Nav that contain replicated tables,
the error message is:
Microsoft Dynamics NAV
The following SQL Server error(s) occurred while accessing the Item Ledger Entry table:
3724,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot drop the view 'dbo.Test$Item Ledger Entry$VSIFT$2' because it is being used for replication.
SQL:
IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'dbo."Test$Item Ledger Entry$VSIFT$2"') AND OBJECTPROPERTY(id, N'IsView') = 1) DROP VIEW dbo."Test$Item Ledger Entry$VSIFT$2"
OK
I found Microsoft solution but it's not be applied to me sorry.
'
Error occurs for objects that are replicated
For objects that are replicated, remove the object from the publication before attempting to alter or drop it. If the publication has subscriptions, you must delete all subscriptions before removing the object from the publication. '
Thank you guys,
0
Comments
-
I'm guessing you've solved it by removing the table from replication?0
-
I don't want to remove this table from my replication,
I want this table to be replicated.
i cannot do that each time a upload fob file to nav.
](*,)0 -
Then you need to use use Transaction log replication.
SQL cannot allow a table to be changed once you've enabled any another type of replication.
You can use mirroring, but that is essentially T-log replication done within the same transaction realtime.0 -
Hi Rashed,
i'm using Transactional publication of the database,
is it the same thing or not?
Thanks a lot0 -
ara3n wrote:Then you need to use use Transaction log replication.
SQL cannot allow a table to be changed once you've enabled any another type of replication.
You can use mirroring, but that is essentially T-log replication done within the same transaction realtime.0 -
yes log shipping.0
-
Simo_ba wrote:Hi Rashed,
i'm using Transactional publication of the database,
is it the same thing or not?
Thanks a lot
May I ask why you are using replication?0 -
This is something that must be taken into consideration when implementing transactional replication. Schema changes require that the replication links (publications and their subscriptions) be dropped then recreated. This is why replication may not be a good choice where ongoing development, and schema changes, are occurring. This is not unique to NAV but is a consideration in any SQL system.There are no bugs - only undocumented features.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions