× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



If indeed the issue is size related you should be able to use the %Handler option to get past it. Either PARM or product_lineitems.product_lineitem should be usable.



www.partner400.com
www.SystemiDeveloper.com

On Jun 13, 2019, at 2:53 PM, Stephen Piland <Stephen@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I know I saw a previous thread from 2014 that discussed this but the answer I think I saw was to open a PMR with IBM if still having an issue with a 1.2GB file. Maybe that is still the answer. I do not know.

On a 7.3 box, I have a 1.8GB file (TYPE2) and the XML Into Parser gets about half way thru (or less) and then errors. I can approximate how far it got thru by finding a key value the handler writes to a file then doing a Find in the XML. Even though the error indicates that it was unsuccessful in parsing, it is not a format issue in the XML because I can manually split up the XML into several pieces and it parses correctly. Yes, the structure of this XML is pretty large but not ridiculous.

The error is RNX0353. Message is The XML document does not match the RPG variable; reason code 5. It is acting like I do not have Options set to allowextra but as seen below in the error details, it is set. %Status being returned is 353.

Reason code 5 is.. The XML document contains extra XML attributes or elements that do not match subfields.

Cause . . . . . : While parsing an XML document, the parser found that the
XML document does not correspond to RPG variable "PARM" and the options do
not allow for this. The reason code is 5. The exact subfield for which the
error was detected is
"PARM(1).product_lineitems.product_lineitem(2).price_adjustments". The
options are "doc=file path=orders/order case=any case=convert
allowextra=yes allowmissing=yes datasubf=value".

Statement in code...
XML-Into(e) %Handler(OrderHandler: Count) %XML(XMLFile : Options);


--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.