Cannot model attachment into business partner entity

I was trying to add IOrigamAttachments as an ancestor of BusinessPartner entity

I was expecting to show attachment on the page with BusinessPartner screen

Instead I’ve got the following error, which is caused by the fact, that IOrigamAttachments has IOrigamEntity2 as an ancestor, whereas BusinessPartner inherits from IOrigamEntity.

2023-06-01 17:05:56,705 [14] ERROR Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware - An unhandled exception has occurred while executing the request.
System.Data.DuplicateNameException: A column named ‘RecordUpdatedBy’ already belongs to this DataTable.
at System.Data.DataColumnCollection.RegisterColumnName(String name, DataColumn column)
at System.Data.DataColumnCollection.BaseAdd(DataColumn column)
at System.Data.DataColumnCollection.AddAt(Int32 index, DataColumn column)
at Origam.DA.Service.DatasetGenerator.CreateDataSet(DataStructure ds, Boolean includeCalculatedColumns, DataStructureDefaultSet defaultSet, CultureInfo culture, Boolean forceBuildFromDatastructure) in D:\a\1\s\backend\Origam.DA.Service\Generators\DatasetGenerator.cs:line 587
at Origam.DA.Service.AbstractSqlDataService.LoadDataSet(DataStructureQuery query, IPrincipal principal, DataSet dataset, String transactionId) in D:\a\1\s\backend\Origam.DA.Service\AbstractSqlDataService.cs:line 341
at Origam.DA.Service.AbstractSqlDataService.LoadDataSet(DataStructureQuery dataStructureQuery, IPrincipal principal, String transactionId) in D:\a\1\s\backend\Origam.DA.Service\AbstractSqlDataService.cs:line 283
at Origam.Workflow.DataServiceAgent.LoadData(DataStructureQuery query, DataSet data) in D:\a\1\s\backend\Origam.Workflow\Service Agents\DataServiceAgent.cs:line 98
at Origam.Workflow.DataServiceAgent.LoadData(DataStructureQuery query) in D:\a\1\s\backend\Origam.Workflow\Service Agents\DataServiceAgent.cs:line 87
at Origam.Workflow.DataServiceAgent.Run() in D:\a\1\s\backend\Origam.Workflow\Service Agents\DataServiceAgent.cs:line 535
at Origam.Workbench.Services.CoreServices.DataService.LoadData(Guid dataStructureId, Guid methodId, Guid defaultSetId, Guid sortSetId, String transactionId, QueryParameterCollection parameters, DataSet currentData, String entity, String columnName) in D:\a\1\s\backend\Origam.Workbench.Services\CoreServices\DataService.cs:line 100
at Origam.Workbench.Services.CoreServices.DataService.LoadData(Guid dataStructureId, Guid methodId, Guid defaultSetId, Guid sortSetId, String transactionId, QueryParameterCollection parameters, DataSet currentData) in D:\a\1\s\backend\Origam.Workbench.Services\CoreServices\DataService.cs:line 71
at Origam.Workbench.Services.CoreServices.DataService.LoadData(Guid dataStructureId, Guid methodId, Guid defaultSetId, Guid sortSetId, String transactionId, QueryParameterCollection parameters) in D:\a\1\s\backend\Origam.Workbench.Services\CoreServices\DataService.cs:line 65
at Origam.Workbench.Services.CoreServices.DataService.LoadData(Guid dataStructureId, Guid methodId, Guid defaultSetId, Guid sortSetId, String transactionId, String paramName1, Object paramValue1) in D:\a\1\s\backend\Origam.Workbench.Services\CoreServices\DataService.cs:line 50
at Origam.Server.UserStore.GetBusinessPartnerDataSet(Guid methodId, String paramName, Object paramValue, String transactionId) in D:\a\1\s\backend\Origam.Server\Authorization\UserStore.cs:line 356
at Origam.Server.UserStore.GetBusinessPartnerDataSet(Guid methodId, String paramName, Object paramValue) in D:\a\1\s\backend\Origam.Server\Authorization\UserStore.cs:line 348
at Origam.Server.UserStore.FindBusinessPartnerRowById(String userId) in D:\a\1\s\backend\Origam.Server\Authorization\UserStore.cs:line 301
at Origam.Server.UserStore.FindByIdAsync(String userId, CancellationToken cancellationToken) in D:\a\1\s\backend\Origam.Server\Authorization\UserStore.cs:line 106
at Microsoft.AspNetCore.Identity.UserManager1.FindByIdAsync(String userId) at Origam.Server.ProfileService.IsActiveAsync(IsActiveContext context) in D:\a\1\s\backend\Origam.Server\ProfileService.cs:line 41 at IdentityServer4.Validation.TokenValidator.ValidateAccessTokenAsync(String token, String expectedScope) at IdentityServer4.Hosting.LocalApiAuthentication.LocalApiAuthenticationHandler.HandleAuthenticateAsync() at Microsoft.AspNetCore.Authentication.AuthenticationHandler1.AuthenticateAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthenticateAsync(AuthorizationPolicy policy, HttpContext context)
at Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter.OnAuthorizationAsync(AuthorizationFilterContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Origam.Server.Middleware.FatalErrorMiddleware.Invoke(HttpContext context) in D:\a\1\s\backend\Origam.Server\Middleware\FatalErrorMiddleware.cs:line 46
at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)
at IdentityServer4.Hosting.MutualTlsEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)