cancel
Showing results for 
Search instead for 
Did you mean: 

I receive this error: "template was found that neither was marked with templateShareable... why ?

karlyn_mongeau
Explorer

During a clone operation, a template was found that neither was marked with 'templateShareable:true' nor 'templateShareable:false'. The framework won't destroy the template. This could cause errors (e.g. duplicate IDs) or memory leaks (The template is used in aggregation 'items' of object '__box0').For more information, see documentation under 'Aggregation Binding'. -

2017-02-01-16-08-15.png

Accepted Solutions (0)

Answers (5)

Answers (5)

saivellanki
Active Contributor

Hello Karlyn,

I checked your code, but I am not sure what is the source control for onItemPress event. Is it a list / table ?

However this error is due to complex binding, you need to mention templateShareable Boolean value. Consider you're using a list control, while binding the aggregation 'items' in XML view, you have to try something like below:

<List items="{/products}">
    <items>
	<CustomListItem>
		<content>
			<Select items="{path:'materials', templateShareable:false}">
				<items>
					<core:Item text="{materialdesc}" key="{materialno}" />
				</items>
			</Select>
		</content>
	</CustomListItem>
    </items>
</List>  

For more information, please check this link: Understanding templateShareable in SAPUI5

Regards,

Sai.

karlyn_mongeau
Explorer
0 Kudos

The error arrive on line oNavContainer.to(oPage.getId()); in the App.Controller.js (see attachments)

2017-02-02-15-40-22.png

junwu
Active Contributor
0 Kudos

check what is the __box0

karlyn_mongeau
Explorer
0 Kudos

Check the view page:

I add the templateSharable

2017-02-02-11-31-37.png

I add too in the controller page and I receive the same error

2017-02-02-11-33-15.png

karlyn_mongeau
Explorer
0 Kudos

After the implantation of EHP8

SAPUI version before 1.28.9 and now 1.38.16

junwu
Active Contributor
0 Kudos

which line of code give u error?

junwu
Active Contributor
0 Kudos

how u get that error?