Hi Mohamed,
I assume you used the entity wizard to create your custom entity? In that case, you can do the next actions:
1- Disable the mandatory property on the InventTransID field.
2- Remove/disable the index TransIdIdx on the staging table as this one is not allowing duplicates.
The wizard is copying the complete table and then adjust some parts to make it a base staging table. It is not deleting obsolete indexes.