Skip to main content

Notifications

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. 
 
//// 
  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 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.
  • Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 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.
  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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.
  • Martin Dráb Profile Picture
    Martin Dráb 230,868 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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans