After publishing data entity I get error in excel

  • System.Web.OData.Formatter.Serialization.ODataPrimitiveSerializer cannot write an object of type ‘Microsoft.Dynamics.DataEntities.NoYes’.

  • 2:29:28 PM 6/14/2022Data was published successfully (5.4s)

  • 2:29:28 PM 6/14/20221 error(s) were encountered while updating the workbook after publishing.

So records are updated, but the issue is that I get aforementioned error in excel. how do I fix it?
Entity is projects, I added this entity “LogisticsPostalAddressBaseEntity” in datasource. I coded several methods in Dataentity, here’s my modification which updates addresses on projects.