Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Write Document

Avatar

Not applicable
Hi Group



Can someone please tell me what is wrong with the below? I am trying to set the XPath for saving a form using the



Service Name: FileUtilsService

Service Operation: "Write Document"



The below does not stall the process but it also does not save the file in the path? Any help appreciated



Thanks

Peter



concat('c:\',/process_data/varFormSF1/object/data/xdp/datasets/data/SampleForm/Main/Name,'.pdf')
6 Replies

Avatar

Level 2

Hello!

I'm having the same problem. The process instance is completed successfully, but the form is not saved in the specified directory.

Any help?

Avatar

Level 2

In the log I get no error message. The process does not stall, but the file is not saved in the directory.

Thanks for your help!

Avatar

Level 10

Are you sure your document contains any data?

What's the file name you're using?

You can use Record and Playback to check the content of the variable.

Jasmin

Avatar

Level 2

The flow is simple. A User fills the form, a second user receives the completed form and choose between sending the attached form by email or write to the PDF form on the hard disk. I'm using two variables: one to receive information from the form (xml data type) and second to generate the PDF (document data type).

But I do not I configured no name for the file. It is this problem? What is best way to set the file name?

Thanks!

Avatar

Level 10

Well, you do need a file name. Actually you need to put the path and the name of the file. For example c:/temp/myFile.xml.

You can hard code it or build a string dynamically. It's really up to you as to how you create the file name.

Jasmin

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now