Skip to content

The JSON does not represent a valid data source #153

@gashupl

Description

@gashupl

I have a [dbo].[Payment] table in my Azure SQL database. I've configured SQL Connection and it works correctly when I'm using it from Canvas App. However when I've tried the following PAC CLI command to generate PaymentService and PaymentModel, I'm getting error every time:

pac code add-data-source -a "shared_sql" -c "12361d4d5861472581aa422f582ed210" -t "[dbo].[Payment]" -d "my-sql-server.database.windows.net,my-db-name"

Error: An unexpected error occurred: Error processing file 'C:\Users\PiotrGaszewski\Desktop\CodeAppPoc\codeappsdemo\CodeAppPoc.power\schemas\sql\Payment.Schema.json': The JSON does not represent a valid data source.

The mentioned Payment.Schema.json is automatically generated by PAC CLI.
This is happening for every table in my database. Any idea what could be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions