0
I am evaluating a system made in Delphi 6, which basically uses a Tclientdataset to open xml files.
This system already works for a long time and is Ok, only one xml file is indicating the error of "Mismatch in datapacket" when I try to open it.
At first I am not posting the xml here because it has more than 1200 fields, and as only with a file is generating error, I believe the xml structure is correct.
There must be some wrong information typed by the user, however, I can’t find.
In Delphi I can’t debug because the error already occurs when opening xml.
Is there any software that can indicate where this error is? Any suggestions on how to locate where the problem is?
I made some attempts to parse in Delphi’s own Mapper XML, but could not locate anything.
Below XML download link. Unfortunately I cannot post the file with problem as it has a lot of commercial information. The file below is to show how the file structure is.
Your analysis is strange. If the error only occurs with this xml, it is very likely that the xml is in trouble. When you say 1200 fields, you refer to xml tags or is an xls file with 1200 lines ?
– Victor Tadashi
It is an xml file with 1200 tags. And yes, you are right, the problem is even with this xml, however, I need to find where the defect is, to check later if it was the software that generates it that created this defect.
– user3771516
Could you post xml? Maybe his link.
– Victor Tadashi
I added link to an empty xml but with the same structure. By the content of the data I can not post the original file.
– user3771516
Usually this error occurs when the incompatibility of types. Ex.: A field
inteiro
receiving a valuestring
. Like I said, usually, that is, it may be another problem.– Andrey
Does empty xml not work either? If this is the case, then its structure is not valid for a Tclientdataset.
– EMBarbosa
has a <PARAMS/> tag at the end of the file. Removes this guy and tries to import xml.
– Victor Tadashi
empty xml works. Removing the tag does not change the error. There is actually some data wrong. No one knows any software that can help in this analysis?
– user3771516
Dude, it gets tough without xml. If you can simulate the problem in another xml, it would look better.
– Victor Tadashi
I opened the file in Delphi’s XML Mapper to take some important information and post the file, but before I only saved one as to test, and the error is gone. XML was twice the size, but now it’s working. I won’t know what the problem was, but there is a solution. Thank you to everyone who tried to help.
– user3771516
Create several copies of this problem xml file and each copy with only one tag with its respective value. Load each file, maybe you’ll find out what tag the problem is on.
– wesley luan