Skip to main content
Question

Issue with Learning Instance Creation

  • February 12, 2025
  • 7 replies
  • 62 views

Forum|alt.badge.img+5

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.

7 replies

Shreya.Kumar
Pathfinder Community Team
Forum|alt.badge.img+14
  • Pathfinder Community Team
  • February 12, 2025

@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.


Forum|alt.badge.img+5
  • Author
  • Cadet | Tier 2
  • February 12, 2025

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.. 


Shreya.Kumar
Pathfinder Community Team
Forum|alt.badge.img+14
  • Pathfinder Community Team
  • February 12, 2025

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.


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • February 12, 2025

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. 


Forum|alt.badge.img+5
  • Author
  • Cadet | Tier 2
  • February 12, 2025

Hi ​@Shreya.Kumar ..

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

 


Forum|alt.badge.img+5
  • Author
  • Cadet | Tier 2
  • February 12, 2025

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


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • February 12, 2025

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.