How to make LedgerJournalAttachmentsEntity Data Entity public

I would like to use LedgerJournalAttachmentsEntity using Odata and found it is not public. So I duplicated the Entity and gave a custom name and made it public. But still accessing it give following error.

An error has occurred.

Microsoft.Dynamics.Ax.Xpp.ClrErrorException

at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue, interpret* ip) at Microsoft.Dynamics.Ax.MSIL.cqlCursorIL.NextRec(IntPtr table) at Microsoft.Dynamics.Ax.Xpp.Common.NextRec() in D:\dbs\sh\l23t\0422_210231\cmd\r\Source\Kernel\xppil\XppSupport\Common.cs:line 1031 at Microsoft.Dynamics.AX.Framework.Linq.Data.Msil.AxRecord.MoveNext() at Microsoft.Dynamics.AX.Framework.Linq.Data.AxProjectionReader1.Enumerator.MoveNext() in D:\dbs\sh\l23t\0422_210231\cmd\s\Source\Frameworks\LinqToManagedInteropLayer\Microsoft.Dynamics.Ax.Linq.Data\AxProjectionReader.cs:line 280 at Microsoft.Dynamics.Platform.Integration.Services.OData.Query.QueryEvaluator.Evaluate(IQueryable query, IServicesRequestSessionProvider servicesRequestSessionProvider, IODataSecurityRights securityRights) at Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataController.Get() at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary2 arguments, CancellationToken cancellationToken) — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

  • Vasanth