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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Error in importing Data

(0) ShareShare
ReportReport
Posted on by 53
Hi
I have written a code in x++ to insert and update data in 3 tables (tstimesheettable, tstimesheetline, tstimesheetlineweek). That is working fine on development server. But getting error on UAT server.
I am attaching screenshot for your reference. 
 
//// 
I have the same question (0)
  • Martin Dráb Profile Picture
    237,038 Most Valuable Professional on at
    Error in importing Data
    The error says that you're trying to insert a record to TSTimesheetLine table that violates uniqueness of a unique index, i.e. that there already is a record with the same values of a unique index.
     
    There is only one unique index in the standard application, which consists of these fields: Resource, TimesheetNbr, LineNum and ProjPeriodTimesheetWeek.
  • GirishS Profile Picture
    27,825 Moderator on at
    Error in importing Data
    Hi rsingh,
     
    In addition to the Martin comments, you may be missing to insert value to LineNumber field.
    In dev server maybe you tested for single record only.
     
    Thanks,
    Girish S.
  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Error in importing Data
    I would suggest you to debug the uat server. Otherwise you have to use same database in dev vm and have to find the root cause.
  • Mohit Rampal Profile Picture
    12,565 Moderator on at
    Error in importing Data
    Hi, In addition, either your file has duplicate records (as per unique index of table) or the table already has record/s that you are trying to insert.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 596 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 570 Super User 2025 Season 2

#3
CU05031448-0 Profile Picture

CU05031448-0 556

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans