Update existing 'paragraph' entity while changing the ID is not supported I'm trying to update a paragraph with this code:
$entityManager = \Drupal::entityTypeManager();
      $paragraph = $entityManager-&gt;getStorage('paragraph')-&gt;load('1');
      $paragraph-&gt;set('field_test','testValue');
      $paragraph-&gt;save();

But I received this error:
Drupal\Core\Entity\EntityStorageException: Update existing 'paragraph' entity while changing the ID is not supported. in Drupal\Core\Entity\Sql\SqlContentEntityStorage-&gt;save() (line 846 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Stack:
Drupal\Core\Entity\EntityStorageBase-&gt;save(Object) (Line: 837)
Drupal\Core\Entity\Sql\SqlContentEntityStorage-&gt;save(Object) (Line: 395)
Drupal\Core\Entity\EntityBase-&gt;save() (Line: 171)
jnjmdc_content_card_module_help('help.page.jnjmdc_content_card_module', Object)
call_user_func_array('jnjmdc_content_card_module_help', Array) (Line: 392)
Drupal\Core\Extension\ModuleHandler-&gt;invoke('jnjmdc_content_card_module', 'help', Array) (Line: 144)
Drupal\help\Controller\HelpController-&gt;helpPage('jnjmdc_content_card_module')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer-&gt;executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)

Do you know why?
P.s. If I try to update with the last ID it works. It doesn't work only for old Paragraphs.
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();
    }
  }
}