none
Using USING results in error

    Question

  • I want to simplify my namespace usage in USQL, but I'm getting an error. Here is my USQL:

    REFERENCE ASSEMBLY master.MyAssembly;
    
    USING MyNamespace;
    
    DECLARE @in = @"somepath/{dir:*}/{filename:*}.txt";

    And here is my compile-time error:

    Error	1	E_CSC_USER_SYNTAXERROR: syntax error. Expected one of: '[' end-of-file ALTER COMBINE CREATE DEPLOY DROP EXTRACT IF INSERT OUTPUT PROCESS REDUCE REFERENCE RESOURCE SELECT TABLE TRUNCATE UPDATE USE USING VIEW identifier quoted-identifier variable ';' '(' 
    Description:
    Invalid syntax found in the script.
    Resolution:
    Correct the script syntax, using expected token(s) as a guide.	

    NOTE: MyNamespace does not match MyAssembly.

    Am I doing something wrong? 

    I'm on version 2.0.6.
    Wednesday, August 3, 2016 7:47 PM

Answers

  • Hmmm... that latest version is 2.2. VS didn't list an update, but I found the update at https://www.microsoft.com/en-us/download/details.aspx?id=49504.
    Tuesday, August 9, 2016 3:21 PM
  • Sorry for the late reply.

    Are you getting this error from the client-tool or when you submit the query from the server-side parser?

    If you use new syntax, you have to make sure that you are using the latest Visual Studio tool if it raising the error. You can still submit the job then though and let the server-side parser take care of it, even with an older version.


    Michael Rys

    Monday, August 8, 2016 7:46 PM
    Moderator
  • Hmmm... that latest version is 2.2. VS didn't list an update, but I found the update at https://www.microsoft.com/en-us/download/details.aspx?id=49504.
    Best is to look at http://aka.ms/adltoolsVS (which redirects to the above URL) for the latest version. The WebPI installer for some reason does not get all updates.

    Michael Rys

    Tuesday, August 9, 2016 7:20 PM
    Moderator

All replies

  • Sorry for the late reply.

    Are you getting this error from the client-tool or when you submit the query from the server-side parser?

    If you use new syntax, you have to make sure that you are using the latest Visual Studio tool if it raising the error. You can still submit the job then though and let the server-side parser take care of it, even with an older version.


    Michael Rys

    Monday, August 8, 2016 7:46 PM
    Moderator
  • Is 2.0.6000.0 the latest? Also, I'm on VS 2013.
    Tuesday, August 9, 2016 3:01 PM
  • Hmmm... that latest version is 2.2. VS didn't list an update, but I found the update at https://www.microsoft.com/en-us/download/details.aspx?id=49504.
    Tuesday, August 9, 2016 3:21 PM
  • Hmmm... that latest version is 2.2. VS didn't list an update, but I found the update at https://www.microsoft.com/en-us/download/details.aspx?id=49504.
    Best is to look at http://aka.ms/adltoolsVS (which redirects to the above URL) for the latest version. The WebPI installer for some reason does not get all updates.

    Michael Rys

    Tuesday, August 9, 2016 7:20 PM
    Moderator