Jump to content
  • 0

Can you give me hints on "The number of affected records by this action exceed the number of records Tasks can process at once"


vidierre

Question

I've been faced more than once with this error msg and everitime there was a good reason.  But now it is inexplicable, I've done it manually but it woudl be nice understand this behaviour.image.thumb.png.3718ab1ca4006eede7a033bc10c0d6a3.png

I have this table (dati_ricevuti_dett) with 133 records and I need a one time operation to change the stato field value from "Ufficiale" to "4 Ufficiale".

The table has no active trigger
 image.thumb.png.d8245d713552a5da0fec7abf454b9b35.png

I made a simple ondemand task:


image.png.99a360c891a2e73938ad69e08aff0f5c.png

Whe I run it I got the error:


image.thumb.png.650fa3450e471a8b2ea17e0bb4a46ee4.png
 

I searched for any clue about the excess found, but it is quite mysterious to me.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi, @vidierre. Since you don't have any condition on your "FOR EACH" block, it will continuously loop depending on the number of records. Currently, you have 133 records, in every loop it will affect 133 records and it will also loop 133 times affecting 17k plus records. Based on your current task setup, it is best to remove the "for each" block.

 

-Potato

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...