Title: Errors when duplicating product
Last modified: May 27, 2026

---

# Errors when duplicating product

 *  [Justin Kruit](https://wordpress.org/support/users/justinkruit/)
 * (@justinkruit)
 * [1 month ago](https://wordpress.org/support/topic/errors-when-duplicating-product/)
 * Hi,
 * When copying a product, it gave us the following error
 *     ```wp-block-code
       Validation error (WrongType@[bulkUpsertProducts]) : argument 'products[1].variantUrl' with value 'BooleanValue{value=false}' is not a valid 'String' - Expected an AST type of 'StringValue' but it was a 'BooleanValue'
       ```
   
 * It seems like it want to take actions before the permalinks are generated, as
   duplicating products makes them drafts without a a permalink. A possible fix 
   would be to update `activecampaign-for-woocommerce/includes/products/class-activecampaign-
   for-woocommerce-sync-status.php` and add a `?: null` to the permalink calls to
   not create a full error. As this error blocks de duplicating feature as it runs
   to the `halt` function and executes a `die()`.
 * Could this please be fixed soon? For now we did a manual fix for our customer.

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferrors-when-duplicating-product%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/activecampaign-subscription-forms/assets/icon-256x256.png?
   rev=2314630)
 * [ActiveCampaign - The autonomous marketing platform](https://wordpress.org/plugins/activecampaign-subscription-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/activecampaign-subscription-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/activecampaign-subscription-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/activecampaign-subscription-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/activecampaign-subscription-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/activecampaign-subscription-forms/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Justin Kruit](https://wordpress.org/support/users/justinkruit/)
 * Last activity: [1 month ago](https://wordpress.org/support/topic/errors-when-duplicating-product/)
 * Status: not resolved