NullPointerException means that there is something being used in an expression or in your document that does not have a value. Your screenshots don’t show the whole stacktrace so I can’t see the specifics of the error.
For instance, if you created a decimal variable and added to numbers to determine the value of it, you would get this error if one of the numbers was empty.
If you can post the whole stacktrace, I can be more specific about the reason for this error.
Did you pass the required parameters? From your error it seems that one of them is empty.
Check this https://docs.mendix.com/refguide/generate-document for more details.
Hi
Can you share the screenshot of your generat document action. I suspect there is some null object is being passed to the parameter or missing required parameter.