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, ...
Answered

How to import Expense journal using DIXF

(0) ShareShare
ReportReport
Posted on by 709

Hi everyone,

How to import Expense journal using DIXF ? 

Can we use these two entities to import Project > Journal > expense :

pastedimage1631524337134v1.png

And is there possibility to create new entity for that with modifications to make it more simple ?  

Especially for the lines, as I have  succeeded to import the table (header), but import the line always failed. It is succeeded to insert into staging, but the error is while insert into the table saying "Results. Error(s) occurred while writing entity record"

 As this is a journal with relates to Project which has table LedgerJournalTrans_Project, I only specifying these information :

JOURNALBATCHNUMBER
LINENUMBER
ACCOUNTCOMPANY
ACCOUNTTYPE
CREDITAMOUNT
CURRENCYCODE
DEBITAMOUNT
PROJECTCATEGORY
PROJID
QUANTITY
TEXT

With pre-setting of Default offset account, so that when the record inserted, I hope the journal created with the offset is filled already with that setting, as I know this information is mandatory.

So for the custom entity of "ExpenseJournalLineEntity", also whether it is ok to only include LedgerJournalTrans and LedgerJournalTrans_Project for its data source while the rest is removed.

Any special setting during import ?

Sorry, it is actually two questions:

  1. Can we import Project Expense Journal ?
  2. If yes, then can we duplicate the entities to make it more simple as I noticed some are not used in my current business process.?

Thanks,

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi,

    For Q1:

    Project expenses can either be imported via a GL journal (=> check out the standard project template available for that purpose "ProjExpenseGeneralJournalLineEntityTemplate") or via the "Journal lines for project" entity that you will have available when you open a project expense journal. If you have less than let's say 1000 lines to import, I would go for those standard templates rather than DIXF.

    For Q2:

    You can modify the import templates as needed.

    Best regards,

    Ludwig

  • ShaqAX Profile Picture
    709 on at

    Hi,

    I'm sorry, where can I find this template "ProjExpenseGeneralJournalLineEntityTemplate" ?

    and "Journal lines for project" entity, I believe is the same one that I attach the picture, is it ?

    My import actually will be less then 1000 ( < 50 even), and the error I get is when I only test with 1 line.

    Btw, I tried with the "ExpenseJournalLineEntity" though, now it is saying "Journal batch number must be filled in"

    like this :

    Results. Field 'Journal batch number' must be filled in.
    Results. validateWrite failed on data source 'LedgerJournalTrans (LedgerJournalTrans)'

    Which is make me confused as I already specified the Journal Batch number and it is exist already since I succeeded to import the header previously, so I'm using one of those Journal batch number from my existing header table's record. 

    If not mistaken, this error usually related to the number sequence, but not sure why. I have put the number sequence for Journal Id (Journal batch number) to "Allow manual", Also it is weird why it has to do with number sequence, because obviously it is Journal Line table, the Journal batch number should follow what already exist in the header table, so it should take a look at the Journal batch number field which is specified in the source file, in this case my excel file, am I right to say that ? Something need to set afterward ?

    Thanks,

  • Suggested answer
    Sheikh Sohail Profile Picture
    6,125 on at

    Hey,

    Please clear my understanding, Are you providing the journal batch number in the line file?  I understand that you created the journal successfully but on the line file, the same journal number will be required for a successful import.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello ShaqAX,

    Please try this journal template in the GL journal section:

    1680.proj.png

    Best regards, 

    Ludwig

  • ShaqAX Profile Picture
    709 on at

    Hi Sohail,

    Yes, I specified the journal batch number in my excel file for this journal line. The journal table has been imported separately, but I'm using the same number. So I am wondering why now it is said "Journal batch number must be filled in"

    Thanks,

  • ShaqAX Profile Picture
    709 on at

    Hi Ludwig,

    Appreciate this information, However I'm still looking for the solution of using DIXF, since this is important to my other purposes.

    Thanks,

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,679 Super User 2025 Season 2 on at

    Hi ShaqAX

    You can use following entities for import of project expense journal (one for heading and one for lines)

    pastedimage1631541715572v1.png

    Regards,

    Alireza Eshaghzadeh| Business Consultant | My blog

    Please mark this thread as verified if the answer is helpful.

  • ShaqAX Profile Picture
    709 on at

    Hi,

    Yes, I think that is the same entity as I attached on the first time ->

    pastedimage1631543162158v1.png

    Thanks

  • Verified answer
    Alireza Eshaghzadeh Profile Picture
    14,679 Super User 2025 Season 2 on at

    Hi,

    Yes. I am using entity "Project expense journal lines" for import and it works fine on 10.0.20.

    For test, please try to create the journal line manually, then export it via data management and delete the journal line. Compare the exported file to your source file to find the difference.

    You can try to import the exported file (e.g. in Excel) to check if you the get the same error message.

    pastedimage1631544923925v1.png

    Regards,

    Alireza

  • ShaqAX Profile Picture
    709 on at

    Hi,

    Okay, will try that. It is just I don't understand why the error saying Field 'Journal batch number must be filled in" when the excel file is confirmed to have that field specified.

    Just afraid there is some setting I missed out.

    Thanks,

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 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans