Skip to main content
Nintex Community Menu Bar
Answer

Current Item URL link in DocGen gives 404 error

  • January 22, 2020
  • 3 replies
  • 44 views

Forum|alt.badge.img+10

I'm currently having an issue with getting a link back to the current item in a library. I have a docgen action that creates a PDF. In the PDF I want a link to the current item, but when I use the workflow context current item URL I get redirected to a 404 error page instead of the item. I'm not sure what I'm missing here, but I'm sure it must be something simple. Help?

Best answer by aak1

It turns out that there was a space in the hyperlink. Using a regular expression to change the space to %20 did the trick.

3 replies

Forum|alt.badge.img+2
  • January 23, 2020

When you compare the URL that is populated in the PDF with the actual URL to that item, what is the difference? Maybe a space issue (needs to be encoded)?

Possibly try putting the context item url into a variable and using that in the PDF to see if you get the same behaviour


Forum|alt.badge.img+10
  • Author
  • Scholar
  • January 23, 2020

I tried putting the URL into a variable and using that in the PDF, but it resulted in the same behavior. When I copy the link in the PDF into the address bar, it works so it doesn't appear to be a space issue.


Forum|alt.badge.img+10
  • Author
  • Scholar
  • Answer
  • March 11, 2020

It turns out that there was a space in the hyperlink. Using a regular expression to change the space to %20 did the trick.