You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist

Answered

Comments

5 comments

  • Anitha Abraham Community moderator Principal Technical Writer
    Celigo University Level 3: Master

    Rhys,

    It looks like you're working with our Support team on this, which is great since they can look into your error. I'll also follow that ticket and check with some others internally to share any additional insights here.

    In the meantime, you could check out this post which has the same error.

    Thanks!

    0
  • Sachin Goud Godishela Software Engineer
    Answer Pro
    Great Answer
    Celigo University Level 4: Legendary

    Hi Rhys,

    I've attached an example import configuration's screenshots to create an assembly build from assembly item. Please go through it and try similar for your import and do let us know if you need more help.

    Sample export data in JSON:

        {
            "item_name": "AMCM Assembly",
            "subsidiary_name": "Honeycomb Holdings Inc.",
            "quantity": "3",
            "location_name": "Hyderabad",
            "inventorydetail": {
              "inv_detail": [
                {
                  "serialLotNumber": "1",
                  "quantity": "1"
                },
                {
                  "serialLotNumber": "2",
                  "quantity": "1"
                },
                {
                  "serialLotNumber": "3",
                  "quantity": "1"
                }
              ]
            },
            "components": [
              {
                "item_name": "Arctic Monkeys Coffee Mug",
                "item_id": "6941",
                "quantity": "9",
                "inv_detail": [
                  {
                    "bin_name": "420",
                    "quantity": "4"
                  },
                  {
                    "bin_name": "69",
                    "quantity": "5"
                  }
                ]
              }
            ]
        }

    Subrecord path configuration for inventory detail subrecord (body level subrecord)Subrecord path configuration for inventory detail subrecord (line item subrecord):

    Main mappings:

    NOTE: component[*].item should be manually typed

    Click the gear icon beside component[*].item and check the box as shown below:

    Subrecord mappings for body level subrecord field:

    Subrecord mappings for line level subrecord field:

     

    0
  • Rhys Gottwald
    Engaged
    Awesome Follow-up

    Thank you Sachin Goud Godishela

    This worked for me, just one typo component[*].item should be components[*].item

    0
  • Sachin Goud Godishela Software Engineer
    Answer Pro
    Great Answer
    Celigo University Level 4: Legendary

    Hi Rhys, glad to hear that you're able to get it to work.

    May I know what error were you facing with component[*].item, because I'm fairly certain that it is not a typo.

    0
  • Rhys Gottwald
    Engaged
    Awesome Follow-up

    HI Godishela,

    I just noticed that it was referred to as Components : Inventory Details in the sub record mapping so I changed it from component[*].item to components[*].item.  I don't think I actually tried it as component

    0

Please sign in to leave a comment.