Skip to main content

NetSuite Sale Order lookup is returning incorrect error message - A mapping error occurred. More than one match for \"[\"otherrefnum\"

Comments

5 comments

  • Orion Abrams Technical Implementation Consultant

    Hi Cory,

    It's possible that you have inactive records with the same "otherrefnum" (usually PO# on a sales order), or that you have a multi-subsidiary NetSuite and the flow was checking all subsidiaries, where the UI search was not. 

    0
  • Cory Anderson
    Answer Pro
    Great Answer
    Awesome Follow-up
    Engaged
    Celigo University Level 4: Legendary

    There is only one subsidiary. The saved search that I ran to find all records with that number would have come back with all records regardless of status. Also, I am not aware of an 'Inactive' option on transactions. They only have status. 

    0
  • Orion Abrams Technical Implementation Consultant

    Ah, ok. I just noticed something else -- otherrefnum is an integer field, so you have to use "equalto" instead of "is" in the filter.

    1
  • Celigo Admin

    I am experiencing the same issue; verified there is only one result via Saved Search but the lookup is reporting more than one.

    A mapping error occurred. More than one match for "["custrecord_41_tracked_container","is","TCNU8264411"]" for the record type "customrecord_shipment".

    // final search.filterExpression: [["custrecord_41_tracked_container","is","TCNU8264411"]]
    var lookupResults = search.run().getRange({"start":0,"end":10});
    // lookupResults.length: 10

    1
  • Balasubramanian Mahadevan Community manager Senior Technical Writer
    Engaged
    Celigo University Level 2: Seasoned

    Celigo Admin, have you tried the approach provided by Orion Abrams of using "equalto" instead of "is" in the filter. Please let us know if you have tried this approach and still facing the same issue.

    0

Please sign in to leave a comment.