Hello,
You can check if whitin a worksheet element have only one , if so, probably you will have a record instead a record list to loop through… to override this, you can create a record with your correct structure specified and in “recordName” parameter of documentToRecord service you put this record to enforce the structure to behave like you want when you import your XML, this way, you will always have a record list even when you have just one element…
If you try this way, you’ll have to set too the “makeArrays” parameter to “false” into documentToRecord service…
Hope this help…
#webMethods-General#webMethods#Integration-Server-and-ESB