• Resolved Luke Hutchison

    (@luclearmedia)


    Hi there, I have two clients having an issue with attributes not syncing properly. One of them has Woocommerce as the System of Record and the other has Square as the System of Record. They are both receiving this error:

    Square Sync Validation Errors – Too many attribute values, maximum allowed are 250

    There are clearly not 250 attributes in this product.

    These attributes are not being synced as options in Square. The variations are syncing and show up in square, but no options are assigned to them strangely. There are a multitude of other issues going on with the sync now. Inventory isn’t tracking properly, products are not syncing over variations, the parent product will show up without variations or attributes, etc. This is a new issue – everything was syncing fine up until about a month or so ago when an update came out – it’s affecting both of my clients (and maybe more of them, they just haven’t reported it yet). It’s essentially bricking the functionality of this plugin.

    Is anyone else having these sync issues? If anyone can offer insight it would be truly appreciated.

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @luclearmedia,

    Thanks for the detailed report, and I completely understand how disruptive this kind of sync issue can be, especially when it starts affecting multiple clients at once.

    To help us investigate this further, could you please share the System Status Report from one of the affected sites? 
    You can get a System Status Report by going to WooCommerce > Status > Get system report, then paste it into <u>https://pastebin.com</u&gt; or <u>https://gist.github.com</u&gt;

    Additionally, to better understand the product setup and attribute structure, could you also share:

    1. A link or screenshot of one affected product’s setup from WP Admin (with attributes/variations shown).
    2. Are the attributes used global (from Products → Attributes) or custom-defined per product?
    3. Are the same attribute values reused across many products? (This could potentially lead to hitting Square’s limit of 250 attribute values total, not just per product.)

    Once we have this info and the SSR, we can better assess what’s happening and how to resolve it.

    Looking forward to your response!

    Thread Starter Luke Hutchison

    (@luclearmedia)

    Status: https://pastebin.com/26USwhAu

    Attributes: https://snipboard.io/NoELrG.jpg

    Variations: https://snipboard.io/cNInGt.jpg

    Attributes for this instance are manually entered, not global. Worked fine before.

    Are attributes commonly used – no, the Soap attribute is rarely used and would not have 250 variations.

    I can provide admin credentials to both applications this is affecting. Maybe we’ll focus on one, but if you have access to both you can diagnose the issue between the two, even though they are wildly different environments.

    Thank you – I appreciate your assistance. If you need to request further private information please contact me at [email protected]

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for sharing the complete details. I’ve tested this on my own site and was able to replicate the issue.

    Currently, the total number of characters (including white spaces) allowed per attribute is 250. You’ve added 16 attribute values for “Soap”, but the combined character count is 273, which is why you’re seeing this error.

    You can copy all the attribute values and paste them into this tool: https://charcounter.com/en/ — it will show the total character count. Once you reduce it to 250 or fewer, the error should disappear.

    Please try updating the values with the shortened versions, such as:

    Hive & Honey Full Bar | Hive & Honey Half Bar | Facial Bar | Hive & Honey Seasonal Bar | All Things Jill | Pineview Soaps | Soap SALE | Homespun Soap | Om Naturale | Glacier | London Fog | Buddha | Tallow Touch | Om Mini Kids Soap | OM Orange

    You should see the error disappear from the dashboard. Please try it out and let us know if you still face the same issue.

    Thread Starter Luke Hutchison

    (@luclearmedia)

    Hi there, thank you for the response.

    I see – does that limitation exist if the attributes are global?

    I’ll report this to the client to see if she can make the changes on her end and will report back.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Based on my testing, it’s working fine when using global attributes.

    I’d suggest asking your client to first create global attributes and define their configurable values (under Products → Attributes). After that, they can assign those attributes and values to the specific products.

    This approach should avoid the sync error and allow all attribute values to be added successfully.

    Let us know how that goes.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @luclearmedia!

    We reached out via your ticket, but I will add this info to this publicly viewable thread for anyone else that lands on this. We’ve confirmed this is a bug, and a fix is underway. In the meantime, there is also a potential workaround.

    Just to recap the issue:

    • What WooCommerce Square is checking: String length of the pipe-separated (|) attribute values Example: “Red|Blue|Green|Yellow|…” – if this string is longer than 250 characters, it fails. This shouldn’t be the case.
    • What it should be checking/ what the Square API actually limits: Number of attribute values in the array (maximum 250 values) Example: [“Red”, “Blue”, “Green”, “Yellow”, …, “250th color”] – if this array has more than 250 items, it should fail.

    While we wait for the fix, here’s a workaround we’re suggesting in the meantime:

    • Edit a product you are experiencing the error with.
    • Disable syncing with Square for that product – https://d.pr/i/TnvRT6
    • Save the product
    • Then, in the WP-Admin → Products All Product list, make a Quick Edit update to switch sync back on again – https://d.pr/i/1nbPlM .
    • The product should sync during next automatic sync, or you can do a manual sync from WP-Admin → WooCommerce → Settings → Square → Update: https://d.pr/i/lnTbX4 .

    I hope this helps!

    Plugin Support Chris Moreira – a11n

    (@chrism245)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    If you have a few minutes, we’d love if you could leave us a review: https://ww.wp.xz.cn/support/plugin/woocommerce-square/reviews/

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

The topic ‘Square Sync Validation Errors Too many attribute values, maximum allowed are 250’ is closed to new replies.