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)

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

I have the same question (0)

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
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans