When creating a package by calling packageWriter.Save(), the exception was thrown: Data at the root level is invalid. Line 1, position 1 RRS feed

  • Question


    When  I create a package by calling packageWriter.Save(), the error was thrown:

    "Data at the root level is invalid. Line 1, position1. .......

    Digging it more in detail for PackageProgressInfo class, the message is related to "RunJob - Device - Disable Driver Verifier".

    Then I went to DB directly with that value and try to search with Job and task tables.

    I found that these tasks are related to "wirless display verify ...." jobs. and I doubt this job and/or tasks are prevent from creating a package due to wrong format of some value (xml string value). I may be wrong.

    Can you please help me to figure it out? It is hard to address the reason of this issue.

    Much appreciated.

    Friday, March 7, 2014 4:26 PM

All replies

  • Can you look at the windows event viewer (Event Viewer | Applications and Services Logs | HCK - Hardware Certification Kit) and see if there is a larger stack trace for the issue.

    Also, are you trying to repackage a package, merge a package, and/or creating a package from a database connected project?

    John -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Friday, March 7, 2014 4:48 PM
  • Hi John,

    Checking that event under HCK - Hardware certification kit, there are no issues related to this.

    I am actually just trying to create a package (new merging) from a database connected project. 

    As mentioned, other cases are progressing, however, when it meets "wirless display verify ...." jobs, then it seems to be something wrong. (My assumption may be wrong)

    Can you please help me?

    Thanks in advance.

    Friday, March 7, 2014 5:14 PM
  • My current thinking is that there may be a corrupt log file. A few questions/ideas -

    Is the test "wireless display verify..." passing or failed?

    Can you try opening each of the log files in the results? Do any of the log files have problems opening?

    Have you tried rerunning the test and see if the packaging works?

    Another idea is to delete the result from HCK Manager. Make sure you close HCK Studio before deleting the result.

    Please report back your findings (good or bad).

    John -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, March 11, 2014 5:13 PM