# Some template resource data return None

**URL:** <https://forum.inductiveautomation.com/t/some-template-resource-data-return-none/28330>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [September 18, 2019, 3:17am UTC](https://forum.inductiveautomation.com/t/some-template-resource-data-return-none/28330 "2019-09-18T03:17:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aka](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@aka](https://forum.inductiveautomation.com/u/aka)\
**Post date:** [September 18, 2019, 3:17am UTC](https://forum.inductiveautomation.com/t/some-template-resource-data-return-none/28330/1 "2019-09-18T03:17:44Z")

</div>

Hi, I want to use drag and drop template canvas from Pefect Abstract, I use to play before in ignition 7.9 and it works very well. But in ignition 8.0 now its not work anymore. I found out 2 things and need help.

1. I can not get project resource filter by type name (string) anymore.  
`getResourceOfType(java.lang.String moduleId, java.lang.String type)`  
Any solution for this?

2. So I do get all project resources and filter by ‘com.inductiveautomation.vision/templates’ but some templates when I use .getData() to return the resource data it is None .  
Below here is the code.  
Thank you.

```auto
from com.inductiveautomation.ignition.designer import IgnitionDesigner
context = IgnitionDesigner.getFrame().getContext()
if context is not None:
	p = context.getProject()

        #Down here I cannot get template resources as the same as in ignition v7.9
        #p.getResourcesOfType(VisionClientInterface.VISION_MODULE_ID,"component-template")
	templateResources = p.getResources()

	#Loop through all the template information, store the template information and assign the templates to the template canvas.
	i = 0
	for index,r in enumerate(templateResources):
		if str(r.getResourceType()) == 'com.inductiveautomation.vision/templates' and not (r.isFolder()):
			resourceID = r.getResourceId()
			fullPath = r.getFolderPath()	
			print fullPath
			print r.getData() # Some templates return None

```

 ![Capture](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2a83175150f8e39f7356c924bf4a9e64e4f195e5.png)
