microsoft / vsts-extension-multivalue-control

A work item form control which allows selection of multiple values.
MIT License
46 stars 44 forks source link

If 8 or more items are selected using multivalue control, error is returned "Set the field Products Affected to use suggested values rather than allowed values. See documentation" #244

Open gokusupa opened 1 year ago

gokusupa commented 1 year ago

If 8 or more items are selected using multivalue control, error is returned "Set the field TestField to use suggested values rather than allowed values. See documentation".

image

image

I confirmed that "allow users to enter in their own values" has been selected for the backing field. Issue Issue only comes up after selecting 10 or more values. OR by hitting "select all" breaching that 8 limit

Thanks

AminTi commented 1 year ago

Thanks for reporting. We'll dig into this.

ramya-logalingam commented 8 months ago

Getting same error. "Set the field Alignment with Objectives to use suggested values rather than allowed values. See documentation" If I select more than 1 item, above error appears.

Multi Value

vipinagrawal20 commented 8 months ago

Getting same error. "Set the field Alignment with Objectives to use suggested values rather than allowed values. See documentation" If I select more than 1 item, above error appears.

Multi Value

I am facing the same issue. If I select more than 1 item, the above error appears.

kal1mera commented 4 months ago

Actually, after quite some time using the multi-value custom control with a pick-list I hit the same error. I think that the error is generated if you use a picklist and you select values that their total count of characters is exceeding the picklist string allowed character length limit of 255 chars.

I figured this out by first trying to remove selected pick-list values one-by-one from the field. After a couple of deletions, the error went off.

Then I counted the characters of all selected pick-list values in the control (adding also a semicolon count for each picklist value, since this is how they are stored in the database), and I reached the 255 allowed picklist (string) char limit before I hit the error. Thus I think that error is coming from the multi-value control but it is generated from hitting the pick-list string maximum allowed char limit.

A Contributor or repo admin of this repo can test and validate that and come back with a response.

P.S. However, the error coming from the multi-value control is misleading. There should be an error regarding exceeding the max char limit of the used picklist string.

bensker commented 4 months ago

We have this problem, but it is only for one specific work item type. All the other work items where this field has been works as expected. I've triple checked the configuration and can't find anything different in the process definition.

TrivediPriyanka commented 2 months ago

Actually, after quite some time using the multi-value custom control with a pick-list I hit the same error. I think that the error is generated if you use a picklist and you select values that their total count of characters is exceeding the picklist string allowed character length limit of 255 chars.

I figured this out by first trying to remove selected pick-list values one-by-one from the field. After a couple of deletions, the error went off.

Then I counted the characters of all selected pick-list values in the control (adding also a semicolon count for each picklist value, since this is how they are stored in the database), and I reached the 255 allowed picklist (string) char limit before I hit the error. Thus I think that error is coming from the multi-value control but it is generated from hitting the pick-list string maximum allowed char limit.

A Contributor or repo admin of this repo can test and validate that and come back with a response.

P.S. However, the error coming from the multi-value control is misleading. There should be an error regarding exceeding the max char limit of the used picklist string.

Urgent Help Needed I have field value length (character length) <255 it's still showing me the same error Here is input that could be derived from the Below Screenshot with a character length of 69: Cost;Requirements/Deliverables;Resources;Schedule;Scope;Testing/Quality;

image

@kal1mera @AminTi @bensker