on 05-22-2013 2:52 PM
Hello Gurus,
I have an issue with PI mapping that keeps failing 'Cannot create target element' when I have multiple line items. However, the same mapping works with only single line item. I have provided the screenshot for the issue. My header occurrences is 1: unbound and Item is also 1:unbound. Also 1 header record can have nulitple line items.
Thanks in advance for your inputs and help.
Hi Raj,
Seems like you have held back all information required to resolve the issue.
please share the mapping screen shot with source/target messages clearly visible.
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's the screenshot attached of the Source and Target
And the mapping is from the Header structure I use the field to see if it holds the value "FOREIGN" then perfrom GL conversion on the line items.
The issue is when I have this mapping used for 1 header record with multiple line items it gives the error
However, the same logic works for 1 header record with signle line item.
Also I checked the when I do the GL account 1 to 1 mapping without any conversions it works for 1 header record with multiple line items.
Hope now my issue is clear.
You need to handle the contexts..
use display queue function to see how the value are coming..
May be you may need to raise the context and add the split by value after the if else..
Please go through the below blog to understand..
Regards,
Hareesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to build mapping logic when more than one line item present in source data what you have to do?like how many records needs to be created at target.
paste mapping screenshot here with source and target.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raja,
I have already the screenshots in the earlier message. Also my source and target structure is the same. However, when testing the scenario 1 header and multple line items the below mapping fails and it works when I use 1 Header with 1 linet item. I did make all changes the mapping remove context, mapwithDefault, etc it still doesn't.
Also when I take out mapping and have 1 to 1mapping it works for 1 Header multiple lines.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.