anchor.diff:  					<cfset myStruct.child=thisID.QVAL>
   					<cfset myStruct.parent=d.tid>
   				<cfelse>
  +					<!----
   					<cfdump var=#d#>
  +					---->
   					<cfset myStruct = {}>
   					<cfset myStruct.status='fail'>
  +					<cfset myStruct.message='unable to find parent term'>
   					<cfset myStruct.child=thisID.QVAL>
   					<cfset myStruct.parent=-1>
   				</cfif>
  
positive.code: 		</cftransaction>
  		<cfreturn myStruct>
  		<cfcatch>
  			<cfdump var=#cfcatch#>
  			<cfset myStruct = {}>
  			<cfset myStruct.status='fail'>
  			<cfset myStruct.message=cfcatch.message & cfcatch.detail>
  
negative.code: 				<cfquery name="d" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
  					select * from hierarchical_taxonomy where term='#nptv#' and dataset_id in (select dataset_id from hierarchical_taxonomy where tid=#tid#)
  				</cfquery>
  				<!----
  					<cfdump var=#d#>
  					---->
  				<cfif d.recordcount is 1 and len(d.tid) gt 0>
  					<cfquery name="np" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
  						update hierarchical_taxonomy set parent_tid=#d.tid# where tid=#thisID.QVAL#
  