cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in graphical mapping with change in cardinality

Former Member
0 Kudos

Hi,

I am trying out a solution for using multi-mapping (without ccBPM). In my graphical mapping program I go to the signature tab. I provide my source and target message types. Go back to my definition tab. Everything is fine till this point.

I now go back to the signature tab and change the cardinality to 0...n for the target structure and go back to my definition tab. I get the error below. I want to understand if I am doing something that I shouldnu2019t be and the tool is not validating as it should be OR am is this an issue with the tool. Your help is greatly appreciated.


Function model undefined

====================================================================
= Root Exception ===================================================
====================================================================
Thrown:
com.sap.aii.utilxi.misc.api.BaseRuntimeException: Function model undefined
	at com.sap.aii.mappingtool.Project.load(Project.java:637)
	at com.sap.aii.mappingtool.Project.loadMetadata(Project.java:899)
	at com.sap.aii.mappingtool.Project.<init>(Project.java:254)
	at com.sap.aii.mappingtool.api.MappingToolFactory.getInstance(MappingToolFactory.java:61)
	at com.sap.aii.mappingtool.fwutil.util.ToolUtil.restartTool(ToolUtil.java:376)
	at com.sap.aii.mappingtool.fwutil.api.ViewUtil.refreshControls(ViewUtil.java:61)
	at com.sap.aii.ibrep.gui.mapping.xitrafo.XiMappingView.refreshControls(XiMappingView.java:197)
	at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView.refreshControls(XiTransformationView.java:132)
	at com.sap.aii.ib.gui.editor.XiView.refresh(XiView.java:230)
	at com.sap.aii.utilxi.swing.framework.DocumentContainer.refreshView(DocumentContainer.java:341)
	at com.sap.aii.utilxi.swing.framework.cmd.SaveCommand.execute(SaveCommand.java:80)
	at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:198)
	at com.sap.aii.utilxi.swing.framework.cmd.CloseCommand.execute(CloseCommand.java:62)
	at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:198)
	at com.sap.aii.utilxi.swing.framework.cmd.CloseContainerCommand.execute(CloseContainerCommand.java:39)
	at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:198)
	at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:154)
	at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:82)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at com.sap.aii.utilxi.swing.toolkit.Guitilities$EventProcessor.dispatchEvent(Guitilities.java:320)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Regards,

Keerti

Accepted Solutions (1)

Accepted Solutions (1)

justin_santhanam
Active Contributor
0 Kudos

Are you getting this error all the time ? I would say please close it and open a new session and try to do it.

I have seen so many such errors in PI 7.11.

Thanks!

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Note 1495202 - Function Model undefined error incorrectly thrown in mapping - Solves this issue.

I had EhP1 installed. The only thing that I needed to do is unmap the fields (all of them). Change the cardinality and the problem vanished.

Thanks for checking this out.

Regards,

Keerti

stefan_grube
Active Contributor
0 Kudos

I have this error also.

You cannot change the signature of a mapping, when you have already started to map.

You have to enter all mapping types with cardinality in signaure tab first, then start mapping.

You may report this bug to SAP.