web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Validation error message while posting timesheets after CU13 upgrade

(0) ShareShare
ReportReport
Posted on by

Hello,

From CU10 to CU 13 upgrade has bring in KB4016056 in my environment which has added a validation check in validatePost() method of Class TSTimesheetsPost Class.

It has added below condition

if (retVal && (tsTimesheetLine.isIntercompany()) && (_tsTimesheetTable.ApprovalStatus == TSAppStatus::Approved))
{
tsTimesheetsPost = new TSTimesheetsPost(_tsTimesheetTable);
retVal = tsTimesheetsPost.validateProjFinancialDim(_tsTimesheetTable);
}

Here tsTimesheetLine buffer has not yet been initialized and it's checking  whether it's intercompany or not. Why is this check without buffer data?

This always returns true and hence goes ahead in the if condition and executes   tsTimesheetsPost.validateProjFinancialDim() method. This is also new in KB4016056 .

This validateProjFinancialDim() method call is finding intercompany projects based on the default dimension of the Timesheet Line.

I feel something wrong here in this method. This gives me multiple projects of different companies and hence it fails. What is the purpose of this check here ?

Can anyone please help me understand this?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    I have to comment out this CU13 code for now and it obviously have worked well.

  • Thor Novang Profile Picture
    5 on at

    We have also upgraded to CU13 from CU10, and we ran in to same problem. I can't find any fix for this yet on LCS. KB4016056 fixes one problem for intercompany, and creates on problem for none intercompany it seems.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans