There is business requirement that they want customer record using history table,so we added the history table in both customer account and service account in context dictionary but while creating segment we Sql error.The error message is :
This record has 2 error(s) in 1 place(s) .
Error preparing segment for SQL generation
Trying to save an invalid page: page is not valid
Note: when we add history table in only one of the context either in customer account context or service account context ,there is no segment error,It only comes when context dictionary is added in both service account and customer account.Also we have association and property in both service account class and customer account class for this history table.