Dead in the water -- latest version of SC "There was an error parsing the file "C:\:...."
stango
Posts: 10 New member
I upgraded this morning to the latest version and now I cannot work.
When I run Get Latest, I get the attached message
I have already tried restarting and this momentarily fixed it on a single environment, but then it started happening again. The sql syntax is valid and the stored proc operates correctly.
I have also tried locally modifying the file and pulling it down again, but that does not work either.
I am unable to support my dev team now because I can no longer use this tool.
Please help.
When I run Get Latest, I get the attached message
I have already tried restarting and this momentarily fixed it on a single environment, but then it started happening again. The sql syntax is valid and the stored proc operates correctly.
I have also tried locally modifying the file and pulling it down again, but that does not work either.
I am unable to support my dev team now because I can no longer use this tool.
Please help.
Tagged:
Best Answer
-
stango Posts: 10 New memberIt turns out that the new version of Source Control has an issue with the word 'window'. Probably need to patch that. Enclosing it with brackets, as in [window] seems to work
Answers
https://forum.red-gate.com/discussion/88937/error-parsing-file-while-committing-stored-procedure-and-table
You can't use that as an identifier
That being said, it's valid in SQL 2017, and we shouldn't throw an error on it, in SC or Prompt. Prompt appears to work, and if I connect SQL Source Control to SQ L2017 (14.0.3465) with SOC v 7.6.34.18144 and this code works:
I'd like to know what code you are having an issue with, what version of source control to reproduce this. If you can't post code here, you can email to support@red-gate.com and ref this post URL.
CREATE PROC sp$temp$proc
AS
SET NOCOUNT ON;
BEGIN
END
We use specific formats for code as we generate this for text storage. I might be wrong, but I don't think we support manually editing/adding sql files.
The team have identified the issue and are looking into it. Will let you know when I have some more information.
If you encapsulate "Window" into square brackets "[window]" you should not experience the problem.
Window
is a new SQL Server reserved keyword for which we added support recently, hence the error your getting.The team are looking into this will let you know when I have a further update.
This issue has been fixed in version 15.3.3 of Schema Compare and version 6.0.22 of Source control for oracle