Skip to main content
Nintex Community Menu Bar
Question

Update the PDF document name

  • Feb 28, 2025 12:56 PM UTC
  • 8 replies
  • 151 views
  • Translate All

Forum|alt.badge.img+9

I have a document library and would like to update the name of the document (in PDF) using the email subject of the email/ or other library column. I have tried update item action but sometimes it doesn't work - any advice?

 

8 replies

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Mar 3, 2025 12:32 AM UTC

Hi ​@michuk,

You said sometimes it doesn’t work.
Have you noticed anything specific about the file name when it doesn’t work, like does the original file have special characters or anything or does the new name have something different in it compared to when it does work?
Do you get any errors when it doesn’t work?

Translate

Forum|alt.badge.img+9
  • Author
  • Rookie
  • Mar 3, 2025 10:26 AM UTC

The error is: 

The workflow could not update the item, possibly because one or more columns for the item require a different type of information.

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Mar 3, 2025 10:33 AM UTC

Hi michuck,

This error means you are trying to update the column with the wrong data type.
For instance, you may need a string, but you are using an integer, etc.  Make sure that the variable you are using to update the file name is of the correct data type.

Translate

Forum|alt.badge.img+9
  • Author
  • Rookie
  • Mar 3, 2025 10:40 AM UTC

 

Translate

Forum|alt.badge.img+9
  • Author
  • Rookie
  • Mar 3, 2025 10:45 AM UTC

Is the Name column a single line of text?

Is the Email subject a single line of text?

 

Is there a characters the email subject is around 199 characters. 

It working for 89 characters.

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Mar 3, 2025 10:53 AM UTC

​@michuk, It sounds like you have found your issue.
If the text is too long in the subject an error occurs.

Translate

Forum|alt.badge.img+9
  • Author
  • Rookie
  • Mar 3, 2025 10:57 AM UTC

​@SimonMuntz 

 

Do you know any other ways of actioning?

 

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Mar 3, 2025 10:19 PM UTC

Hi ​@michuk,

As you know, the error occurs when the string is too long; you could check its length and truncate it if it’s too long before doing the update.

As the string is too long, I guess that it is being passed as multiple lines of text instead of single lines of text. This is just a theory. As we are renaming a file, the issue could be the file name length.

Translate