You are viewing limited content. For full access, please sign in.

Question

Question

Can some one tell me why this is failing?

asked on February 15, 2018 Show version history

I am need to add metadata to folders.  I have this workflow which runs fine if I select a specific folder but if I select the parent folder it give me an error saying "2/15/2018 3:17:10 PMAssign Field ValuesThe data assigned to field 'SSN' is not valid. 9054 [Another operation on which this operation depends failed. [9054] [SSN]] [0265-WF10]"  I am not sure why this is failing thank you.

 

0 0

Answer

SELECTED ANSWER
replied on February 16, 2018

In your pattern matching process, are you trying to pattern match the folders it is looping through, or the initial parent? I think you need to change the input to %(ForEachEntry_CurrentEntry_Name) if I understand your workflow right.

0 0
replied on February 16, 2018

Yes, you're right. That pattern would always return the starting entry name (it actually does nothing because there are no backslashes in an entry name). So for each result, it looks up data on the same entry you started out with.

0 0

Replies

replied on February 15, 2018

Is the SSN data in your data source with or without dashes?  If you have the field length set to 9 and the data returned from the query has dashes, it will fail.  Also, if the data returned DOESN'T have dashes, and there is a constraint on the SSN field that requires the dashes, it will fail (though I think the error would be different if that were the case).

2 0
replied on February 15, 2018

The only other thing I would add to Paul's response is to also check if the SSN field on the template has any security on it.  If you put security on it and didn't give workflow access to the field, that would also cause an error.

1 0
replied on February 15, 2018

Something similar happened to me yesterday. It turned out to be that the data that I was trying to add exceeded the character limit of the metadata field, which by default was to 40 characters. 

Ensure that the character limit in the SSN field is big enough to take the value coming form your query.

0 0
replied on February 16, 2018

The SSN is formatted to work as other workflows fill just fine and if I manually run this one and select a specific folder it works fine just when I try to have it loop through more than one does it fail.

0 0
replied on February 16, 2018

Since it runs fine on a singular folder, but not on a parent folder, it sounds like your search is returning back Folders along with the documents and causing the workflow to crash when it tries to process.

Try adding this to your current search criteria. It will limit the results to documents only instead of documents and folders.

& {LF:Name="*", Type="D"}

 

replied on February 16, 2018

 %(ForEachEntry_CurrentEntry_Name)  was the key that fixed my issue. 

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.