Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SAF Bank statement (Poland)

(0) ShareShare
ReportReport
Posted on by

I have the polish SYP layer. There is a class called AIFOutboundPortRunner with a Method called runOutboundPort(). This class is running when I am trying to run the SAF Bank statement (Poland) report (General Ledger, Reports, External, SAF Bank statement (Poland)). This is a report (from Microsoft) that creates an xml file with AIF functionallity. The result of this report is that nothing happens. There is no XML file created and no info or error Message.  The result should be an XML file created and an infolog about that.

I have tried to debug the code. The code is like this - from SYP layer

while (actionResultsEnumerator.moveNext())
    {
        //BP Deviation Documented
        xmlReader = System.Xml.XmlReader::Create(new System.IO.StringReader(
            this.removeHeaderNamespace(actionResultsEnumerator.currentValue())));
        xmlReader.MoveToContent();

        nodeName = xmlReader.get_Name();

        if (nodeName == #AifFileNameNode) 
        {
            aifFileName = xmlReader.ReadElementContentAsString();

            if (!System.IO.File::Exists(aifFileName))
            {
                throw error(strFmt("@SYS18678", aifFileName));
            }

            xmlReader = System.Xml.XmlReader::Create(aifFileName);
            xmlReader.MoveToContent();
        }

        xmlWriter.WriteNode(xmlReader, false);
        xmlReader.Close();

When AX is on code xmlReader.MoveToContent() marked as bold in the if statament the debugger stops and the report finished without any result - no file is created. Why does not Ax move to the NeXT line (xmlWrite.Writenode(...)?

XMLReader is defined in the top of the Method as System.XML.XMLReader  xmlReader;

I have checked that the filepath is correct and that AOS user has Access to this path. As far as I can see the setup on AIF is correct. Any ideas what could be wrong here?
 

*This post is locked for comments

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans