question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use Execute.Script() come out "!!! Illegal characters in path" for no reason

See original GitHub issue

Describe the question Use Execute.Script() come out

!!! Illegal characters in path

error in PowerShell. Multiple time checked, the error come out for no reason Tried absolute path also come out same error.

The Migration Code

using FluentMigrator;

namespace WPF_SQLite
{
    [Migration(20200428022647)]
    public class RenameColumnIdFromTablePersonToPersonId : Migration
    {
        public override void Up()
        {
            Execute.Script(@"Migrations\Scripts\20200428022647_RenameColumnIdFromTablePersonToPersonId.sql");
        }

        public override void Down()
        {
            Execute.Script(@"Migrations\Scripts\20200428022647_RenameColumnIdFromTablePersonToPersonId_Down.sql");
        }
    }
}

The PowerShell Command .\packages\FluentMigrator.Console.3.2.6\tools\net461\any\Migrate.exe -t:migrate -db Sqlite -configPath "D:\Jason Tam\Desktop\Playground\WPF (.NET Framework)\WPF_SQLite_Solution\WPF_SQLite\bin\Debug\WPF_SQLite.exe.config" -c "Data Source=.\WPF_SQLite\bin\Debug\Application.db" -a "D:\Jason Tam\Desktop\Playground\WPF (.NET Framework)\WPF_SQLite_Solution\WPF_SQLite\bin\Debug\WPF_SQLite.exe" -wd "D:\Jason Tam\Desktop\Playground\WPF (.NET Framework)\WPF_SQLite_Solution\WPF_SQLite\bin\Debug\" -verbose "TRUE"

Documentation Pages You’ve Read So Far Everything

Expected benefit

  1. I’m still learning to use this framework and also new in WPF. Hoping someone professional can explain the error behind this problems and provide solution. Thank very much.

Information (please complete the following information):

  • OS: [ Windows 10 ]
  • Platform [ .NET Framework 4.7.2 ]
  • FluentMigrator version [ 3.2.6 ]
  • FluentMigrator runner [ FluentMigrator.Console.3.2.6 ]
  • Database Management System [ SQLite ]
  • Database Management System Version [ SQLite Version 3 ]

Additional context I used Alt.FluentMigrator.VStudio package to auto generate the migrations file and SQL script.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Jason6809commented, May 1, 2020

@jzabroski

Thanks very much for the suggestions. I will try it update here. I also not very familiar with PowerShell and still learning on it.

I tested Execute.EmbeddedScript() method to run the SQL scripts, and it run flawlessly. I also tested Execute.Sql(), it run perfectly as well. Only Execute.Script() will resulting error.

0reactions
jzabroskicommented, Aug 18, 2020

@Jason6809 Hi - I am going to close this issue. Please re-open if you have renewed interest in getting help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C# - Illegal characters in path
I have a database table that containing file paths of excel files that I import using a C# script. The script works fine...
Read more >
[Solved] Illegal characters in path Exception
The "Illegal characters" exception means that the file path string you are passing to ReadXml is wrong: it is not a valid path....
Read more >
'Illegal characters in path.' occurred when attempting to ' ...
Hi, I'm using Aspose Words for .NET in combination with Metastorm BPM 9.0.3.1. When I use external assembly Aspose.Word.dll (checked with both 9.and...
Read more >
How to fix java.net.URISyntaxException: Illegal character in ...
Objective:The following error occurs and blocks execution of the script / template: Error executing script 's 1.ds' (pipelineName=Home2): ...
Read more >
Powershell - Copy-Item to a remote share path error illegal ...
I have confirmed that the character referenced in the error is the exact number where the $ symbol is in the destination. it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found