Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

structured_description error-- Too many subattributes for attribute: structured_description #63

Closed
ItsJamesMurray opened this issue May 20, 2024 · 2 comments

Comments

@ItsJamesMurray
Copy link

Hello.

I have followed the instructions to prepend the trained_algorithmic_media: at the start of structured_description field. I have a sample below:

structured_description
--
trained_algorithmic_media:"From energetic elementary school kids to independent pre-teens, the ALTA delivers proper seat and belt positioning with style, comfort and ease. The SecureFit belt routing system with lap belt positioner ensures proper fit for the lap and shoulder belt while preventing submarining. Rigid LATCH connectors secure the booster to the vehicle seat, guaranteeing proper alignment. Features include SecureFit belt routing system, unique lap belt positioner, rigid LATCH connectors, seven-position Active Support Headrest, side impact pods on the shell, specialized foams in the headrest, spacious design for growing children, dual armrests, and a removable cup holder. The removable, washable fabrics make cleaning easy. Specifications: Age Range approximately 6–10 years old. Weight/Height Capacity suitable from 40–100 lbs, and 38""–57"" in height. Dimensions 20"" L x 19"" W x 25.5""–33"" H (height headrest in lowest and highest positions). Seat Weight 22 lbs."

I get this error for every item I am adding to my supplemental feed. Some include colons and quotes inside the descriptions but I've wrapped in quote as suggested here: https://support.google.com/merchants/answer/6324468?hl=en&ref_topic=6324338&sjid=5739341581511964907-NC

Any ideas what could be causing this.

@ItsJamesMurray
Copy link
Author

I narrowed it down to instances where there are both double quotes and colons in the structured_description. It appears their recommendations of wrapping in double quote for colons and adding an addition double quote for quotes only works in either scenario, but not both. I replaced with an em-dash and everything worked as intended.

@mohabfekry
Copy link
Collaborator

Yes, MC support mentions adding those quotes, etc. but you will notice that we did not include these recommendations in the FeedGen README; you really only need to add the trained_algorithmic_media: prefix. That's it.

This is because Google Sheets automatically adds quotes to cells containing text content, and escapes it as well, so there's no need for you to "manually" do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants