Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Parse Schema #874

Closed
jmarbutt opened this issue Jun 13, 2023 · 2 comments
Closed

Unable to Parse Schema #874

jmarbutt opened this issue Jun 13, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jmarbutt
Copy link

I am receiving the following error on the latest version of

Microsoft.Azure.WebJobs.Extensions.Sql: Encountered error(s) while parsing schema and object name:
Incorrect syntax near ..

Here is one of my functions:

    [FunctionName("User_SqlTrigger")]
    public async Task Run(
        [SqlTrigger("[dbo].[User]",  "DefaultConnection")]
        IReadOnlyList<SqlChange<UserTriggerRow>> changes,
        ILogger logger)
    {
    
    // ..
    }

Here are my packages:

  <ItemGroup>
        <PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.2.2" />
        <PackageReference Include="Azure.Security.KeyVault.Secrets" Version="4.5.0" />
        <PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.21.0" />
        <PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
        <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.2.0" />
        <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.ServiceBus" Version="5.10.0" />

        <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Sql" Version="3.0.253-preview" />
        <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.16" />
        <PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" />
        <PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
        <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.1.3" />
        <PackageReference Include="RestSharp" Version="109.0.1" />
    </ItemGroup>
@Charles-Gagnon Charles-Gagnon added Needs Logs bug Something isn't working labels Jun 13, 2023
@Charles-Gagnon Charles-Gagnon added this to the Trigger GA milestone Jun 13, 2023
@github-actions
Copy link

We need more info to debug your particular issue. If you could attach your logs to the issue, it would help us fix the issue much faster.

  1. Set the default logging level to Debug and enable logging to a file. To do this ensure the following entries are in your host.json. (instructions)
{
  "logging": {
    "fileLoggingMode": "always",
    "logLevel": {
      "default": "Debug"
    }
  }
}
  1. Restart your function and reproduce your issue

  2. Get the log file and attach it to this issue. By default this will be in %TMP%/LogFiles/Application/Functions/Host.

NOTE Debug logging will include information such as Database and table names, if you do not wish to include this information you can either redact it from the logs before attaching or let us know and we will provide a way to send logs directly to us.

@MaddyDev
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants