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

[BUG] JSON import failed #179

Open
flosmb opened this issue Feb 23, 2024 · 0 comments
Open

[BUG] JSON import failed #179

flosmb opened this issue Feb 23, 2024 · 0 comments
Assignees

Comments

@flosmb
Copy link

flosmb commented Feb 23, 2024

Describe the bug
Bonjour,

Lorsque j'essaie d'import une page via le json ci-dessous, j'obtiens l'erreur "Import failed An unexpected error occured while importing your data."

J'ai l'impression que cela vient du format du tableau "blocks" car lorsque je le supprime ça fonctionne.

Pourriez-vous me dire ce qu'il ne va pas dans le json ?
image

{
	"version": 2,
	"data": {
		"api::page.page": {
			"31000": {
				"id": 31000,
				"title": "Test d'import",
	            "path": "/fr/test-import-10",
	            "metaTitle": "Test d'import",
	            "metaDescription": "Test d'import",
	            "footer": null,
	            "listingType": false,
	            "listingBlock": false,
	            "descriptionListingBlock": false,
	            "isIndexed": true,
	            "isSortedByStock": null,
	            "locale": "fr",
	            "oldPageId": null,
	            "activated": true,
	            "pageMenu": null,
	            "canonicalUrl": null,	          
	            "blocks": [
	                {
	                	"id": 90296,
	                    "__component": "blocks.guide-block",
	                    "layout": "left",
	                    "description": "Test d'import",
	                    "activated": true,
	                    "oldMediaId": null,
	                    "oldPosition": null,
	                    "blockTitle": "Test d'import",
	                    "activatedFrom": null,
	                    "activatedTo": null,
	                    "reverseAllowedCountries": false,                   
	                    "countries": {
	                     "data": []
	                    }
	                },	               
	            ],
	            "localizations": []
				}	
		}
	}
}

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