Developer forum

Forum » Swift » Invalid object name - custom item type

Invalid object name - custom item type

Caro De Weze
Reply

Hi,

When I create my own custom item type and change the restrictions, I get the error 'Invalid object name' in the visual editor:

I definitely saw that the name and systemName do not yet appear and there's nothing wrong with the object name (ItemType_Test_ProductUnits) either:
The xml is named ItemType_Test_ProductUnits.xml and the other file Test_ProductUnits.cshtml.
In DW9, this was sufficient, but now that is working in DW10, I thus get this error. Is there a setting I am forgetting?

Kind regards,
Caro De Weze


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Caro

It seems like the database was not updated with the table needed for the item type.

You can use the refresh command from item settings to force a DB update:

It can be a missing DB permission for the DB user. You can see if there are any errors in the monitoring dashboard.

Votes for this answer: 1
 
Kasper Legarth
Reply

HI Nicolai.

I have the exact same error. But the refresh does not fix it for me? The item types is from and XML file that have been deployed.
I can see the item type in the tree, and all settings on it are correct as well.

There is nothing in the monitoring dashboard, besides the error for the times i tried create the page with that item type.

Is there any other way to force a DB update?

- Kasper

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Only reset of the website.

Are you sure it is the exact same issue?

 
Kasper Legarth
Reply

Well no. I get the same error. So I assumed it was the same error.

 

You must be logged in to post in the forum