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

ETAG MISMATCH FORALL PATCH ERROR

Im trying to register a user between two selected dates(in a sharepoint list of dates) using first date id and incrementing it 1 by 1,but it doesnt work well, it make mismatch ETAG error appear. How can I fix it?

 

Concurrent(
UpdateContext(
{
dateDiff: DateDiff(
DatePicker1.Value;
DatePicker1_1.Value
)
}
);;
ClearCollect(
colIdInicio;
{id: idInicio}
);;
Refresh(Fechas);;
ForAll(
Sequence(dateDiff + 1);
UpdateIf(
Fechas;
idFecha = First(colIdInicio).id && idPlaza = Text(Dropdown1.Selected.idPlaza);
{nombreEmpAsignado: nombreAsignado}
);;
Patch(
colIdInicio;
First(colIdInicio);
{id: First(colIdInicio).id + 1}
);;
Update(colIdInicio;First(colIdInicio);First(colIdInicio))
);
UpdateContext({verAsignar: false})
)

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@Anonymous 

You posted this message yesterday in this thread.
Your formula is backward and has a lot of issues in it.  I posted a response there but you did not reply.

 

I would suggest following what I provided for you in that post.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

1 REPLY 1
RandyHayes
Super User
Super User

@Anonymous 

You posted this message yesterday in this thread.
Your formula is backward and has a lot of issues in it.  I posted a response there but you did not reply.

 

I would suggest following what I provided for you in that post.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,673)