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

Error while providing metadata in text format #85

Open
r2d2rigo opened this issue Jun 3, 2020 · 1 comment
Open

Error while providing metadata in text format #85

r2d2rigo opened this issue Jun 3, 2020 · 1 comment

Comments

@r2d2rigo
Copy link

r2d2rigo commented Jun 3, 2020

My app started supporting four languages in the latest release (en-US, es-ES, fr-FR and pt-PT), but when I try to upload the metadata as .txt files I keep getting the following error:

Status 400: {"code":"InvalidParameterValue","data":[],"details":[],"message":"Language is listed more than once: en-us","source":"Ingestion Api","target":"languageCode"}

However I have enabled System.Debug in the VSTS task and it seems to be packaging everything correctly:

2020-06-03T02:37:52.2965673Z ##[debug]Adding metadata for new submission 1152921505690232760
2020-06-03T02:37:52.2967653Z ##[debug]Updating metadata of submission object from directory d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata
2020-06-03T02:37:52.2970858Z ##[debug]Obtaining metadata for language en-US
2020-06-03T02:37:52.2980145Z ##[debug]Obtaining base listing
2020-06-03T02:37:52.2990777Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\description.txt
2020-06-03T02:37:52.2993417Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\features.txt
2020-06-03T02:37:52.2996389Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\keywords.txt
2020-06-03T02:37:52.2997977Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\releaseNotes.txt
2020-06-03T02:37:52.2999514Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\shortDescription.txt
2020-06-03T02:37:52.3000563Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\title.txt
2020-06-03T02:37:52.3006978Z ##[debug]Obtaining images for language en-US
2020-06-03T02:37:52.3007867Z ##[debug]Updating images from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US
2020-06-03T02:37:52.3085135Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\Screenshot1 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\description.Screenshot1.txt
2020-06-03T02:37:52.3087045Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\Screenshot2 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\description.Screenshot2.txt
2020-06-03T02:37:52.3090989Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\Screenshot3 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\description.Screenshot3.txt
2020-06-03T02:37:52.3092048Z ##[debug]Obtaining metadata for language es-ES
2020-06-03T02:37:52.3092876Z ##[debug]Obtaining base listing
2020-06-03T02:37:52.3096090Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\description.txt
2020-06-03T02:37:52.3097073Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\features.txt
2020-06-03T02:37:52.3098357Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\keywords.txt
2020-06-03T02:37:52.3104410Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\releaseNotes.txt
2020-06-03T02:37:52.3105487Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\shortDescription.txt
2020-06-03T02:37:52.3106454Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\title.txt
2020-06-03T02:37:52.3107403Z ##[debug]Obtaining images for language es-ES
2020-06-03T02:37:52.3108107Z ##[debug]Updating images from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES
2020-06-03T02:37:52.3117549Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\Screenshot1 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\description.Screenshot1.txt
2020-06-03T02:37:52.3128192Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\Screenshot2 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\description.Screenshot2.txt
2020-06-03T02:37:52.3140110Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\Screenshot3 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\description.Screenshot3.txt
2020-06-03T02:37:52.3141309Z ##[debug]Obtaining metadata for language fr-FR
2020-06-03T02:37:52.3141881Z ##[debug]Obtaining base listing
2020-06-03T02:37:52.3146068Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\description.txt
2020-06-03T02:37:52.3147896Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\features.txt
2020-06-03T02:37:52.3149389Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\keywords.txt
2020-06-03T02:37:52.3151136Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\releaseNotes.txt
2020-06-03T02:37:52.3152318Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\shortDescription.txt
2020-06-03T02:37:52.3153606Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\title.txt
2020-06-03T02:37:52.3157649Z ##[debug]Obtaining images for language fr-FR
2020-06-03T02:37:52.3158707Z ##[debug]Updating images from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR
2020-06-03T02:37:52.3167890Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\Screenshot1 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\description.Screenshot1.txt
2020-06-03T02:37:52.3174265Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\Screenshot2 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\description.Screenshot2.txt
2020-06-03T02:37:52.3182526Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\Screenshot3 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\description.Screenshot3.txt
2020-06-03T02:37:52.3183915Z ##[debug]Obtaining metadata for language pt-PT
2020-06-03T02:37:52.3184922Z ##[debug]Obtaining base listing
2020-06-03T02:37:52.3188043Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\description.txt
2020-06-03T02:37:52.3189038Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\features.txt
2020-06-03T02:37:52.3190006Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\keywords.txt
2020-06-03T02:37:52.3190976Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\releaseNotes.txt
2020-06-03T02:37:52.3191952Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\shortDescription.txt
2020-06-03T02:37:52.3192930Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\title.txt
2020-06-03T02:37:52.3193725Z ##[debug]Obtaining images for language pt-PT
2020-06-03T02:37:52.3209448Z ##[debug]Updating images from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT
2020-06-03T02:37:52.3211632Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\images\Screenshot\Screenshot1 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\images\Screenshot\description.Screenshot1.txt
2020-06-03T02:37:52.3213340Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\images\Screenshot\Screenshot2 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\images\Screenshot\description.Screenshot2.txt
2020-06-03T02:37:52.3214661Z ##[debug]Adding 1 package(s)
2020-06-03T02:37:52.3216707Z ##[debug]Updating submission
2020-06-03T02:37:52.3227159Z ##[debug]Starting request with correlation id: fa98fae3-2113-4a2c-a5b1-23937c2ea962
2020-06-03T02:38:01.2932342Z ##[debug]Finished request with correlation id: fa98fae3-2113-4a2c-a5b1-23937c2ea962
2020-06-03T02:38:01.2942707Z ##[debug]task result: Failed
2020-06-03T02:38:01.2977856Z ##[error]Status 400: {"code":"InvalidParameterValue","data":[],"details":[],"message":"Language is listed more than once: en-us","source":"Ingestion Api","target":"languageCode"} CorrelationId: 5c45a0ee-b4cb-41e5-b098-24b317f2ba4b
2020-06-03T02:38:01.2987451Z ##[debug]Processed: ##vso[task.issue type=error;]Status 400: {"code":"InvalidParameterValue","data":[],"details":[],"message":"Language is listed more than once: en-us","source":"Ingestion Api","target":"languageCode"} CorrelationId: 5c45a0ee-b4cb-41e5-b098-24b317f2ba4b
2020-06-03T02:38:01.2992191Z ##[debug]Processed: ##vso[task.complete result=Failed;]Status 400: {"code":"InvalidParameterValue","data":[],"details":[],"message":"Language is listed more than once: en-us","source":"Ingestion Api","target":"languageCode"} CorrelationId: 5c45a0ee-b4cb-41e5-b098-24b317f2ba4b

@louis-wuitton
Copy link
Member

Hi @r2d2rigo, sorry for the delay. Can you show me how you added the metadata to the extension? Seems like you are doing it through metadata txt file. The error suggests that "Language is listed more than once: en-us" so we want to make sure the language listing is set properly. Thanks!

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