122
Views
5
Comments
Generic SQL error during publish after deleting an entity

After deleting an entity we get the following error during publish:

Upgrade Error


Generic SQL Error. Invalid object name 'OUTSYSTEMS.dbo.OSUSR_DWP_TEST'. System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'OUTSYSTEMS.dbo.OSUSR_DWP_TEST'.

2023-12-14 09-56-57
Yogesh Javir

Hey,

Its seems that you have used that deleted entity somewhere so thats why this error occures.

Thanks

Yogesh

2020-07-29 19-08-40
Sanjay Kumar Sahu

Hello,

I think you already published your module with that test entity and after that  created a new entity with same name. So OS get confused as there was already an entity with that name. I will suggest you to create the entity with different name to avoid this error.

Hope it helps!

Sanjay

2019-01-11 12-35-49
Cees van Oosten

Hi Sanjay,

Thanks for your reply.

The test entity is was created once and we just want to get rid of it.
Renaming the entity doesn't help either.

Kind regards, Cees

2020-07-29 19-08-40
Sanjay Kumar Sahu

There is a workaround for this specific problem in this post : 

https://www.outsystems.com/forums/discussion/39384/invalid-object-name/ 

First try with the marked solution, if didn't work, you can approach for finding physical table 'OSUSR_DWP_TEST' in osys_entity and deleting that.

2025-08-22 10-19-44
Pramod Jain
 
MVP

Hi Cees,

Could you please try to restore the previous version and then try again to delete it. Also please check if you have used this entity name somewhere in an Advance query?


Regards,

-PJ-

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.