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