Skip to main content

Notifications

Announcements

No record found.

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

Import G/L transaction using Custom XMLPort action.

(0) ShareShare
ReportReport
Posted on by 1,707

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 32,748 Super User 2024 Season 1 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,091 Super User 2024 Season 1 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,707 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,091 Super User 2024 Season 1 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans