Expand my Community achievements bar.

Issue when copy and pasting content fragment

Avatar

Level 2

Hi All,
Getting "Choose an experience fragment variation" error when trying to copy and paste a already configured content fragment to another container.

sharaj_0-1732788179106.png

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

11 Replies

Avatar

Level 6

Hi @sharaj ,

 

Can you please provide more information, if you drag and drop a content fragment on the OOTB content fragment component, there's no error. I hope the CF which you are trying to drop is a valid CF with at least the Master copy. Unless there's some customization on the component which only allows choosing a variation you should not see any errors. Also check the template policy if the particular CF is blocked.

 

Regards,

Anupam Patra

Avatar

Level 2

hi @anupampat ,  thanks for the reply
Dnd the content fragment component and configuring the component with the configuring the content fragment in it works fine, but when i try to copy the mentioned cf component and paste is somewhere on the page, then the error comes up
Yes, its a valid cf which has the master copy and i did try to create a basic cf as well but the same issue i am facing 

Avatar

Level 6

Hi @sharaj ,

 

Copy pasting the CF component with a CF also works for me. What happens if you drag and drop 2 CF components and author with same/different CFS. Do you get any errors or does it work ?

 

Regards,

Anupam Patra

Avatar

Community Advisor

@sharaj Are you copy pasting using keyboard keys or mouse clicks? 

Can you add them from crxde LITE ?

Avatar

Level 2

Are you copy pasting using keyboard keys or mouse clicks?  -> none wokring
Can you add them from crxde LITE ? -> yes i am able to add from crxde and its reflecting

Avatar

Community Advisor

@sharaj  - Do you have any variation/variations for this Content Fragment. I am not sure if we can copy the variation, try if any variation exists and if we are able to copy it.

Avatar

Community Advisor

Hi @sharaj , When you copy and paste a CF, there's going to be a network call that can be observed in the Dev tools of the browser. Can you share what the network call's response says and the underlying error from error.log file?

 

Regards,

Avatar

Level 2

sharaj_1-1733146736397.png

Request Url : http://localhost:4502/bin/wcm/experiencefragments/verifyreferences.json
Response:
{
"status": "invalid",
"validationErrorMessage": "Choose an experience fragment variation."
}
and there is no errror in the error.log

Avatar

Level 1

Convert that section to an experience fragment using an XF variation template and then use copy paste.