I'm doing a flow that runs after a work item in Azure is changed to an X state and other custom fields. Everything runs until after receiving approval or rejection from the approver, when the flow reaches the part to update the work item, specifically the custom status and throws the following error:
The field ‘State’ contains the value ‘XXXX’ that is not in the list of supported values
View el Output:
{"statusCode":400,"headers":{"Pragma":"no-cache","x-ms-request-id":"27d8475b-93ec-4554-8c3d-cd7c5d9ac3a1","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff","X-Frame-Options":"DENY","Cache-Control":"no-store, no-cache","Set-Cookie":"ARRAffinity=9c9c847b5bd6c73a56d4f1afae4aecaa7f5b746d703be6c728afc87b6c50d7e3;Path=/;HttpOnly;Secure;Domain=vsts-eus2.azconn-eus2-01.p.azurewebsites.net,ARRAffinitySameSite=9c9c847b5bd6c73a56d4f1afae4aecaa7f5b746d703be6c728afc87b6c50d7e3;Path=/;HttpOnly;SameSite=None;Secure;Domain=vsts-eus2.azconn-eus2-01.p.azurewebsites.net","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","Date":"Fri, 30 Apr 2021 20:18:32 GMT","Content-Length":"2456","Content-Type":"application/json","Expires":"-1"},"body":{"status":400,"message":"Azure DevOps rule(s) has been violated. See underlying error for details.\r\nAzure DevOps ActivityId: d69ac884-ef2a-4e03-992a-6c08ea88ad74\r\nDetails: {\"$id\":\"1\",\"customProperties\":{\"FieldReferenceName\":null,\"FieldStatusFlags\":\"none\",\"ErrorMessage\":\"The field 'State' contains the value 'Rechazado CAB' that is not in the list of supported values\",\"FieldStatusCode\":0,\"RuleValidationErrors\":[{\"fieldReferenceName\":\"System.State\",\"fieldStatusFlags\":\"required, hasValues, limitedToValues, invalidListValue\",\"errorMessage\":\"The field 'State' contains the value 'Rechazado CAB' that is not in the list of supported values\",\"fieldStatusCode\":4194317,\"ruleValidationErrors\":null}]},\"innerException\":null,\"message\":\"The field 'State' contains the value 'Rechazado CAB' that is not in the list of supported values\",\"typeName\":\"Microsoft.TeamFoundation.WorkItemTracking.Server.RuleValidationException, Microsoft.TeamFoundation.WorkItemTracking.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\"typeKey\":\"RuleValidationException\",\"errorCode\":0,\"eventId\":3200}\r\nclientRequestId: 27d8475b-93ec-4554-8c3d-cd7c5d9ac3a1","error":{"message":"Azure DevOps rule(s) has been violated. See underlying error for details.\r\nAzure DevOps ActivityId: d69ac884-ef2a-4e03-992a-6c08ea88ad74\r\nDetails: {\"$id\":\"1\",\"customProperties\":{\"FieldReferenceName\":null,\"FieldStatusFlags\":\"none\",\"ErrorMessage\":\"The field 'State' contains the value 'Rechazado CAB' that is not in the list of supported values\",\"FieldStatusCode\":0,\"RuleValidationErrors\":[{\"fieldReferenceName\":\"System.State\",\"fieldStatusFlags\":\"required, hasValues, limitedToValues, invalidListValue\",\"errorMessage\":\"The field 'State' contains the value 'Rechazado CAB' that is not in the list of supported values\",\"fieldStatusCode\":4194317,\"ruleValidationErrors\":null}]},\"innerException\":null,\"message\":\"The field 'State' contains the value 'Rechazado CAB' that is not in the list of supported values\",\"typeName\":\"Microsoft.TeamFoundation.WorkItemTracking.Server.RuleValidationException, Microsoft.TeamFoundation.WorkItemTracking.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\"typeKey\":\"RuleValidationException\",\"errorCode\":0,\"eventId\":3200}"},"source":"vsts-eus2.azconn-eus2-01.p.azurewebsites.net"}}
It looks like you are setting a wrong value in the state field
Can you recheck the value passed to the state field? Or paste screens from your flow so we can help more.
Thanks.
View Work item en Azure with states:
I guess you need to pass the statecode value rather than the name.
I have been looking more into this issue, from what I read I understood that this custom state should be related to a category and work item type.
So the way you are setting it looks correct, are u able to update the item from the UI to the same state?
Yes, from the UI allows me to switch to all custom states
I would like to suggest the below to troubleshoot this issue, create a manual flow and add Getworkitemdetails action and pass the Id of an existing work item with custom state, run the flow and observe the output.
Hi Mira and thank you very much in advance for your help; I have run the test that you indicate and now what is next?
View Output:
{
"statusCode": 200,
"headers": {
"Pragma": "no-cache",
"Vary": "Accept-Encoding",
"x-ms-request-id": "1cd19203-cca9-4766-8e98-6bc7b6016947",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Cache-Control": "no-store, no-cache",
"Set-Cookie": "ARRAffinity=b7040b1d4c9c94be2ed2daa751e390a22561d89bc6e36ec48af3eb30a83df054;Path=/;HttpOnly;Secure;Domain=vsts-eus2.azconn-eus2-01.p.azurewebsites.net,ARRAffinitySameSite=b7040b1d4c9c94be2ed2daa751e390a22561d89bc6e36ec48af3eb30a83df054;Path=/;HttpOnly;SameSite=None;Secure;Domain=vsts-eus2.azconn-eus2-01.p.azurewebsites.net",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "false",
"Date": "Sat, 01 May 2021 00:11:10 GMT",
"Content-Type": "application/json; charset=utf-8",
"Expires": "-1",
"Content-Length": "8476"
},
"body": {
"id": 18209,
"rev": 17,
"url": "https://xxx.visualstudio.com/_apis/wit/workItems/18209",
"fields": {
"System_Id": 18209,
"System_AreaId": 6110,
"System_AreaPath": "BHDL Gestión de Cambios",
"System_TeamProject": "BHDL Gestión de Cambios",
"System_NodeName": "BHDL Gestión de Cambios",
"System_AreaLevel1": "BHDL Gestión de Cambios",
"System_Rev": 17,
"System_AuthorizedDate": "2021-04-30T20:17:04.713Z",
"System_RevisedDate": "9999-01-01T00:00:00Z",
"System_IterationId": 6102,
"System_IterationPath": "BHDL Gestión de Cambios",
"System_IterationLevel1": "BHDL Gestión de Cambios",
"System_WorkItemType": "Issue",
"System_State": "Sometido CAB",
"System_Reason": "Moved to state Sometido CAB",
"System_CreatedDate": "2021-04-30T19:58:57.2Z",
"System_CreatedBy": "AMAURY SALDAÑA, BHD <amaury_saldana@xxx.com.do>",
"System_ChangedDate": "2021-04-30T20:17:04.713Z",
"System_ChangedBy": "AMAURY SALDAÑA, BHD <amaury_saldana@xxx.com.do>",
"System_AuthorizedAs": "AMAURY SALDAÑA, BHD <amaury_saldana@xxx.com.do>",
"System_PersonId": 45354870,
"System_Watermark": 72877,
"System_CommentCount": 5,
"System_Title": "Pruebas Aprobaciones CAB",
"Microsoft_VSTS_Common_StateChangeDate": "2021-04-30T20:16:24.303Z",
"Microsoft_VSTS_Common_ActivatedDate": "2021-04-30T19:59:45.39Z",
"Microsoft_VSTS_Common_ActivatedBy": "AMAURY SALDAÑA, BHD <amaury_saldana@xxx.com.do>",
"Custom_AreaSolicitante": "Tecnología",
"Custom_Tipo": "Eficiencia",
"Custom_Arquitecto": "AMAURY SALDAÑA, BHD <amaury_saldana@xxx.com.do>",
"Custom_TipodeTrabajo": "Elegir opción",
"Custom_ScrumMaster": "AMAURY SALDAÑA, BHD <amaury_saldana@xxx.com.do>",
"Custom_AreaEjecutoradelCambio": "No Aplica",
"Custom_Plataforma": "Visual",
"Custom_LugardelTrabajo": "Remoto",
"Custom_MomentoSolicitado": "A la hora indicada",
"Custom_e2fbf2b2-5662-4af1-9506-73b855944184": "15 minutos",
"Custom_499f7cc7-ba99-4145-be6f-0d5a6ad4d69a": false,
"Custom_ImplicacionesdelDesarrollo": "Elegir opción",
"Custom_ImplicapasedeObjetos": false,
"Custom_LiderdeSQA": "AMAURY SALDAÑA, BHD <amaury_saldana@xxx.com.do>",
"Custom_GestordeAmbiente": "AMAURY SALDAÑA, BHD <amaury_saldana@xxx.com.do>",
"Custom_ObjetivosAlcanzados": false,
"Custom_FueNecesarioRollback": false,
"Custom_AreadeApoyo": "No Aplica",
"Custom_TipodeCAB": "ECAB Virtual",
"Custom_8aa71c10-f7b4-4047-b3e6-0e375474e988": "2021-04-30T19:53:00.643Z",
"Custom_VentanadeCambios": "Cuando Estemos Listos",
"Custom_bdf93bde-e21a-4cba-b3c1-7f143e032cf4": "Elegir opción",
"Custom_FechaAprobadadiferentealaSolicitada": false,
"Custom_HoraAprobadadiferentealaSolicitada": false,
"Custom_MomentoAprobadodiferentealSolicitado": false,
"Custom_8c17706c-9e4a-4a4c-9d6c-db1a3861ed7c": "2021-04-30T19:53:00.643Z",
"Custom_1544e1f7-4751-4ff3-a6b7-2c2d0037a779": "Elegir opción",
"Custom_SistemasInvolucrados": "Azure",
"Custom_Empresa": "BHD León",
"Custom_EspaciodeTrabajoAfectado": "Desarrollo",
"Custom_1e0c1b51-9184-4e34-a100-82e083ff426b": "Elegir opción",
"Custom_Prioridaddelcambioasignada": "Elegir opción",
"Custom_Subtipo": "A Solicitud de Tecnología",
"Custom_858bb036-cf16-4aff-bafc-25690343a73f": "Ejecucion de Procesos Nuevos en Aplicaciones Visuales",
"Custom_4badfb76-508f-44db-8da3-a4d36a33f197": "1 Mes",
"Custom_SurgieronEventosnoContemplados": false,
"Custom_SeAfectaronServiciosNOContemplados": false,
"Custom_SeEjecutaronActividadesnoContempladas": false,
"Custom_IncluyeBasedeDatos": false,
"Custom_IncluyeControlM": false,
"Custom_FechayHoraSolicitada": "2021-05-07T04:00:00Z",
"Custom_1751b8df-0614-4d85-aa4c-480505d1b83f": false,
"Custom_CheckListLaSolicituddebeestarenEstadoImplementado": false,
"Custom_e5cbabd2-5370-4627-a96d-432da5178c74": false,
"Custom_f800335e-bdb2-49be-b29a-3c4051f67e87": false,
"Custom_CheckListDebetenertodaslasaprobaciones": false,
"Custom_CheckListElInformedeResultadodebeestarcompletado": false,
"Custom_CheckListNodebetenerObservacionespendientes": false,
"Custom_CheckListCuandoseaunECABdebetenerloscorreosdeaprobacionesagregados": false,
"Custom_CheckListLasTareasdebenestarcompletadasCamposyEstado": false,
"Custom_b9a9f487-8320-4fb6-a83d-65b4129c0fa7": false,
"Custom_22c3d49c-bf75-4c3c-9d59-81796c249bc2": false,
"Custom_8c0337d0-6b50-4c43-a68b-d14d1451f57f": false,
"Custom_86bb1586-c1a7-4ce1-86ca-e04bffea512b": "Elegir opción",
"Custom_CheckListHardeningdeServidores": false,
"Custom_4ff0e899-0973-4eba-bedf-5abd2aaf4c1d": false,
"Custom_CheckListPruebasdevulnerabilidades": false,
"Custom_0d3063c5-3cb2-4d26-a853-cae9dc000090": false,
"Custom_CheckListEspuertosegurohttps": false,
"Custom_CheckListHardeningBasedeDatos": false,
"Custom_1cb2e48a-85aa-4fc8-a7e0-378a7437cb11": false,
"Custom_1c54abb1-8ea4-4662-b5c5-c6a43e2f486d": false,
"Custom_Scriptsdeobjetos": false,
"Custom_15a2d23a-4534-4e99-a16b-572031ba5f69": false,
"Custom_TipodeDesarrollo": "Inhouse",
"Custom_73ac4951-367c-4fb1-ae4e-59a7673dab10": false,
"Custom_669c7f20-b390-4f5d-a639-e83dccf1fa58": false,
"Custom_RepositoriosenAzureDevOps": false,
"Custom_ca38ac38-2df5-41bc-8fec-ecc65e5ddc9b": false,
"Custom_d8188d03-5826-4008-84c7-35b78fecd835": false,
"Custom_f5077ae8-eb9c-4faa-bc6c-59b47ba26c81": "Verificando GP",
"Custom_7ca9ea76-48dd-49ee-9059-72656f6be503": "AMAURY SALDAÑA, BHD <amaury_saldana@xxx.com.do>",
"Custom_30379bca-e5c9-4c98-8e87-3c5e728e2e41": "AMAURY SALDAÑA, BHD <amaury_saldana@xxx.com.do>",
"Custom_64ca8624-5640-4baf-874f-6af42fe8ac9a": "AMAURY SALDAÑA, BHD <amaury_saldana@xxx.com.do>",
"Custom_ImpactoCategoria": "Moderado",
"System_Description": "<div>Pruebas Aprobaciones CAB<br></div>",
"Microsoft_VSTS_CMMI_Analysis": "<div>Pruebas Aprobaciones CAB<br></div>",
"Microsoft_VSTS_Common_Resolution": "<div>Pruebas Aprobaciones CAB<br></div>",
"Custom_3b0630e6-9fe6-459d-aeb9-e7eb5d8062e2": "<div>Pruebas Aprobaciones CAB<br></div>",
"Vsts_AssignedToEmail": "",
"Vsts_WorkItemUrl": "https://xxx.visualstudio.com/_apis/wit/workItems/18209"
}
}
}
I can see that the status is as below:
If manually from the UI it allows me to move and change states, but the drawback is that from the automated flow it presents the error and does not update to the following states "Rejected CAB" or "Approved CAB"
Fue resuelto el inconveniente, y la solución fue que el usuario de servicio no estaba registrado en un grupo en Azure que tiene los permisos para poder cambiar a esos estados.
Otra cosa también, es que la extensión para manejo de Transición de estados en Azure que descargamos desde el Merkaplace a veces no funciona correctamente y provoca parte del error.
Muchas gracias.
Consulta, el usuario de servicio sería de la aplicación que responde o de la persona?
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages