Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Feb 02, 2017 at 01:52 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 01, 2017 at 09:33 PM

    how u get that error?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 01, 2017 at 09:37 PM

    After the implantation of EHP8

    SAPUI version before 1.28.9 and now 1.38.16

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 02, 2017 at 04:35 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 02, 2017 at 08:43 PM

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

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

    Add comment
    10|10000 characters needed characters exceeded