Skip to main content

Hi all,

Has anyone faced an issue where we are trying to create a learning instance for a “User-defined” document type and the PDF has multiple fields with exactly same label like ‘Phone’. The learning instance is throwing an error saying label already used.

If yes, can you please share the resolution if any…I’m keen to understand how the instance can differentiate between different fields with same label.. Thank you.

@Srini 6969 could you elaborate on why you would need two phone fields? Does your data have multiple phone fields, such as a work phone number and a personal phone number?
Depending on your data, I would create labels that are more specific to the purpose of each field, eg “Work Phone”, “Personal Phone” etc. This should help the system recognise them as different.


Hi ​@Shreya.Kumar .. Thanks for the reply

Yeah there are multiple phone fields like one for Customer contact and another for Pickup Contact. The form is already defined and coming from a third party, unfortunately I don’t have control on form labels or contents.. 


Hi ​@Shreya.Kumar .. Thanks for the reply

Yeah there are multiple phone fields like one for Customer contact and another for Pickup Contact. The form is already defined and coming from a third party, unfortunately I don’t have control on form labels or contents.. 

are all the documents you’re trying to process PDFs with fixed field positions?

It may be worth trying out the PDF package to extract that information. This course from AAU tells you how.


Srini,

What you're describing is how our software is supposed to work. If you want more than one phone field, give it a unique name. Your output file is based on those field names, and having a duplicate name would mean the output file would have a duplicate column too, which is a bad thing. 


Hi ​@Shreya.Kumar ..

Yes they are PDFs with fixed postions… will check out the PDF package … Thanks

 


HI ​@Aaron.Gleason : Thanks for the reply.

I wish i can update the PDF to make it unique but its coming from a third party but will check with them if it can be updated..  Thanks


No need to update the PDF. In Document Automation, each field needs its unique name. In this case, I would use the Advanced extraction mode of DA to locate the individual phone numbers in your document. Shreya’s example would also work well in this case since the location of the fields doesn’t change. Note that the PDF package only works with machine-generated PDFs, not scanned PDFs.


Reply