Skip to content

MultiChoice Field type doesn't provision properly #36

@MarkStokes-outlook

Description

@MarkStokes-outlook

Category

  • Question
  • Bug
  • Enhancement

Expected or Desired Behavior

I am trying to deploy a Multi-Choice Site Column with Fill-in choices enabled, add that to a Content Type, create a document library with that content type

Observed Behavior

The Site Column appears to be created, it appears to be added to the content type, but the content type cannot be added to the document library. If I try to manually add the Content Type to the Library then I get a "Sorry, something went wrong. Cannot complete this action. Please try again." error.

If I manually create a MultiChoice Site Column and add it to the Content Type through the UI then it works as expected and I can add the Content Type to the library.

I have also exported the Site Script for a manually created one and used that in my Site Script and it still fails.

Steps to Reproduce

Site Script:

{
    "$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json",
    "actions": [
        {
            "verb": "createSiteColumnXml",
            "schemaXml": "<Field Type=\"MultiChoice\" DisplayName=\"Product\" Group=\"CDMS\" Required=\"FALSE\" EnforceUniqueValues=\"FALSE\" Indexed=\"TRUE\" FillInChoice=\"TRUE\" ID=\"{9a90081c-a89a-4b3c-b041-8f51910a5762}\" StaticName=\"cdmsProduct\" Name=\"cdmsProduct\"><Default>Select...</Default><CHOICES><CHOICE>Select...</CHOICE></CHOICES></Field>"
        },
        {
            "verb": "createContentType",
            "name": "Controlled Document",
            "id": "0x010100E46A99072BB9B747AC570EEBC7D27E25",
            "description": "",
            "parentId": "0x0101",
            "hidden": false,
            "group": "CDMS - Level 1 Content Types",
            "subactions": [
                {
                    "verb": "addSiteColumn",
                    "internalName": "cdmsProduct"
                }
            ]
        },
        {
            "verb": "createSPList",
            "listName": "Administration",
            "templateType": 101,
            "subactions": [
                {
                    "verb": "addContentType",
                    "name": "Controlled Document"
                }
            ]
        }
    ],
    "bindata": { },
    "version": 1
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions