cancel
Showing results for 
Search instead for 
Did you mean: 

FixValues mapping issue

Former Member
0 Kudos

Hi Experts,

I'm trying to do a very simple conversion via the FixValues, but when I display my queue, it's empty.

Source is X, Y or Z and target should be 1,2 or 3

So: SOURCE --> FixValues --> Target

But, my source structure is a flat one. So many records will enter the SAP PI system.

For every message, the source is the same within 1 message. So now I have a lot of X's entering the system.

When I check the FixValues queue, it's empty. I already tried to change to context.

Please advice.

Thanks a lot

Dimitri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
SOURCE --> FixValues --> Target

Check the queue of SOURCE field first and see whether you have values being passed to this field properly.

Former Member
0 Kudos

in the queue of the source I see all X values.That should be ok

Former Member
0 Kudos

ok..Try giving some default value in fix values instead of blank and check the mapping.

Former Member
0 Kudos

In FixValues it is like this:

Key = X, Y and value = 1, 2

Default value I've put E

Queue of source: all X values for every row in the flat structure

queue of Fixvalues: empty

former_member187339
Active Contributor
0 Kudos

Hi Dimitri,

The problem is not with FixValues, it is with the mapping of target fields. Some field with minOccurs = 1 in target is not mapped correctly..

Also check the parent element of the field (in target), where fixed values is used, is mapped correctly or not

Regards

Suraj

Former Member
0 Kudos

Is your mapping executed without any errors other than this fix value problem...because this should't be a problem with fixvalues as you have given default values even.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Dimitri ,

What you have done is correct .

SOURCE --> FixValues --> Target

First check it with simple values . save it and activate it .

So u can easily find out the solution

Regards,

Jude

Former Member
0 Kudos

I solved the problem...

I mapped constant value 1 to the parent segments. Now I see the queue of the fixed values populated...

Thank you all!

Former Member
0 Kudos

Hello Dimitri,

Do a display queue on the fixvalue function and see if it shows 1 for each X as output??

let me know what you see

regards

M

Former Member
0 Kudos

HI,

The logic should work inrrespective of the number of records coming to PI.

btw, ru doing content conversion to convert the flat file to xml in the channel?

Regards,

Swetha.

Former Member
0 Kudos

Hi Swetha,

The data is pushed to SAP PI via a consumer proxy. So no communication channel is used...

Cheers,

Dimitri