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 :
Microsoft Dynamics AX (Archived)

Import using Directory option and multithreading

(0) ShareShare
ReportReport
Posted on by

We are using Dynamics AX 2012 R3 CU9

We are trying to execute a DIXF import with "Directory" option and setting up the inbound, inprocess, completed and error folders for an dixf import. We are also setting up multiple threads (32) for the import.  The import size for test is small (377 records). DIXF is allocating 11 records per thread during execution. Here is the problem

(a) The batch completes with a status of "Ended"

(b) Only 1 task completes successfully and the rest are in Error with the message "File not found"

On investigation, we found the first tasks inserts 11 records and then moves the file to "Completed" folder. Now the file is not available for rest of the tasks and they fail with "File not found" error. This issue seems so fundamental that it is difficult to believe this problem has not be reported or no one else has faced this issue. 

Can anyone please help me understand

1) Why is DIXF reporting the batch as "Ended" even though some of the multithread tasks have failed?

2) Why is DIXF moving the file when all the tasks have not completed?

Did anyone face this issue or have any solution. Please let me know if more explanation is needed.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,284 on at
    RE: AX 2012 DIXF Import using Directory option and multithreading

    Hi Ashish,

    In CU 10 code that moves file was transferred from DMFEntityWriter to DMFEntityWriterTasksStatus.

    So now it will move file only after all batch jobs are complied because DMFEntityWriterTasksStatus is a batch job that has a dependency to all writer tasks.

    There is no dedicated HF for this so I think you can simply back port this changes from CU 10.

  • Community Member Profile Picture
    on at
    RE: AX 2012 DIXF Import using Directory option and multithreading

    Hi Ievgen

    Thanks a lot for your reply. We will upgrade to CU10 and check if this resolves the problem.

  • Hariharans87 Profile Picture
    3 on at
    RE: AX 2012 DIXF Import using Directory option and multithreading

    The directory option is used for importing multiple files.

    "On investigation, we found the first tasks inserts 11 records and then moves the file to "Completed" folder. Now the file is not available for rest of the tasks and they fail with "File not found" error."

    As per your message you are referring the same file for 32 threads. So, it won't work in directory concept, you can try with file concept.

    I couldn't understand that what you are means thread.

  • Community Member Profile Picture
    on at
    RE: Import using Directory option and multithreading

    Hariharan

    Thanks for your reply.

    Are you saying that we cannot using multiple threads (or multiple tasks) with directory option?

  • Hariharans87 Profile Picture
    3 on at
    RE: Import using Directory option and multithreading

    If each thread having different file, you could use directory otherwise you could go for file.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans