Upload Multi Document Validation Failed 17.1

I have a function that works great with 7.11 but when we converted to 17.1. I get a Text into type FieldLayout error. I have tried puting the Text in a local but it is the isnull function(i beleave) that is wanting to covert it to a FieldLayout. In the Rule i have with the Attached code works great but when i add it to the Interface to validate the files and run it in Tempo it fails not sure what i am doing wrong or why it is trying to turn the Text in to a FieldLayout type.

Error: Expression evaluation error in rule 'nml_fileextensionvalidation' (called by rule 'nml_ui') at function 'or': Invalid index: Cannot index property 'uploadedDocumentName' of type Text into type FieldLayout
Code: is Attached


Any help word be appreciated!

OriginalPostID-271928

  Discussion posts and replies are publicly visible

Parents
  • If you put

    a!fileUploadField(target: ri!target, value:ri!file)

    in a Expression rule and have a file thats uploaded already and the target of where it is located. Then Test the Rule you get back a list of items

    [@attributes=, label=, instructions=, required=, disabled=, target=, uploadedDocumentName=1319_SupportingDocumentation.pdf, uploadedDocumentSize=359.44 KB, validations=, clientErrors=, value=[Document:143334], saveInto=,labelPosition=ABOVE, actions=, helpTooltip=, acceptedTypes=]

    The one i would like is the uploadedDocumentName this way i can look at the .pdf to see if it is one or not
Reply
  • If you put

    a!fileUploadField(target: ri!target, value:ri!file)

    in a Expression rule and have a file thats uploaded already and the target of where it is located. Then Test the Rule you get back a list of items

    [@attributes=, label=, instructions=, required=, disabled=, target=, uploadedDocumentName=1319_SupportingDocumentation.pdf, uploadedDocumentSize=359.44 KB, validations=, clientErrors=, value=[Document:143334], saveInto=,labelPosition=ABOVE, actions=, helpTooltip=, acceptedTypes=]

    The one i would like is the uploadedDocumentName this way i can look at the .pdf to see if it is one or not
Children
No Data