Still busy with CMSimport, and I'm just running into a weird error.
I've setup a regular importroutine for a client, and while importing dummy data from an xmlfile with something around 700 records I ran against the following.
Of the couple of times i ran the import routine, It has 2 times skipped a large number of records with the following error:
Error while importing data for property 'maxVoorraad' :Name cannot
begin with the '3' character, hexadecimal value 0x33. Line 1, position
33.
When I look at the Column maxVoorraad in the xmlfile, I cannot seem to find anything wrong with it. Would you have any idea what this error could mean?
Think something is wrong with the xml file. Does it validate in visual studio? Also element names can't start with a number(that's the error you get from the xml parser which is displayed as error).
the strange thing is, I can't seem to find any errors. Don't now what you mean by validating in VIsual studio, but the XML is created on the fly by exporting a Datatable to XML, (before the import of course) so it shouldnt be a problem.
Is there any way to check which record created the error? The xmlfile is very large, so it's hard to look for any specifics about the error.
Strange error
Hi Richard,
Still busy with CMSimport, and I'm just running into a weird error.
I've setup a regular importroutine for a client, and while importing dummy data from an xmlfile with something around 700 records I ran against the following.
Of the couple of times i ran the import routine, It has 2 times skipped a large number of records with the following error:
Error while importing data for property 'maxVoorraad' :Name cannot begin with the '3' character, hexadecimal value 0x33. Line 1, position 33.
When I look at the Column maxVoorraad in the xmlfile, I cannot seem to find anything wrong with it. Would you have any idea what this error could mean?
Martin
Hi Martin,
Think something is wrong with the xml file. Does it validate in visual studio? Also element names can't start with a number(that's the error you get from the xml parser which is displayed as error).
Hope that helps,
Richard
Hi Richard,
the strange thing is, I can't seem to find any errors. Don't now what you mean by validating in VIsual studio, but the XML is created on the fly by exporting a Datatable to XML, (before the import of course) so it shouldnt be a problem.
Is there any way to check which record created the error? The xmlfile is very large, so it's hard to look for any specifics about the error.
Martin
HI Martin,
If In can have access to the file I can have a look running the import in debug process.
Thanks,
Richard
Hi Richard,
thanks!
http://hoogeveenfietsen.nl/adsoft/tmp/tmp.xml
Martin
hi Richard,
I already solved the problem. The XML was valid, but the subxml that went into a custom datatype in umbraco had errors.
thanks for looking though.
Martin
Hi Martin,
Great to hear that, was on my todolist for today....
Thanks,
Richard
is working on a reply...