on 08-08-2013 11:15 PM
Hello community,
The "Cannot perform action on XML document Content is not allowed in prolog." message error stops my xml_loader action while reading an XML file.
Please help,
Thanks in advance,
Hi Fernando,
This exception comes if the XML contains an invalid content like a space or dot in the beginning element i.e. before the "<?xml…."
Check the XML. Most probably it will solve the problem.
Regards,
Rohit Negi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Rohit,
No, there is no any invalid content . In addition to the error message , I should have told you that the xml files are being writed by the PI system server in a Web MII workbench folder . I can not see any xml files using the workbench, but when I look at the file system they exist !
Applying your suggestion, I copied the xml content from the xml file which can not been read by the MII transaction ( the prolog error message ) to an xml file created at the workbench, and there was no problem using the same transaction against that xml file !! . The content is the same ! ¿ How come ¡?
Please help me out .
Best regards,
I'm still not entirely sure about your answer. Is PI writing directly to the filesystem? Even if you are putting the files into the same physical directory used for MII web project content, you are correct because the DB doesn't have the files and any restarts or publishing always come from the DB, and get pushed to disk.
If you store the physical files in a folder and leverage the NetWeaver Virtual Host, you can create an alias to this location that should then work in an http path for the XML loader. (search Virtual in the NetWeaver Admin menu and you can figure it out from there).
Otherwise you'll need to work out the mechanics to post the files to MII so that the xml can be stored in the project path in the database and published in a manner similar to using the web:// prefix in a transaction (where it stores to DB and publishes to the file system path).
No problem Michael,
When an equipment has reached its preventive maximum working hours, PI creates a xml file located at a the proyect workbench folder directory ( which is the reason why I can not see it at the workbench ) to be read by my MII transaction in order to place a SAP maintenance notificaction .
Now , I changed my mind and I want the get file list action to read the files located at another server different from the MII server . The end user gave me the following adress . ¿ How can I read the files using the mentioned action ? or do I need to use the FTP get file list action instead ?
Please help
Hi Michael,
No I am not using PCo. This is a file transfer aproach from PI OSISoft to MII . I know that MII can ask directly to PI OSISoft; however, this is the way the end user and people from OSISoft agreed .
And yes, we are connecting to PI OsiSoft directly from MII in other apps .
Thanks & Best Regards,
Michael,
I have set a period in the folder parameter of the FTP Get File List action and received the following message : “[INFO] [FTP_Get_File_List_0]FTPGetFileList: Number of files: 39 “ . I suppose that MII is being able to connect to the FTP server but not being able to read the file list from the folder .
The following path \\rpd-ofcwnapp01\DBASES\Transfer\XML is where the XML files are being placed by the PI OSISoft system . It works using the windows file browser . How do you specify this path at the folder parameter of the FTP Get File List action ?????? . In addition, I have asked the PI system administrator to give us the full path thinking that it may work . If this does not work, we are planning to download the SFTP custom action blocks .
Please help
Summary,
I have finally found the way to use the FTP Get File List and the XML loader action together . MII can find the xml file at the FTP server . However the "Cannot perform action on XML document Content is not allowed in prolog" error message is showing up again .
Please help, thanks in advance
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.