Security

While calling a macro with a PDF process, an error was thrown "'SearchParser': Could not find macro"?

rsimmons
Splunk Employee
Splunk Employee

While calling macro with PDF process a error is thrown - SearchParser': Could not find macro

Example of the error in the python.log:

2014-01-08 16:00:14,690 +0000 ERROR     pdfgen_endpoint:210 - Exception raised while trying to prepare "Pdf-test-macro" for rendering to PDF. Error in 'SearchParser': Could not find macro 'Pdf-test-macro' that takes 0 arguments. Expecting stanza name 'Pdf-test-macro'.
2014-01-08 16:00:14,691 +0000 ERROR     pdfgen_endpoint:216 - No views prepared without exceptions. Bailing out of Integrated PDF Generation.

Why is the Integrated PDF bailing out of the process?

1 Solution

rsimmons
Splunk Employee
Splunk Employee

The macros with permisions set to "this app only" will fail in the PDF generation. If the macros is private, then Splunk will give an error message if you try to schedule a PDF. The workaround is to change the permissions of the macros to global and then schedule the PDF.

View solution in original post

rsimmons
Splunk Employee
Splunk Employee

The macros with permisions set to "this app only" will fail in the PDF generation. If the macros is private, then Splunk will give an error message if you try to schedule a PDF. The workaround is to change the permissions of the macros to global and then schedule the PDF.

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...