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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Batch job run well, but some records in Error folder

(0) ShareShare
ReportReport
Posted on by 537

Hi Guys,

We run 1 batch job for SO import into AX, and the batch run successfully, no error log. However, when checking, we found that some records from this batch jumped into Error folder. After that, we do manually import this record, it worked well. It means that only some records can not run automatically at this batch. 

We are quite worry about this case as we dont know why it happen and cannot control whether there is a record in Error folder or not.

Does anyone else meet this issue before?

What are possible reason for that?

Hope to receive ur response

Many thanks

Ett

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    How do you import them, AIF, DMF, custom code ?

  • Ett Profile Picture
    537 on at

    We import DMF

    Thanks

  • Mea_ Profile Picture
    60,284 on at

    Do you see any errors in staging table ?

  • Ett Profile Picture
    537 on at

    We found 1 error from stagging

    Error occurred while doing bulk copy from temp table to entity table-Violation of PRIMARY KEY constraint 'I_100511SALESLINE'. Cannot insert duplicate key in object 'dbo.DMFSALESLINEENTITY'. The duplicate key value is (5637144576, Opt-SO Line-6-1-8/04/2020 11:10:40 pm-1, Opt-SO Line, , 0.0000000000000000).

    The statement has been terminated.

    '0' 'Sales order line' record(s) inserted in staging

    Does anyone else have idea about this one?

    Ett

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Yes. So in the entity you have an index. And you are trying to insert 2 records that violate that index. However, when you process records one by one it is ok because there is no duplicates. Check you source data for duplicates.

  • Ett Profile Picture
    537 on at

    pastedimage1586825855589v1.png Do u mean that I need to check txt file from Source data format?

    Thanks

    Ett

  • Mea_ Profile Picture
    60,284 on at

    You need to check source file for the duplicates.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans