Title: INVALID_STRING_LENGTH
Last modified: April 16, 2023

---

# INVALID_STRING_LENGTH

 *  Resolved [sperrich](https://wordpress.org/support/users/sperrich/)
 * (@sperrich)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/invalid_string_length-2/)
 * Hi, a number of my customers are facing the error message “INVALID_STRING_LENGTH”
   when checking out using paypal. I have been trying to diagnose the issue thinking
   that has to do with the Product Name and/or Variation name length but even after
   shortening these i still seem to get the error message.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * (@joostvandevijver)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/invalid_string_length-2/#post-16661768)
 * Hello [@sperrich](https://wordpress.org/support/users/sperrich/)
 * We see this error when product attributes (name, description, etc) contains text/
   characters that can be interpreted differently and cause longer strings when 
   being sent to the PayPal Server. When text and an emoji like this 😉</img> in
   the first 127 characters are sent to PayPal, then the API responds with INVALID_STRING_LENGTH
   because the emoji would make the string longer than the maximum. We have put 
   some fixes in place for this, but it seems there are certain 3rd party plugins
   that can still cause this error to be triggered. For this last option, you could
   possibly try to perform a full conflict test to rule out eventual issues with
   the theme or a different plugin. We recommend temporarily activating the [default theme Storefront](https://wordpress.org/themes/storefront/)
   and disabling all other plugins except for WooCommerce and PayPal Payments to
   see if the behavior persists.
 * Here’s a guide that explains the steps in more detail: [How to test for conflicts](https://woocommerce.com/document/how-to-test-for-conflicts/).
   Please let us know how this works out for you.
 * Kind regards,
   Joost
 *  Plugin Support [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * (@joostvandevijver)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/invalid_string_length-2/#post-16707462)
 * Hello,
 * since we did not receive any response or follow-up questions from you, we will
   assume you got this working to your requirements. If you still have any more 
   questions for us, please open a new thread, because we will mark this one as 
   resolved.
 * Kind regards,
   Joost

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘INVALID_STRING_LENGTH’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/invalid_string_length-2/#post-16707462)
 * Status: resolved