Skip to content

Setting Taxonomy field to Allow Fill-in choices fails #778

@dgtheninja

Description

@dgtheninja

Category

  • Bug

Describe the bug

I'm trying to set a taxonomy field to allow fill-in choices for an open term set, but it throws a SharePointRestServiceException with the following detail

HttpResponseCode: 400
Code: Microsoft.SharePoint.Client.InvalidClientQueryException
Message: The property 'Open' does not exist on type 'SP.Field'. Make sure to only use property names that are defined by the type.

Reading the Open property of the field correctly describes the state of the field, but setting the property fails.

Steps to reproduce

    await ctx.Web.LoadAsync(w => w.Fields);

    var taxField = ctx.Web.Fields.AsRequested().Where(f => f.InternalName == "TestTaxField2").FirstOrDefault();

    taxField.Open = true;
    await taxField.UpdateAsync();

Expected behavior

Call should succeed and the taxonomy field is updated to allow fill-in choices

Environment details (development & target environment)

  • SDK version: 1.5.0
  • OS: Windows Server
  • SDK used in: Functions App/Console App
  • Framework: .NET 6/.NET Standard 2.0
  • Browser(s): N/A
  • Tooling: Visual Studio 2022

Thanks for your contribution! Sharing is caring.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions