This project is read-only.

Having issues getting this to run

Jun 11, 2015 at 8:12 PM
Hello, I'm having some issues getting this working here (on Win7) and I'm wondering if anybody else has had similar issues and can offer advice.

I'm using discog's data from 20150501

import-labels with discogs_20150501_labels works just fine. No problems here.

import-artists fails with the following:

Unhandled Exception: System.Xml.XmlException: Invalid element.
at DiscogsNet.XmlReaderExtensionMethods.AssertNonEmptyElement(XmlReader reader)
at DiscogsNet.Model.DataReader2.ReadArtist()
at DiscogsNet.FileReading.ArtistReader2.Read()
at DiscogsNet.FileReading.ArtistReader2.<Enumerate>d__1.MoveNext()
at DatabaseManagerCli.Program.ImportArtists()
at DatabaseManagerCli.Program.ExecuteCommand(String command)
at DatabaseManagerCli.Program.Run(String[] args)
at DatabaseManagerCli.Program.Main(String[] args)

import-masters fails with the following:

Unhandled Exception: MySql.Data.MySqlClient.MySqlException: Field 'country' does
n't have a default value
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& i
nsertedId)
at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affected
Rows, Int32& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior
)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at DiscogsNet.Database.MasterReleaseInserter.Insert(MasterRelease master)
at DatabaseManagerCli.Program.ImportMasters()
at DatabaseManagerCli.Program.ExecuteCommand(String command)
at DatabaseManagerCli.Program.Run(String[] args)
at DatabaseManagerCli.Program.Main(String[] args)

import-releases fails with the following:

Unhandled Exception: System.FormatException: Invalid or unsupported XML format.
at DiscogsNet.Model.DataReader2.ThrowInvalidFormatException()
at DiscogsNet.Model.DataReader2.ReadRelease()
at DiscogsNet.FileReading.ReleaseReader2.Read()
at DiscogsNet.FileReading.ReleaseReader2.<Enumerate>d__1.MoveNext()
at DatabaseManagerCli.Program.ImportReleases()
at DatabaseManagerCli.Program.ExecuteCommand(String command)
at DatabaseManagerCli.Program.Run(String[] args)
at DatabaseManagerCli.Program.Main(String[] args)
Sep 4, 2016 at 7:03 PM
Hi
I have same isssue, did you find a way to import
thanks
Philippe