Importing a predicate into the same installation (eg. copying a predicate) always works. However, when importing the same predicate into a different installation, I randomly (seemingly) get this error.

Comments

mpaler’s picture

A quick and dirty work around is to make sure to set the pid of the import array to a pid that already exists in the target system. Don't worry, the existing one won't be overwritten. A new one will be generated.

array (
  '#pid' => '23', <-- Set this to a pre-existing predicate id.
  '#title' => 'Update order status on full payment, notify admins',
  ...

Not exactly clear on why function uc_ca_import_export_import_form_validate validates this way...