ImportSourceControlledEntities
Hello,
I've been building on a project to help with deployments of projects to QA/BV/Pilot/Prod instances after development has been completed.
The use case (which I haven't been able to find an alternative to, so if you have one please let me know) is that when you develop a larger project, you often end up with entities that gets deprecated.
If you have an especially large project, it can be annoying to have to manually clean up all other environments of these no longer used entities as you deploy your application.
The thought I had was that after using the ImportSourceControlledEntities function, I would delete any entities that were not imported from source control.
But when doing some tests I have run into issues with this error:
| JavaException: java.lang.Exception: Import Failed: Unable to create group: [1,002] Data store integrity violation error: [Error occurred while accessing the model provider.] |
It seems to me like it happens if the ImportSourceControlledEntities fails for whatever reason (mine has failed because of missing ThingShapes for example).
But when I read on the PTC help center, it says that any failure will make it so no entities are imported.
My understanding of the error message reading this support article is that this is due to entity id's have been saved in the database.
Either my understanding is incorrect, or there seems to be some bug here.
I am asking here before reaching out to PTC support, has anyone else had similar issues?
Thanks,
Jens

