API Error on using ProcessCommandListFortressItemFullDetails

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
tschneider
Posts: 35
Joined: Mon Aug 25, 2014 2:00 am

API Error on using ProcessCommandListFortressItemFullDetails

Post by tschneider » Wed Oct 01, 2014 8:20 am

i got an exception while using ProcessCommandListFortressItemFullDetails:

Exception:
"There is an error in XML document (1, 535)."

InnerException:
{"'', hexadecimal value 0x1C, is an invalid character. Line 1, position 535."}
[System.Xml.XmlException]: {"'', hexadecimal value 0x1C, is an invalid character. Line 1, position 535."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
HResult: -2146232000
InnerException: null
Message: "'', hexadecimal value 0x1C, is an invalid character. Line 1, position 535."
Source: "System.Xml"
StackTrace: " at System.Xml.XmlTextReaderImpl.Throw(Exception e)\r\n at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)\r\n at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)\r\n at System.Xml.XmlTextReaderImpl.ParseNumericCharRefInline(Int32 startPos, Boolean expand, StringBuilder internalSubsetBuilder, Int32& charCount, EntityType& entityType)\r\n at System.Xml.XmlTextReaderImpl.ParseCharRefInline(Int32 startPos, Int32& charCount, EntityType& entityType)\r\n at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)\r\n at System.Xml.XmlTextReaderImpl.ParseText()\r\n at System.Xml.XmlTextReaderImpl.ParseElementContent()\r\n at System.Xml.XmlTextReaderImpl.Read()\r\n at System.Xml.XmlTextReader.Read()\r\n at System.Xml.XmlReader.ReadElementString()\r\n at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderDragnetWebService.Read41_MantisItemFullDetail(Boolean isNullable, Boolean checkType)\r\n
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderDragnetWebService.Read98_ListItemFullDetailsResponse()\r\n at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer58.Deserialize(XmlSerializationReader reader)\r\n at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)"
TargetSite: {Void Throw(System.Exception)}


--- End of Exceptions ----

it seems to be a unrecognized character in Xml structure.
We are using latest version of VAULT Pro (registered user)

best
Thomas

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: API Error on using ProcessCommandListFortressItemFullDet

Post by Beth » Wed Oct 01, 2014 9:08 am

Can you show me your use of the command?

PS: I'm moving this topic to the API part of the forum.
Beth Kieler
SourceGear Technical Support

tschneider
Posts: 35
Joined: Mon Aug 25, 2014 2:00 am

Re: API Error on using ProcessCommandListFortressItemFullDet

Post by tschneider » Wed Oct 01, 2014 9:38 am

i am using it like :

int id=288;
MantisItemFullDetail result= ItemTrackingOperations.ProcessCommandListFortressItemFullDetails(id) ;

The Problem occurs only at a specific ID, other ID's work fine!

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: API Error on using ProcessCommandListFortressItemFullDet

Post by Beth » Wed Oct 01, 2014 1:06 pm

Do you have any double quotes in your comments?

Or if you use the Vault GUI client to look at the items, do you see quotes?
Beth Kieler
SourceGear Technical Support

tschneider
Posts: 35
Joined: Mon Aug 25, 2014 2:00 am

Re: API Error on using ProcessCommandListFortressItemFullDet

Post by tschneider » Thu Oct 02, 2014 12:50 am

i cannot open this issue in VAULT GUI Client, because of getting an error:

Fehler im XML-Dokument (1,535).

tschneider
Posts: 35
Joined: Mon Aug 25, 2014 2:00 am

Re: API Error on using ProcessCommandListFortressItemFullDet

Post by tschneider » Thu Oct 02, 2014 12:53 am

but i can open it via webinterface, the text in this issue is as follows:

12.09.2014 14:06:51:785 44 Close Channel
9 32 12.09.2014 14:06:51:895 ImportWorker 44 ==================== Start Import ====================
9 1 12.09.2014 14:06:51:910 ImportWorker 44 ----------------------------------------
9 2 12.09.2014 14:06:51:926 ImportWorker 44 Debug=True
9 2 12.09.2014 14:06:51:926 ImportWorker 44 Config=\\bsv-pspfs001\newsweb6\konfig\nw6_ServerService.config
9 2 12.09.2014 14:06:51:941 ImportWorker 44 Import Name=PMG
9 2 12.09.2014 14:06:51:941 ImportWorker 45 Import Path=\\bsv-pspfs001\datascan\postimport6
9 1 12.09.2014 14:06:51:957 ImportWorker 45 ----------------------------------------
9 1 12.09.2014 14:06:52:175 ImportWorker 46 IndexPath=\\bsv-pspfs001\datascan\newsweb6\nwpool\$index
9 16 12.09.2014 14:06:54:141 49 Send Working: 74551.zip
9 16 12.09.2014 14:06:54:172 49 Close Channel
9 1 12.09.2014 14:06:54:219 ImportDefPmg 50 Importing \\bsv-pspfs001\datascan\postimport6\74551.zip
15 1 12.09.2014 14:06:54:484 Script 50 Searching for lp_LizPMG_name=WELT ONLINE
15 1 12.09.2014 14:06:54:562 Script 50 Set mdnr=40223
15 1 12.09.2014 14:06:54:625 Script 50 Set mdtitel=DIE WELT
15 1 12.09.2014 14:06:54:640 Script 50 Set mdsprachebez=k.A.
15 1 12.09.2014 14:06:54:640 Script 50 Set mdauflgda=4922911
15 1 12.09.2014 14:06:54:656 Script 50 Set mdauflvba=475714
15 1 12.09.2014 14:06:54:656 Script 51 Set mdrwreichweite=1413862
9 1 12.09.2014 14:06:54:703 ImportDefPmg 51 Save new Document to 2014\0912\0cc1e56ebc0f4a9398b3885ba27010ed_nw6.xml
9 16 12.09.2014 14:06:54:734 51 Working DataScan.newsWEB6.Shared.Data.Document.BaseDoc
9 16 12.09.2014 14:06:55:015 BaseDoc 51 Save 54 Fields to Database...
9 1 12.09.2014 14:06:55:374 BaseDoc 52 Create new Record #Id=62612 (0 pages)
21 1 12.09.2014 14:06:55:405 Script 52 Searching for lp_LizPMG_name=Berliner Morgenpost online
21 1 12.09.2014 14:06:55:405 Script 52 Set mdnr=40099
21 1 12.09.2014 14:06:55:420 Script 52 Set mdtitel=Berliner Morgenpost
21 1 12.09.2014 14:06:55:452 Script 52 Set mdsprachebez=k.A.
21 1 12.09.2014 14:06:55:467 Script 52 Set mdauflgda=364773
21 1 12.09.2014 14:06:55:483 Script 52 Set mdauflvba=61429
21 1 12.09.2014 14:06:55:498 Script 53 Set mdrwreichweite=117368
9 8 12.09.2014 14:06:55:592 Imaging 54 Load: Die Datei "C:\ProgramData\DataScan GmbH\newsWEB6\Temp\$pmg\article_2\ASV_BEMO_132110018_ANH_1.jpg" konnte nicht gefunden werden.
9 16 12.09.2014 14:06:55:608 54 Send Error:
9 16 12.09.2014 14:06:55:623 54 Close Channel
9 8 12.09.2014 14:06:55:639 PmgArticle 54 CreateDocument, Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
9 16 12.09.2014 14:06:55:654 54 Send Error:
9 16 12.09.2014 14:06:55:670 54 Close Channel
9 16 12.09.2014 14:06:55:686 ImportDefPmg 54 Create Directory \\bsv-pspfs001\datascan\postimport6\$error\20140912
9 16 12.09.2014 14:06:55:701 ImportDefPmg 54 Move file \\bsv-pspfs001\datascan\postimport6\74551.zip->\\bsv-pspfs001\datascan\postimport6\$error\20140912\74551.zip
9 16 12.09.2014 14:06:55:732 54 Send Working:
9 16 12.09.2014 14:06:55:748 54 Close Channel
9 8 12.09.2014 14:06:55:748 ImportWorker 54 Error on Import PMG
9 16 12.09.2014 14:06:55:764 54 Send Error:
9 16 12.09.2014 14:06:55:779 54 Close Channel
9 32 12.09.2014 14:06:55:795 ImportWorker 54 ==================== Finished Import ====================
9 16 12.09.2014 14:06:55:810 54 Unregister Worker
9 16 12.09.2014 14:06:55:826 54 Close Channel
32 16 12.09.2014 14:06:55:826 ImportServer 107 PMG: Import unregistered
9 16 12.09.2014 14:06:55:951 54 Kill Worker
19 16 12.09.2014 14:07:17:479 BulkIndexer 106 Update Index of 1 docs
51 16 12.09.2014 14:07:17:526 IndexerBase 107 Add document to index #62612
51 1 12.09.2014 14:07:17:557 BulkIndexer 107 Committing 1 Documents to Index
19 16 12.09.2014 14:07:17:838 BulkIndexer 107 Update Index finished in 0,3612059 sec.12.09.2014 14:06:51:785 44 Close Channel
9 32 12.09.2014 14:06:51:895 ImportWorker 44 ==================== Start Import ====================
9 1 12.09.2014 14:06:51:910 ImportWorker 44 ----------------------------------------
9 2 12.09.2014 14:06:51:926 ImportWorker 44 Debug=True
9 2 12.09.2014 14:06:51:926 ImportWorker 44 Config=\\bsv-pspfs001\newsweb6\konfig\nw6_ServerService.config
9 2 12.09.2014 14:06:51:941 ImportWorker 44 Import Name=PMG
9 2 12.09.2014 14:06:51:941 ImportWorker 45 Import Path=\\bsv-pspfs001\datascan\postimport6
9 1 12.09.2014 14:06:51:957 ImportWorker 45 ----------------------------------------
9 1 12.09.2014 14:06:52:175 ImportWorker 46 IndexPath=\\bsv-pspfs001\datascan\newsweb6\nwpool\$index
9 16 12.09.2014 14:06:54:141 49 Send Working: 74551.zip
9 16 12.09.2014 14:06:54:172 49 Close Channel
9 1 12.09.2014 14:06:54:219 ImportDefPmg 50 Importing \\bsv-pspfs001\datascan\postimport6\74551.zip
15 1 12.09.2014 14:06:54:484 Script 50 Searching for lp_LizPMG_name=WELT ONLINE
15 1 12.09.2014 14:06:54:562 Script 50 Set mdnr=40223
15 1 12.09.2014 14:06:54:625 Script 50 Set mdtitel=DIE WELT
15 1 12.09.2014 14:06:54:640 Script 50 Set mdsprachebez=k.A.
15 1 12.09.2014 14:06:54:640 Script 50 Set mdauflgda=4922911
15 1 12.09.2014 14:06:54:656 Script 50 Set mdauflvba=475714
15 1 12.09.2014 14:06:54:656 Script 51 Set mdrwreichweite=1413862
9 1 12.09.2014 14:06:54:703 ImportDefPmg 51 Save new Document to 2014\0912\0cc1e56ebc0f4a9398b3885ba27010ed_nw6.xml
9 16 12.09.2014 14:06:54:734 51 Working DataScan.newsWEB6.Shared.Data.Document.BaseDoc
9 16 12.09.2014 14:06:55:015 BaseDoc 51 Save 54 Fields to Database...
9 1 12.09.2014 14:06:55:374 BaseDoc 52 Create new Record #Id=62612 (0 pages)
21 1 12.09.2014 14:06:55:405 Script 52 Searching for lp_LizPMG_name=Berliner Morgenpost online
21 1 12.09.2014 14:06:55:405 Script 52 Set mdnr=40099
21 1 12.09.2014 14:06:55:420 Script 52 Set mdtitel=Berliner Morgenpost
21 1 12.09.2014 14:06:55:452 Script 52 Set mdsprachebez=k.A.
21 1 12.09.2014 14:06:55:467 Script 52 Set mdauflgda=364773
21 1 12.09.2014 14:06:55:483 Script 52 Set mdauflvba=61429
21 1 12.09.2014 14:06:55:498 Script 53 Set mdrwreichweite=117368
9 8 12.09.2014 14:06:55:592 Imaging 54 Load: Die Datei "C:\ProgramData\DataScan GmbH\newsWEB6\Temp\$pmg\article_2\ASV_BEMO_132110018_ANH_1.jpg" konnte nicht gefunden werden.
9 16 12.09.2014 14:06:55:608 54 Send Error:
9 16 12.09.2014 14:06:55:623 54 Close Channel
9 8 12.09.2014 14:06:55:639 PmgArticle 54 CreateDocument, Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
9 16 12.09.2014 14:06:55:654 54 Send Error:
9 16 12.09.2014 14:06:55:670 54 Close Channel
9 16 12.09.2014 14:06:55:686 ImportDefPmg 54 Create Directory \\bsv-pspfs001\datascan\postimport6\$error\20140912
9 16 12.09.2014 14:06:55:701 ImportDefPmg 54 Move file \\bsv-pspfs001\datascan\postimport6\74551.zip->\\bsv-pspfs001\datascan\postimport6\$error\20140912\74551.zip
9 16 12.09.2014 14:06:55:732 54 Send Working:
9 16 12.09.2014 14:06:55:748 54 Close Channel
9 8 12.09.2014 14:06:55:748 ImportWorker 54 Error on Import PMG
9 16 12.09.2014 14:06:55:764 54 Send Error:
9 16 12.09.2014 14:06:55:779 54 Close Channel
9 32 12.09.2014 14:06:55:795 ImportWorker 54 ==================== Finished Import ====================
9 16 12.09.2014 14:06:55:810 54 Unregister Worker
9 16 12.09.2014 14:06:55:826 54 Close Channel
32 16 12.09.2014 14:06:55:826 ImportServer 107 PMG: Import unregistered
9 16 12.09.2014 14:06:55:951 54 Kill Worker
19 16 12.09.2014 14:07:17:479 BulkIndexer 106 Update Index of 1 docs
51 16 12.09.2014 14:07:17:526 IndexerBase 107 Add document to index #62612
51 1 12.09.2014 14:07:17:557 BulkIndexer 107 Committing 1 Documents to Index
19 16 12.09.2014 14:07:17:838 BulkIndexer 107 Update Index finished in 0,3612059 sec.

--- End of Text ---

amyjenkn
Posts: 1
Joined: Thu Oct 02, 2014 7:55 am

Re: API Error on using ProcessCommandListFortressItemFullDet

Post by amyjenkn » Thu Oct 02, 2014 7:58 am

I am getting the "There is an error in XML document (1, 535)." Exception too, anyone got an answer for this yet?
Amy

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: API Error on using ProcessCommandListFortressItemFullDet

Post by Beth » Thu Oct 02, 2014 1:35 pm

Several lines have file separators in them. If you have Notepad++ available and paste your text into there, you will see places where it says FS. Those are what need to go.
Beth Kieler
SourceGear Technical Support

tschneider
Posts: 35
Joined: Mon Aug 25, 2014 2:00 am

Re: API Error on using ProcessCommandListFortressItemFullDet

Post by tschneider » Mon Oct 06, 2014 1:48 am

but what doea that mean.
The text was pasted into the message field via VAULT Webinterface.
It seems that some characters did not correctly translated into a wellformed XML-Format by the VAULT-Webservice.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: API Error on using ProcessCommandListFortressItemFullDet

Post by Beth » Wed Oct 29, 2014 7:35 am

I don't think those things are going to show up in a copy/paste into a webfield. Did you try pasting into notepad++ so that you can see what I was talking about?

Or you can send me (support at sourcegear.com) what you pasted in and I can try it out here.
Beth Kieler
SourceGear Technical Support

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: API Error on using ProcessCommandListFortressItemFullDet

Post by Beth » Thu Nov 06, 2014 11:12 am

I've received the email and will respond offline.

HS: 231941
Beth Kieler
SourceGear Technical Support

Post Reply