web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Powerapps -network err...
Power Apps
Unanswered

Powerapps -network error when patch the record

(0) ShareShare
ReportReport
Posted on by 14

In this app there are some trainings and users apply these trainings. Each training has their quota.

 

If the two users apply the same training which has 1 quota at the same time , I need to allow only first user, not another user.

 

But when the two users apply this training which has 1 quota at the same time, two items created and they got this error:

Network error when using patch function: conflicts exist with changes on the server, please reload

 

 

My apply formula is like that:

 

If(
    ThisItem.Kontenjan - varBasvuran > 0,
    IfError(
        If(
            CountRows(
                Filter(
                    colEgitimKatılımcılar,
                    BasvuruTipi.Value = "Yedek",
                    isDelete = false,
                    SeçilenEÄŸitim.Value = ThisItem.Title
                )
            ) = 1,
            Patch(
                'Egitim Katılımcılar',
                LookUp(
                    colEgitimKatılımcılar,
                    BasvuruTipi.Value = "Yedek" And isDelete = false And SeçilenEÄŸitim.Value = ThisItem.Title
                ),
                {BasvuruTipi: {Value: "Asil"}}
            ),
            Patch(
                'Egitim Katılımcılar',
                Defaults('Egitim Katılımcılar'),
                {
                    Kullanıcı: {
                        '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                        Claims: User().Email,
                        Department: "",
                        DisplayName: User().FullName,
                        Email: User().Email,
                        JobTitle: "",
                        Picture: ""
                    },
                    SeçilenEÄŸitim: {
                        '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedLookup",
                        Id: LookUp(
                            colEgitimler,
                            Title = ThisItem.Title
                        ).ID,
                        Value: LookUp(
                            colEgitimler,
                            Title = ThisItem.Title
                        ).Title
                    },
                    Kategori: LookUp(
                        colEgitimler,
                        Title = ThisItem.Title
                    ).Kategori.Value,
                    DönemBitisTarihi: LookUp(
                        colEgitimler,
                        Title = ThisItem.Title
                    ).'Dönem BitiÅŸ Tarihi',
                    BasvuruTipi: {Value: "Asil"}
                }
            )
        );
       

Refresh(Egitimler);   //trainings
Patch(
            Egitimler,
            ThisItem,
            {
                BasvuruSayisi: LookUp(
                    Egitimler,
                    ID = ThisItem.ID
                ).BasvuruSayisi + 1
            }
        ),
        Notify(
            "Internal error: originated on " & FirstError.Source & ", surfaced on " & FirstError.Observed,
            NotificationType.Error
        ),
        Notify(
            "BaÅŸvurunuz alınmıştır.",
            NotificationType.Success,
            2000
        )
    );
   Refresh(Egitimler);    
    ,
    Notify(
        "Kontenjan sayısı dolmuÅŸtur.",      // it says There is no enough quota !
        NotificationType.Error
    )
)

;


ClearCollect(
    colEgitimler,
    Egitimler
);
ClearCollect(
    colEgitimKatılımcılar,
    Filter(
        'Egitim Katılımcılar',
        StartsWith(
            Kullanıcı.Email,
            Office365Users.MyProfileV2().mail
        )
    )
);

 

 

How can I avoid this error and how can I avoid applying the insufficient quota?

Maybe revert function, but how?

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard