cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
prashsub
Frequent Visitor

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

 

yashag2255
Dual Super User II
Dual Super User II

Hi @prashsub 

 

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.

 

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (36,931)