Avalados por :

Resolución de excepción NullPointerException en mapeo de valores fijos - Problema de clave nula en SAP AI Mapping

  • Creado 01/03/2024
  • Modificado 01/03/2024
  • 5 Vistas
0
Cargando...

Hi Experts,

I get an Exception:

[java.lang.NullPointerException: while trying to invoke the method com.sap.aii.ib.bom.flib.types.FixedValuesTable.lookup(java.lang.String) of an object loaded from local variable '_table'] in class com.sap.aii.mappingtool.flib7.
            

TextFunctions met

The field ABC exist in the target structure and the error is being thrown out in the mapping step. It seems like there is some problem in the fix value mapping. Mapping is as shown below :

input->ifelsecondition->Substring fuction->Fixvaluemapping-->Targetfield(ABC)

As per this mapping the Substring should throw 3 character word and in fix value mapping it is getting displayed correctly. The fix value mapping displayed the expected result.

Till this point every thing looks fine but when I clicked on the Queue of the Target field it throws out the error as:

Runtime exception when processing target-field mapping /ns0:MT_RequisitionImport/Envelope/Packet/Payload/REQUISITION/FUNCTIONALAREA_GJFA; root message: Exception:[java.lang.NullPointerException: while trying to invoke the method com.sap.aii.ib.bom.flib.types.FixedValuesTable.lookup(java.lang.String) of an object loaded from local variable '_table'] in class com.sap.aii.mappingtool.flib7.TextFunctions method fixed_values[XXX, null, com.sap.aii.ib.bom.flib.types.ValueMappingStrategy@76e37646, , com.sap.aii.mappingtool.tf7.rt.Context@73dda3f0]

Here it clearly shows that output of the key in fix value mapping is null, which contradicts the result of fix value mapping queue.

Please help in finding out the resolution of this issue.

Thanks and Regards,

Sudhir Kumar

Message was edited by: Jason Lax

Pedro Pascal
Se unió el 07/03/2018
Pinterest
Telegram
Linkedin
Whatsapp

4 Respuestas

0
Cargando...

Hola Aaron,

El contexto está en el mismo nivel para todos los bloques de mapeo.

Saludos,

Sudhir

Respondido el 15/04/2024
LUCIANO RIOJA GHIOTTO
Se unió el 13/07/2019
0
Cargando...

¿Quizás estás teniendo un problema con el contexto de la cola de asignación?

¿Cuando visualizas la cola desde puntos if-else y substring, aparecen en el mismo nivel (colores blanco, gris, azul, etc) que la cola de asignación de valor fijo? Si no es así, intenta usar Colapsar Contexto u otras funciones de nodo para que el contexto coincida.

http://wiki.sdn.sap.com/wiki/display/XI/Explain+node+functions

Respondido el 15/04/2024
LUCIANO RIOJA GHIOTTO
Se unió el 13/07/2019
0
Cargando...

Gracias Mark, tu respuesta es realmente útil. Estoy trabajando en esto.

Saludos,

Sudhir

Respondido el 15/04/2024
LUCIANO RIOJA GHIOTTO
Se unió el 13/07/2019
0
Cargando...

Hola Sudhir,

Transfiriendo mi respuesta aquí:

Hay una solución mencionada en la Nota SAP 1509561 - Excepción de puntero nulo durante el mapeo con Valores Fijos que recomienda parchear tu Componente ESR.

Para ver el nivel de parche actual de tus componentes PI, consulta la Nota SAP 1381878 - Cómo/dónde verificar los niveles de parche de tu Sistema XI/PI.

Después de aplicar el parche, edita tu mapeo de mensajes y luego reactiva.

Espero que esto ayude,

Mark

Respondido el 15/04/2024
LUCIANO RIOJA GHIOTTO
Se unió el 13/07/2019

contacto@primeinstitute.com

(+51) 1641 9379
(+57) 1489 6964

© 2024 Copyright. Todos los derechos reservados.

Desarrollado por Prime Institute

¡Hola! Soy Diana, asesora académica de Prime Institute, indícame en que curso estas interesado, saludos!
Hola ¿Puedo ayudarte?