Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Missing object name EcomProductCategoryTranslation

Missing object name EcomProductCategoryTranslation

hakan Fogelberg
Reply

Hi, when upgrading I get an error message Invalid object name 'EcomProductCategoryTranslation'. 

What are the SQL to insert this table manually? Is it also possible to get the sql for adding the tables EcomProductCategoryTranslation, EcomProductCategoryField, EcomProductCategoryFieldTranslation manually? 

Thank you

dw_upgrade_missing_tables.png

Replies

 
Nicolai Pedersen
Reply

Hi Hakan

You can always find the tables in \Admin\Update\Data\Create_DefaultEmpty.sql

This is the SQL

CREATE TABLE [dbo].[EcomProductCategoryTranslation](
    [CategoryTranslationCategoryId] [nvarchar](50) NOT NULL,
    [CategoryTranslationLanguageId] [nvarchar](50) NOT NULL,
    [CategoryTranslationCategoryName] [nvarchar](255) NULL,
    [CategoryTranslationAutoId] [int] IDENTITY(1,1) NOT NULL
)

Followed by

ALTER TABLE [dbo].[EcomProductCategoryTranslation] ADD  CONSTRAINT [DW_PK_EcomProductCategoryTranslation] PRIMARY KEY NONCLUSTERED
(
    [CategoryTranslationCategoryId] ASC,
    [CategoryTranslationLanguageId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)

If you encounter this issue - you probably have a database that is pretty damaged, so you might just run into another problem after fixing this.

BR Nicolai

 

You must be logged in to post in the forum