cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Patch Lookup Column works on Version 3.20062.22 but fails on 3.20071.22

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?

6 REPLIES 6
sridutt
Power Apps
Power Apps

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:

 

bcampbell13_0-1595635210569.png

 

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!

Anonymous
Not applicable

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.

 

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,410)