Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Import G/L transaction using Custom XMLPort action.

(0) ShareShare
ReportReport
Posted on by 1,965

Hi All,

I have created a custom import action using XMLport, but when I was going to try importing CSV file of transaction, I am getting the below error.

pastedimage1680176141815v1.png

>>Below is my code for this:

pastedimage1680176215722v2.png

pastedimage1680176271399v3.png

pastedimage1680176297407v4.png

I have filled data in the excel according to the XMLport.

Can anyone give me a solution for this?

Thank you.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: Import G/L transaction using Custom XMLPort action.

    If you already have your journal lines in an Excel sheet or in a CSV file. I think it would be a better option for you to use either the Excel buffer or the CSV buffer for your import.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,271 Moderator on at
    RE: Import G/L transaction using Custom XMLPort action.

    Are those already created in BC first before importing the CSV?

  • Inkey Solutions Profile Picture
    Inkey Solutions 1,965 on at
    RE: Import G/L transaction using Custom XMLPort action.

    Yes, I have the same batch and template name in my CSV file according to the business central batch name.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,271 Moderator on at
    RE: Import G/L transaction using Custom XMLPort action.

    As per the error message can you check if you have same templates and batch created before importing 

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…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans