Hello everyone
I want to run a customer Account Statement report on D365 F&O(AccountReceivable > Inquiries & Reports > Customers > Customer Account Statement).
But it was not running and giving me below error, i debugged the code so its giving me error from class - CustAccountStatementExtController, applyQueryRange Method(Line 2712). Its checking range in CustTable but we are not getting any range there, its null and then its throwing below error.
1) The menu item with name custaccountstatementext could not be opened.
2) Object reference not set to an instance of an object.
As i didn't find anything by debugging the code, so I checked the event viewer and there is a error -
Change Tracking must be enabled on database AXDB before it can be enable on GeneralJournalAccountEntry.
Change Tracking must be enabled on database AXDB before it can be enable on CustTable
Change Tracking must be enabled on database AXDB before it can be enable on DimensionAttributeValueCombination
When I tried to enable change tracking from DMF, there also I am facing error - change tracking is not enabled on the database -sql server change tracking.
Then what i did:
Step 1) I went to Sql > Axdb's property(Change Tracking) and enabled it.
STep 2) Then i went to DMF > Configure entity export to Database - GeneralJournalAccountEntryEntity(Entity) and did change Tracking for(Enable Primary Table, Enable Custom Query), did same thing for CustTableChangeProposalFieldEnablementEntity(Entity).
Step 2) I repeat Step 2 from DMF > Data Entities also.
After above steps, now when i am opening report from frontend - error is same on front
1) The menu item with name custaccountstatementext could not be opened.
2) Object reference not set to an instance of an object.
But, in Event viewer it got changed to
DimensionCombinationMissingMainAccount validation failed. Mitigation steps:
Can anyone please help me on this.
Thanks in Advance.