Skip to content

Error with templaterCreateNote & Templater 2.14 #608

@pdelre

Description

@pdelre

Please fill out these Check-boxes

  • I checked for existing similar issues
  • I checked that the plugin is up to date
  • The issue persists with all other plugins and themes disabled

Plugin Version

1.4.3+

This Issue Occurs on

  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Debug Info

SYSTEM INFO

SYSTEM INFO:
	Obsidian version: v1.8.10
	Installer version: v1.8.10
	Operating system: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:40 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6041 24.6.0
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: dark
	Community theme: Minimal v7.7.19
	Snippets enabled: 5
	Restricted mode: off
	Plugins installed: 60
	Plugins enabled: 50
		1: Advanced new file v1.6.0
		2: Editor Syntax Highlight v0.1.3
		3: Auto Note Mover v1.2.0
		4: Calendar v1.5.10
		5: Doubleshift v2.2.1
		6: Excel to Markdown Table v0.4.0
		7: Lapel v0.1.5
		8: Linter v1.29.0
		9: Natural Language Dates v0.6.2
		10: BRAT v1.1.7
		11: Paste image rename v1.6.1
		12: Periodic Notes v0.0.17
		13: QuickAdd v1.18.1
		14: Templater v2.14.0
		15: Workspaces Plus v0.3.3
		16: Pane Relief v0.5.9
		17: Auto Hide v0.4.8
		18: Quick Explorer v0.2.14
		19: Plugin Update Tracker v1.7.0
		20: Dataview v0.5.68
		21: Read Later v0.8.2
		22: List Callouts v1.2.9
		23: Code Editor Shortcuts v1.14.0
		24: File Tree Alternative v2.6.0
		25: Commander v0.5.4
		26: Callout Manager v1.1.0
		27: Outliner v4.9.0
		28: Link Favicons v1.8.4
		29: Settings Search v1.3.10
		30: Smart Rename v2.0.23
		31: Image Toolkit v1.4.2
		32: Short links v1.1.5
		33: Meta Bind v1.4.4
		34: Folder Note Core v1.3.5
		35: DB Folder v3.5.1
		36: Note Toolbar v1.25.02
		37: Hotkeys for specific files v1.4.1
		38: ReadItLater v0.11.4
		39: Better Search Views v0.3.0
		40: Auto Link Title v1.5.5
		41: Modal forms v1.61.0
		42: Git v2.34.0
		43: Various Complements v10.7.1
		44: Strange New Worlds v2.3.2
		45: Dangling links v0.3.0
		46: Icon Shortcodes v0.9.7
		47: Hover Editor v0.11.26
		48: Minimal Theme Settings v8.1.1
		49: Style Settings v1.0.9
		50: Breadcrumbs v3.6.11

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Describe the Issue

After updating to 1.4.3 (and 1.4.4), my button to create meeting notes fails with the following error. Using BRAT to rollback to 1.4.2 resolves the issue.

type: templaterCreateNote now gives an error and if openNote: true, the file is not opened

```meta-bind-button
label: "Add Meeting"
id: add-meeting
style: default
class: mb-button-purple
action:
  type: templaterCreateNote
  templateFile: "00 - Meta/Templates/Meeting Template.2.md"
  fileName: "2025-08-04 Mon - Untitled Meeting"
  openNote: true
```

Sample Template (contents don't seem to matter)

<% "---" %>
aliases: []
created: 
modified: 
<% "---" %>

# New Meeting

## Summary

## Notes

Steps to Reproduce

  1. Click button
  2. New file created
  3. Error below, file not opened
meta-bind | ButtonMDRC >> error while running action TypeError: Cannot read properties of undefined (reading 'target_file')
    at ai.generate_content (plugin:templater-obsidian:15:50670)
    at ai.create_dynamic_templates (plugin:templater-obsidian:15:50441)
    at ai.generate_object (plugin:templater-obsidian:15:48047)
    at mi.generate_object (plugin:templater-obsidian:16:5264)
    at async _i.generate_object (plugin:templater-obsidian:17:1553)
    at async Sn.create_new_note_from_template (plugin:templater-obsidian:18:77259)
    at async ix.createNoteWithTemplater (plugin:obsidian-meta-bind-plugin:175:13286)
    at async bd.run (plugin:obsidian-meta-bind-plugin:50:890)
    at async _d.runAction (plugin:obsidian-meta-bind-plugin:50:4022)
    at async _d.runButtonActions (plugin:obsidian-meta-bind-plugin:50:3553)
runButtonActions @ plugin:obsidian-meta-bind-plugin:50
await in runButtonActions
onclick @ plugin:obsidian-meta-bind-plugin:171
m @ plugin:obsidian-meta-bind-plugin:171
ple @ plugin:obsidian-meta-bind-plugin:171
lc @ plugin:obsidian-meta-bind-plugin:95

Expected Behavior

  1. Click button
  2. New file created
  3. File opened

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behavior caused by this plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions