Skip to content

Import-DbaXESessionTemplate - Add event_file target when TargetFilePath specified but template has none#10250

Merged
potatoqualitee merged 1 commit into
developmentfrom
claude/issue-7727-20260315-1830
Mar 18, 2026
Merged

Import-DbaXESessionTemplate - Add event_file target when TargetFilePath specified but template has none#10250
potatoqualitee merged 1 commit into
developmentfrom
claude/issue-7727-20260315-1830

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Fixes #7727: TargetFilePath and TargetFileMetadataPath parameters were silently ignored when the XE session template did not contain an event_file target (e.g. templates using ring_buffer like 'Connection Detail Tracking'). Now an event_file target is injected into the XML when TargetFilePath is provided but no event_file target exists in the template.

Additional fixes:

  • Linux path bug: removed erroneous property access that evaluated to null
  • TargetFileMetadataPath is now only applied when that parameter is actually bound
  • Misleading verbose message no longer shown for TargetFileMetadataPath when not specified

Generated with Claude Code

…th specified but template has none

Fixes #7727: TargetFilePath and TargetFileMetadataPath parameters were silently ignored when
the XE session template did not contain an event_file target (e.g. templates using ring_buffer
like 'Connection Detail Tracking'). Now an event_file target is injected into the XML when
TargetFilePath is provided but no event_file target exists in the template.

Additional fixes:
- Linux path bug: removed erroneous property access that evaluated to null
- TargetFileMetadataPath is now only applied when that parameter is actually bound
- Misleading verbose message no longer shown for TargetFileMetadataPath when not specified

(do Import-DbaXESessionTemplate)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@potatoqualitee potatoqualitee merged commit fbdb470 into development Mar 18, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-7727-20260315-1830 branch March 18, 2026 23:00
@potatoqualitee
Copy link
Copy Markdown
Member

Very nice, appreciate all these

potatoqualitee added a commit that referenced this pull request Apr 10, 2026
…iew of #10250)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Import-DbaXESessionTemplate] TargetFile and TargetFileMetadataPath parameters ignored

2 participants