Update existing 'paragraph' entity while changing the ID is not supported
You could load the paragraphs through their parent entity to get the active revisions:
$nids = \Drupal::entityQuery('node')
  // load only nodes where this paragraph reference field exists and has content
  -&gt;exists('field_paragraph')
  -&gt;execute();
$nodes = \Drupal::entityTypeManager()-&gt;getStorage('node')-&gt;loadMultiple($nids);
foreach ($nodes as $node) {
  $paragraphs = $node-&gt;field_paragraph-&gt;referencedEntities();
  foreach ($paragraphs as $paragraph) {
    if ($paragraph-&gt;hasField('field_foo')) {
      $paragraph-&gt;field_foo-&gt;value = 'bar';
      $paragraph-&gt;save();
    }
  }
}