Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin Lingstuyl 202 posts 379 karma points
    Apr 18, 2012 @ 17:53
    Martin Lingstuyl
    0

    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

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Apr 18, 2012 @ 20:16
    Richard Soeteman
    0

    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

  • Martin Lingstuyl 202 posts 379 karma points
    May 04, 2012 @ 11:36
    Martin Lingstuyl
    0

    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

  • Richard Soeteman 4035 posts 12842 karma points MVP
    May 04, 2012 @ 16:47
    Richard Soeteman
    0

    HI Martin,

    If In can have access to the file I can have a look running the import in debug process.

    Thanks,

    Richard

  • Martin Lingstuyl 202 posts 379 karma points
    May 04, 2012 @ 17:11
    Martin Lingstuyl
    0

    Hi Richard,

     

    thanks!

    http://hoogeveenfietsen.nl/adsoft/tmp/tmp.xml

     

    Martin

  • Martin Lingstuyl 202 posts 379 karma points
    May 07, 2012 @ 10:13
    Martin Lingstuyl
    0

    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

  • Richard Soeteman 4035 posts 12842 karma points MVP
    May 07, 2012 @ 10:26
    Richard Soeteman
    0

    Hi Martin,

    Great to hear that, was on my todolist for today....

    Thanks,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft