{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/AL/issues/2623","repository_url":"https://api.github.com/repos/Microsoft/AL","labels_url":"https://api.github.com/repos/Microsoft/AL/issues/2623/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/AL/issues/2623/comments","events_url":"https://api.github.com/repos/Microsoft/AL/issues/2623/events","html_url":"https://github.com/Microsoft/AL/issues/2623","id":333186576,"node_id":"MDU6SXNzdWUzMzMxODY1NzY=","number":2623,"title":"It is not possible to add new Key for exist table + system shows error that fields from standard range do not exits","user":{"login":"RedFoxUA","id":39195466,"node_id":"MDQ6VXNlcjM5MTk1NDY2","avatar_url":"https://avatars2.githubusercontent.com/u/39195466?v=4","gravatar_id":"","url":"https://api.github.com/users/RedFoxUA","html_url":"https://github.com/RedFoxUA","followers_url":"https://api.github.com/users/RedFoxUA/followers","following_url":"https://api.github.com/users/RedFoxUA/following{/other_user}","gists_url":"https://api.github.com/users/RedFoxUA/gists{/gist_id}","starred_url":"https://api.github.com/users/RedFoxUA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedFoxUA/subscriptions","organizations_url":"https://api.github.com/users/RedFoxUA/orgs","repos_url":"https://api.github.com/users/RedFoxUA/repos","events_url":"https://api.github.com/users/RedFoxUA/events{/privacy}","received_events_url":"https://api.github.com/users/RedFoxUA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-18T09:02:46Z","updated_at":"2018-06-18T11:32:40Z","closed_at":null,"author_association":"NONE","body":"It is not possible to add new Key for exist table + system shows the error that fields from standard range do not exits.\r\nTo download Symbols (before or after) does not solve this issue.\r\n\r\nE.g. we have the table \"Extended Variant\", where we have the field 10 \"Item No.\" (code 20) and we need to create a new key:\r\ntableextension 50105 ExtendedVariantExt extends \"Extended Variant\"\r\n{\r\n    fields\r\n    {\r\n        field(50000; Counter; Integer)\r\n        {\r\n            Caption = 'MyField';       \r\n            DataClassification = ToBeClassified;\r\n        }\r\n    }\r\n    keys\r\n    {\r\n        key(FK;Counter,\"Item No.\") { }        \r\n    }\r\n}\r\nthe error \"- Reference '\"Item No.\"' in application object 'ExtendedVariantExt' does not exist\".\r\n\r\nsame problem for the case when we need to add just 1 more key for fields, which already exist in the table - key(FK;\"Item No.\",\"Field 2\",\"Field 2\"..\"Field n\") { }  "},"comment":{"url":"https://api.github.com/repos/Microsoft/AL/issues/comments/398024839","html_url":"https://github.com/Microsoft/AL/issues/2623#issuecomment-398024839","issue_url":"https://api.github.com/repos/Microsoft/AL/issues/2623","id":398024839,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODAyNDgzOQ==","user":{"login":"qutreson","id":31541422,"node_id":"MDQ6VXNlcjMxNTQxNDIy","avatar_url":"https://avatars2.githubusercontent.com/u/31541422?v=4","gravatar_id":"","url":"https://api.github.com/users/qutreson","html_url":"https://github.com/qutreson","followers_url":"https://api.github.com/users/qutreson/followers","following_url":"https://api.github.com/users/qutreson/following{/other_user}","gists_url":"https://api.github.com/users/qutreson/gists{/gist_id}","starred_url":"https://api.github.com/users/qutreson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qutreson/subscriptions","organizations_url":"https://api.github.com/users/qutreson/orgs","repos_url":"https://api.github.com/users/qutreson/repos","events_url":"https://api.github.com/users/qutreson/events{/privacy}","received_events_url":"https://api.github.com/users/qutreson/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T11:32:40Z","updated_at":"2018-06-18T11:32:40Z","author_association":"CONTRIBUTOR","body":"Hi @RedFoxUA, it is currently not possible to use fields from the base table for a new key created from a table extension. Closing as duplicate of #456. You can also read #730 for more information on the topic of adding keys. "}}
{"actor":{"display_login":"qutreson"}}