Skip to main content
October 2, 2023
Question

Create PDF Smart Service Activity Class Error

  • October 2, 2023
  • 3 replies
  • 0 views
Hi,
I have been trying to get the Create PDF Smart Service to run but keep running into the same error, no matter how I configure the inputs of the node. The error I am getting is
An error occurred in executing an Activity Class.
When I came across this error, I went looking through the community and tried to use the solution provided in the post below
This solution did not work and we get the same Activity Class Error as one of the replies on the post.
I have tried configuring the node in many different ways to try and solve the error but the below is the configuration that makes the most sense to me which still returned the above error:
INPUTS:
Create New Document: True
New Document Name: "Test_"&now()&".pdf"
New Document Desc: null,
Save In Folder: Folder referenced by an constant
Existing Document: null,
Document: null,
Pause On Error: false,
Contents: 
={  
  'type!{urn:appian:ps:pdftools}PdfContent'(
    page: 1,    
    xPercent: 10,    
    yPercent: 10,    
    angle: 0,    
    sections: {      
      'type!{urn:appian:ps:pdftools}PdfSection'(
        style: null,        
        components: {          
          'type!{urn:appian:ps:pdftools}PdfText'(            
            value: "Some"          
          ),          
          'type!{urn:appian:ps:pdftools}PdfText'(
            value: "text"          
          )        
        }      
      )    
    }  
  )
}

3 replies

stefanhelzle0001
October 2, 2023

The value you use for the document name "Test_"&now()&".pdf" looks suspicious. now() might return invalid characters. I suggest to test that and just use a static string.

robh0004Author
October 3, 2023

Hi Stefan,

I tried running the process with your suggestion and got the same error as before.

stefanhelzle0001
October 3, 2023

Sorry, I do not have any great ideas. Did you check the tomcat-stdout log file for details?