Hello Sneha,
What type of entity are you using? You need to use a persistable entity, a non‑persistable or external entity will not work.
If this entity also relies on other parent entites (generalization/association) also make sure these are persistable and included in the offline shema.
If all are included in the offline shema and persistable, I would suggest making a page to display the entity in a data grid accessible to your user and see if the entity is created in the database.
Please share more info if this doesn't work.