Skip to main content
Kofax

Mapping a dynamic complex to an object jagged array in a .NET activity

Article # 3036611 - Page views: 206

Issue

In a .NET activity, a method returns object[][].  However, this cannot be mapped to a dynamic complex variable in KTA.

 

Cause

KTA does not support mapping a dynamic complex variable to an object[][] in a .NET activity. 

 

Solution

In the .NET code, the object[][] can be returned as object using the below line of code.

return objectArray as object;

A dynamic complex variable can then be mapped to the simple object and returned to KTA.

Level of Complexity 

Easy

 

Applies to  

Product Version Build Environment Hardware
KTA ALL      

References

A bug exists in v7.6 and v7.7 that allows for a dynamic complex to be mapped to an object[][] in the Designer.

Bug 1356128:Should not be able to map dynamic complex to a object[][] type in a .NET activity

  • Was this article helpful?