cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

delete old objects present in old extensions

dbologna
13-Aquamarine

delete old objects present in old extensions

For the production environment, we create a deployment package and upload the extension to production. The objects that are part of the extension change, and some have been removed. However, I noticed that there are objects in production tied to old extensions that cannot be removed. I thought that excluding the object from the extension would remove it. How can I remove these old objects tied to extensions that are no longer present in the system?

7 REPLIES 7

Hi @dbologna,

 

Can you please explain how the objects are tied to old extensions with concrete example if possible?

What errors are you getting when removing the old objects?

Can you try importing the old extensions first, then remove the old objects, lastly delete the imported old extension?

If the old extension is not available anymore, can you try recreating the missing dependent entities (with the exact entity name) and remove again?

 

Best,

Tony
dbologna
13-Aquamarine
(To:TonyZhang)

Hi TonyZhans,

First of all, we're in a production environment and it's not possible to delete/import extensions.

I can create a new extension to which I add the old Things, but once I've imported the extension, these Things can't be removed because they're part of an extension.

Is there a way to remove a Thing that's part of an extension?

BR

Dimitri

Hi @dbologna,

 

To remove Things that are part of an extension, you have to delete the extension itself.

Please refer to Help Center for how to delete an extension.

You can then import the new extension without unwanted old Things.

If the imported extension has some issues, you should have detected this in Test or QA environment before going to production. It's a good chance to review your deployment process.

If the Things in extension have already been used by many other entities in Production, you may want to consider leaving the old Things as it is and simply mark them as deprecated or use permission control to hide the old things from developers.

 

Best,

Tony

Hi @dbologna 

 

I would like to share some feedback based on our current project setup. We have developed a project on the development server and plan to import it to the test and production environments as an extension.

During my testing, I observed the following behavior:

  • For example, if a package contains Thing1, Thing2, and Thing3 and I import it on the test server, all three entities are successfully created. However, if I later delete Thing3 on the development server, rebuild the package, and re-import it on the test server, then Thing3 is also automatically deleted from the test system.

  • Additionally, an entity (e.g., a Thing) cannot be deleted manually if it is already part of an extension.


My Approach for Our Use Case

I have structured the setup using two projects — Project A and Project A Configs:

  • Project A contains all main application components such as Things (business logic services), Mashups, etc.

  • Project A Configs contains all configuration elements such as User Groups, Users, and Dataset Things (used for configuration data). These datasets drive mashup dropdowns and other filtering functionalities.

All User Groups are part of Project A Configs, except for one specific User Group that depends on Project A.
When I create an extension, I temporarily delete all users from this User Group, because they are already included in Project A Configs. After importing the extension, these users are automatically re-associated with the User Group, since they were previously imported manually (only required the first time).

This structure keeps the solution clean and maintainable.
Whenever we receive new configuration data from the customer (for example, new product types or station lists), I can easily update the corresponding Dataset Things directly through a dedicated mashup I’ve created for managing configuration data.

 

 

 

Hi @dbologna if you still have confusion and facing still similar issue then please give your feedback so that we can further help you. 

 

According to my strategy which i have explained above may be questions will arise that how with services i am able to publish solution as these services are not visible in project services. These are hidden service and when you create package then you can see in network tab that which services are these which gets trigger for the process of creating package. i do update the version number and package creation with the respected services.

 

if you would like to see all services for a project you can also see in browser with the link below

 

https://server:portnumber/Thingworx/Projects

 

and then you can choose any project and can see services. The service with which we created package is called PublishSolution 

example => in screenshot as below

 

MA8731174_0-1760956562620.png

 

 

I am writing you because i am very curious that why you are having this issue and i can learn and can save myself for future issues.

Hi @dbologna,

 

It appears that a response to this post answers your question. For the benefit of other Community Members who may have the same question, it would be great if you could designate it as the Accepted Solution.

In the event that this response did not answer your question, please post your current status so that we can continue to support.

 

Thanks for using the PTC Community!

 

Regards,

Tony
dbologna
13-Aquamarine
(To:TonyZhang)

Hi All,

I ran the same test as MA8731174 on an offline production environment, and indeed, the object that was present in the old deployment package and no longer present in the new deployment package was deleted from the system.

In my case, this didn't happen in cloud production.

I'll try adding one of the old objects and deleting it in the next deployment to see how it behaves.

I'll let you know.

BR

Dimitri

Announcements


Top Tags