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

UUID ** (ArgumentError) invalid or unknown type :uuid for field :DemoCategoryKey #31

Closed
cdesch opened this issue Jan 8, 2018 · 2 comments

Comments

@cdesch
Copy link
Contributor

cdesch commented Jan 8, 2018

= Compilation error in file lib/plant.ex ==
** (ArgumentError) invalid or unknown type :uuid for field :DemoCategoryKey
    lib/ecto/schema.ex:1727: Ecto.Schema.check_type!/3
    lib/ecto/schema.ex:1431: Ecto.Schema.__field__/4
    lib/plant.ex:5: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6

Error from code section:


defmodule MsSqlTest.DemoCategory do
  use Ecto.Schema

  @primary_key {:DemoCategoryKey, :uuid, autogenerate: false} 
  schema "DemoCategory" do
    #field :DemoCategoryKey, :uuid
    field :Name, :string     # Defaults to type :string
    field :CategoryNo, :integer
    field :Description, :string
  end
end

Your Environment

  • MssqlEcto version:
  • Ecto version:
  • Elixir version:
  • Erlang version:
  • Microsoft SQL Server version:
  • Operating System and version:
  • Link to your project:
@shdblowers
Copy link
Collaborator

This is a duplicate of #20 , no?

@cdesch
Copy link
Contributor Author

cdesch commented Jan 9, 2018

I think so. Closing. I saw #20 after submitting the issue. Thanks.

@cdesch cdesch closed this as completed Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants