ENSDEMO>d $system.SQL.Shell()
SQL Command Line Shell
----------------------------------------------------
 
The command prefix is currently set to: <<nothing>>.
Enter q to quit, ? for help.
ENSDEMO>>select * from Ens_Config.Credentials
1.      select * from Ens_Config.Credentials
 
ID      BusinessPartner PasswordObject  Password        SystemName      Username
 
.... Rows(s) Affected

try 

Do ##class(%SQL.Util.Procedures).CSVTOCLASS(2, .rowType, pFileName, pDelimiter,,1) 
;; no defaults if not required or the EXACT count:  9 params = 8 comma   
;; I counted 9 

and/or

Property Name As %String (MAXLEN="");

and/or

;; the last comma in rowType looks also suspect to me.

set  rowType=" . . . .    ,ActiveStatus Boolean" 

HTH

my full support to 3 !!!!   and to 5, 2, 4 in this priority.

The difference between   ANSWER and COMMENT  causes  more confusion than being helpful.
Especially in the actual sequence.
Comment to Answers eventually may make sense. 
More than once I found myself in a Comment where it should have been an Answer.  

My suggestion:

 -handle all editing just in a modal pop-up .
- allow deleting (or hiding) your entry if you don't feel it appropriate anymore.

For the cube you have servermgr.exe where you define the ports you want to use 
docs: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...

 

In CSP gateway (from Mgmt Portal) you have Configuration -> Deault Parameters ->Instance Host Name: to set server + port

docs: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...

if you disable authentication  for  Username / PW you always come in as "UnknownUser"

in Mgmt Portal go to  System > Security Management > Users > Edit User for "UnknownUser"

and set Startup Tag^Routine:  ^%zmyLOGIN
and then do your own authetication.

if you intend to go to Prorammer Mode you just have to call "do ^%PMODE" at the end.
otherwise the terminal closes.

Conversion of XML to objects is a standard function in Caché.
start with http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...

and continue http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...

the principle steps

  • generate a package o classes from XML Schema
  • import your XML File to this package
  • - - -  change whatever you want to change
  • use %XML.Writer  to generate a new export file.

a different approach could be to use XSLT to transform your XML file
http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...

Whatever better fits to reach your goal.

Take the example from %Net.SMTP to SAMPLE or USER independent of any ENS*

http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?P...

and see if it runs on all 3 instances to verify SMTP access.

If it fails you may take a closer look to your firewalls  outgoing  and on SMTP server incoming.

If this works on all 3 instances than your config in ENSEMBLE is somehow different .

OR

in SAMPLES use Class Cinema.Utils. SendEmail(...) and adjust is to your needs

~~~