• Resolved jlkiii

    (@jlkiiihotmailcom)


    I have been uploading new products to the site. Some will sync with Zettle and others will not and it shows that they are “syncable” on the product list.

    The most recent one is Product ID 22078. I checked the log and this is what it says;

    2024-03-09T02:07:39+00:00 Info Inpsyde\Queue\Exception\QueueRuntimeException: Failed to execute Job ‘sync-product’ with ID 25320 in /home1/kachelma/public_html/presentlyperfect/wp-content/plugins/zettle-pos-integration/modules/inpsyde-queue/src/Processor/BasicQueueProcessor.php:143 # Previous: Inpsyde\Queue\Exception\QueueRuntimeException: Couldn’t update the Product 22078 – API returned with Code 422 and message Got status 422 when sending POST request to https://products.izettle.com/organizations/self/products?returnEntity=true in /home1/kachelma/public_html/presentlyperfect/wp-content/plugins/zettle-pos-integration/modules/zettle-sync/src/Job/ExportProductJob.php:412 # Previous: ZettleRestException: CONSTRAINT_VIOLATION Got status 422 when sending POST request to https://products.izettle.com/organizations/self/products?returnEntity=true The request entity has constraint violations Violations: [{“propertyName”:”variants”,”developerMessage”:”One or more item in collection was not unique: [65ec18a0-0000-1000-8000-00bda65b83d1, 65ec18a0-0000-1000-8000-00bda65b83d1, 65ec18a1-0000-1000-8000-00bda65b83d1, 65ec18a2-0000-1000-8000-00bda65b83d1]”,”constraintType”:”UNKNOWN”,”value”:”[VariantDTO(uuid=65ec18a0-0000-1000-8000-00bda65b83d1, name=Optional[Baby Blue Textured Dress – S], description=Optional.empty, sku=Optional[PSD4830-Blue-S], barcode=Optional[], price=Optional[Price(currencyId=USD, amount=5400)], costPrice=Optional.empty, options=[VariantOption(name=Size, value=S)], presentation=Optional[PresentationDTO(imageUrl=https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A, backgroundColor=null, textColor=null)]), VariantDTO(uuid=65ec18a0-0000-1000-8000-00bda65b83d1, name=Optional[Baby Blue Textured Dress – M], description=Optional.empty, sku=Optional[PSD4830-Blue-M], barcode=Optional[], price=Optional[Price(currencyId=USD, amount=5400)], costPrice=Optional.empty, options=[VariantOption(name=Size, value=M)], presentation=Optional[PresentationDTO(imageUrl=https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A, backgroundColor=null, textColor=null)]), VariantDTO(uuid=65ec18a1-0000-1000-8000-00bda65b83d1, name=Optional[Baby Blue Textured Dress – L], description=Optional.empty, sku=Optional[PSD4830-Blue-L], barcode=Optional[], price=Optional[Price(currencyId=USD, amount=5400)], costPrice=Optional.empty, options=[VariantOption(name=Size, value=L)], presentation=Optional[PresentationDTO(imageUrl=https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A, backgroundColor=null, textColor=null)]), VariantDTO(uuid=65ec18a2-0000-1000-8000-00bda65b83d1, name=Optional[Baby Blue Textured Dress – XL], description=Optional.empty, sku=Optional[PSD4830-Blue-XL], barcode=Optional[], price=Optional[Price(currencyId=USD, amount=5400)], costPrice=Optional.empty, options=[VariantOption(name=Size, value=XL)], presentation=Optional[PresentationDTO(imageUrl=https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A, backgroundColor=null, textColor=null)])]”}] Thrown in /home1/kachelma/public_html/presentlyperfect/wp-content/plugins/zettle-pos-integration/modules/zettle-php-sdk/src/Psr18RestClient.php:184 With data: {“developerMessage”:”The request entity has constraint violations”,”errorType”:”CONSTRAINT_VIOLATION”,”violations”:[{“propertyName”:”variants”,”developerMessage”:”One or more item in collection was not unique: [65ec18a0-0000-1000-8000-00bda65b83d1, 65ec18a0-0000-1000-8000-00bda65b83d1, 65ec18a1-0000-1000-8000-00bda65b83d1, 65ec18a2-0000-1000-8000-00bda65b83d1]”,”constraintType”:”UNKNOWN”,”value”:”[VariantDTO(uuid=65ec18a0-0000-1000-8000-00bda65b83d1, name=Optional[Baby Blue Textured Dress – S], description=Optional.empty, sku=Optional[PSD4830-Blue-S], barcode=Optional[], price=Optional[Price(currencyId=USD, amount=5400)], costPrice=Optional.empty, options=[VariantOption(name=Size, value=S)], presentation=Optional[PresentationDTO(imageUrl=https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A, backgroundColor=null, textColor=null)]), VariantDTO(uuid=65ec18a0-0000-1000-8000-00bda65b83d1, name=Optional[Baby Blue Textured Dress – M], description=Optional.empty, sku=Optional[PSD4830-Blue-M], barcode=Optional[], price=Optional[Price(currencyId=USD, amount=5400)], costPrice=Optional.empty, options=[VariantOption(name=Size, value=M)], presentation=Optional[PresentationDTO(imageUrl=https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A, backgroundColor=null, textColor=null)]), VariantDTO(uuid=65ec18a1-0000-1000-8000-00bda65b83d1, name=Optional[Baby Blue Textured Dress – L], description=Optional.empty, sku=Optional[PSD4830-Blue-L], barcode=Optional[], price=Optional[Price(currencyId=USD, amount=5400)], costPrice=Optional.empty, options=[VariantOption(name=Size, value=L)], presentation=Optional[PresentationDTO(imageUrl=https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A, backgroundColor=null, textColor=null)]), VariantDTO(uuid=65ec18a2-0000-1000-8000-00bda65b83d1, name=Optional[Baby Blue Textured Dress – XL], description=Optional.empty, sku=Optional[PSD4830-Blue-XL], barcode=Optional[], price=Optional[Price(currencyId=USD, amount=5400)], costPrice=Optional.empty, options=[VariantOption(name=Size, value=XL)], presentation=Optional[PresentationDTO(imageUrl=https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A, backgroundColor=null, textColor=null)])]”}]} and payload: {“uuid”:”65ec189b-0000-1000-8000-00bda65b83d1″,”name”:”Baby Blue Textured Dress”,”description”:”Knee-length dress with square neck and puff sleeves. Textured woven fabric with embroidered flower design. Features side pockets and elastic waist.”,”imageLookupKeys”:[“pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A”,”pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A”,”pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A”,”pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A”,”pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A”,”pORUJkQ9EeyJPmodQMRLoA-IkIjd925Ee63Ddhl3isJGQ”],”variants”:[{“uuid”:”65ec18a0-0000-1000-8000-00bda65b83d1″,”name”:”Baby Blue Textured Dress – S”,”sku”:”PSD4830-Blue-S”,”defaultQuantity”:2,”price”:{“amount”:5400,”currencyId”:”USD”},”options”:[{“name”:”Size”,”value”:”S”}],”presentation”:{“imageUrl”:”https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A”,”backgroundColor”:null,”textColor”:null},”barcode”:””},{“uuid”:”65ec18a0-0000-1000-8000-00bda65b83d1″,”name”:”Baby Blue Textured Dress – M”,”sku”:”PSD4830-Blue-M”,”defaultQuantity”:2,”price”:{“amount”:5400,”currencyId”:”USD”},”options”:[{“name”:”Size”,”value”:”M”}],”presentation”:{“imageUrl”:”https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A”,”backgroundColor”:null,”textColor”:null},”barcode”:””},{“uuid”:”65ec18a1-0000-1000-8000-00bda65b83d1″,”name”:”Baby Blue Textured Dress – L”,”sku”:”PSD4830-Blue-L”,”defaultQuantity”:2,”price”:{“amount”:5400,”currencyId”:”USD”},”options”:[{“name”:”Size”,”value”:”L”}],”presentation”:{“imageUrl”:”https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A”,”backgroundColor”:null,”textColor”:null},”barcode”:””},{“uuid”:”65ec18a2-0000-1000-8000-00bda65b83d1″,”name”:”Baby Blue Textured Dress – XL”,”sku”:”PSD4830-Blue-XL”,”defaultQuantity”:1,”price”:{“amount”:5400,”currencyId”:”USD”},”options”:[{“name”:”Size”,”value”:”XL”}],”presentation”:{“imageUrl”:”https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A”,”backgroundColor”:null,”textColor”:null},”barcode”:””}],”presentation”:{“imageUrl”:”https:\/\/image.izettle.com\/productimage\/o\/pORUJkQ9EeyJPmodQMRLoA-IVq3D925Ee6MsAa2aUUL7A”,”backgroundColor”:null,”textColor”:null},”createdAt”:”2024-03-09T02:07:30+00:00″,”taxExempt”:false,”createWithDefaultTax”:true,”metadata”:{“inPos”:true,”source”:{“name”:”WooCommerce”,”external”:true}},”variantOptionDefinitions”:{“definitions”:[{“name”:”Size”,”properties”:[{“value”:”S”,”imageUrl”:null},{“value”:”M”,”imageUrl”:null},{“value”:”L”,”imageUrl”:null},{“value”:”XL”,”imageUrl”:null}]}]}}

    I do NOT know where to start with this. I have done the exact same thing with this product as the previous one and it synced. I understand it says there is a “constraint violation” but I cannot find where something is different or should be causing these issues.

    This is happening on several of my products and I cannot find any issues that would violate the requirements for sync.

    Can you please advise what this log is saying is the issue?

    Thanks

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @jlkiiihotmailcom,

    Thank you for reaching out to us, we are here to help.

    We have encountered this type of issue before, but unfortunately our plugin does not specify what the aspect is of the product that is avoiding it to synchronize. The only thing I can advise testing to find out what this is, is to create the same product and see if it is syncing in the most basic form (only name, price and description). If that works, you can start adding other details to the product and see when these details are not getting synced over to the Zettle product.
    I have looked at the product in question and the description and the visible items don’t seem to be an issue (pretty short and not too many variables), so at first glance I can’t seem to be seen a possible cause for this problem. It could also have been an issue with the sync or connection of the site when you first attempted it. It could be that when you recreate the product, it will sync correctly.

    There is not really any other way to do this than by testing, since the logs don’t give you the answer to the problem. If you are not able to do this, we can always have a look at your site, but for that we would need you to provide more details, and we would suggest you to open a private engagement, so you can easily provide us with the system report and full logs.

    Pending your response.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    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 ‘Products not syncing’ is closed to new replies.