Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

SAF Bank statement (Poland)

$
0
0

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?
 


Viewing all articles
Browse latest Browse all 143529

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>