Error migrating cffeed from CF9 to CF 2018
I'm finally updating a site from CF9 to CF2018 and am having problems with my cffeed. Can anyone see any obvious errors in my code? This has worked for years in CF9, but in CF2018 I'm getting the error:
"There is a problem in the column mappings specified in the columnMap structure.
The cffeed query does not contain any column by the name of title."
<!--- Map the orders column names to the feed query column names. --->
<cfset columnMapStruct = StructNew()>
<!--- 2020.06.15
<cfset columnMapStruct.publisheddate = "PUBLISHDATE">
--->
<cfset columnMapStruct.pubdate = "PUBLISHDATE">
<cfset columnMapStruct.content = "SUMMARY">
<cfset columnMapStruct.title = "TITLE">
<cfset columnMapStruct.rsslink = "URL">
<cfset columnMapStruct.id = "GUID">
<!--- Set the feed metadata. --->
<cfset meta.title = "My Domain News">
<cfset meta.link = "http://mydomain.com/">
<cfset meta.description = "News from My Domain">
<cfset meta.version = "rss_2.0">
<!--- Create the feed. --->
<cffeed action="create"
query="#qRss#"
properties="#meta#"
columnMap="#columnMapStruct#"
outputFile = "#output_directory_fullpath#myfeed.xml"
overwrite = "yes"
xmlvar="rssXML">
My query selects:
- id
- guid
- title
- fknewstype
- fknewscategory
- summary
- publishdate
- url
- imagetopstory
- sortorder
Thanks,
John.
