Hello @sridutt @ShantanuP @v-yutliu-msft ,
I am facing a version regression issue again. My app works fine on Version 3.20062.22 but fails on 3.20071.22.
Following are the details:
Version 3.20062.22
The following code is Patching a Choice field to a lookup column in sharepoint, and it works well in Version 3.20062.22
IfError(
ForAll(
SelectedServiceType,
Patch(
'Job Database',
Defaults('Job Database'),
{
Service_x0020_Type: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: LookUp(
'Service Catalog',
Service = SelectedServiceType[@Result],
ID
),
Value: SelectedServiceType[@Result]
}
}
)
),
Notify(
"Something went wrong. Job Not Posted to Sharepoint",
NotificationType.Error
);
When I publish the app with a minor text change to Version 3.20071.22, the patch code fails to patch that specific field with the following error:
The requested operation is invalid. Server Response: Service Catalog failed: Column 'Result' does not exist. It may have been deleted by another user. clientRequestId: de447701-00b1-446d-8aae-f057fcba2a33 serviceRequestId: de447701-00b1-446d-8aae-f057fcba2a33
I had to rollback to last version 3.20062.22 to keep app functional.
I was wondering if there is a way to make changes to the app and re-publish to 3.20062.22?
Does anyone have a similar issue that they are facing?
You can edit with direct link https://create.powerapps.com/v3.20062.23.154670727/studio/# to make change and republish with same version. I will investigate session logs and provide update to you.
I'm have the same problem, I'm on 3.20071.23 and it worked on 3.20064.23.
How do I test on an old version? I tried the link but it just takes me to an empty page. I assume I have to add something to it but not sure what?
@sridutt , any help would be apprieciated.
@bcampbell13 please try adding /v3.20064.23.155867258/ before studio in URL where you are able to edit app and refresh page. Alternatively there is option to change version when you navigate to Account-> Change authoring version link.
I don't get that as an option:
Hi @Anonymous
Can you try to update your expression to:
IfError(
ForAll(
SelectedServiceType,
Patch(
'Job Database',
Defaults('Job Database'),
{
Service_x0020_Type:
LookUp(Choices('Job Database'.Service_x0020_Type),Id = LookUp(
'Service Catalog',
Service = SelectedServiceType[@Result]).ID)
}
)
),
Notify(
"Something went wrong. Job Not Posted to Sharepoint",
NotificationType.Error
);
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi @yashag2255 ,
I tried the workaround as you suggested, but I continue to receive the error message as described in the original post.
It seems the error is a runtime error, as Power Apps doesn't flag this as an issue when created. Only after hitting submit does it flag this as an issue.
User | Count |
---|---|
257 | |
108 | |
93 | |
57 | |
40 |