"New database filename already exists" error when updating database from command-line

Create issue
Issue #262 resolved
Wanderer created an issue

A "New database filename already exists" error is returned when trying to update a database from command-line. RC version 4.2.0 b2 (command-line 1.1.0.beta 1).

Output:

Update Z:\Program Files\Emulators!Utils\RomCenterBeta\datas\Amstrad CPC - Educational (TOSEC-v2015-05-07_CM).rdt with Z:\Documents\TOSECDats\DATs\TOSEC - DAT Pack - Complete (2974) (TOSEC-v2019-05-10)\TOSEC\Amstrad CPC - Educational (TOSEC-v2015-05-07_CM).dat
Template database version = 4,0439
Log saved to C:\ProgramData\romcenter\romcenter_xml.log
Initializing...
Ready
Dat in Tosec format
Loading games from Amstrad CPC - Educational (TOSEC-v2015-05-07_CM).dat
Analysing 8 games
Creating new database Amstrad CPC - Educational (TOSEC-v2015-05-07_CM) from datafile Amstrad CPC - Educational (TOSEC-v2015-05-07_CM).dat
New database filename already exists
at RomCenter.Logic.DataManager.CreateDatabase(DatReader datReader, String dstDbFilename, IRdtConfigUser dbsettings, FilterOptions datFilter)
at CommandLine.Program.RunUpdateAndReturnExitCode(UpdateOptions updateOptions)
at CommandLine.Program.<>c.<Main>b__11_2(UpdateOptions options)
at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult1 result, Action1 action)
at CommandLine.Program.Main(String[] args)
CommandLine.CmdDialogs/ErrorMessage : Error message: RomCenter.Global.RcFileExistsException: New database filename already exists
at RomCenter.Logic.DataManager.CreateDatabase(DatReader datReader, String dstDbFilename, IRdtConfigUser dbsettings, FilterOptions datFilter)
at CommandLine.Program.RunUpdateAndReturnExitCode(UpdateOptions updateOptions)
at CommandLine.Program.<>c.<Main>b__11_2(UpdateOptions options)
at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult1 result, Action1 action)
at CommandLine.Program.Main(String[] args)

Comments (3)

  1. Log in to comment