IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: geetha.c
About
User Name: geetha.c
Forum Rank: Newbie
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Tuesday, May 25, 2021
Last Visit: Wednesday, June 9, 2021 9:25:35 AM
Number of Posts: 2
[0.01% of all post / 0.02 posts per day]
Avatar
Last 10 Posts
Topic: Stackoverflow error from generated C# code - JSON schema
Posted: Wednesday, June 9, 2021 9:25:34 AM

I got this resolved by changing the following settings of generated C# project.

In Project Settiings, Build configuration tab:

Quote:
Change Platform Target to 'x64'
Check 'Optimize Code' option
Topic: Stackoverflow error from generated C# code - JSON schema
Posted: Tuesday, May 25, 2021 1:09:25 PM
I have created a MFD file for transformation of JSON document to XML. The JSON schema file is a huge one with around 10,000 elements in it.
I am able to get output from Mapforce IDE. But when I run the generated C# code, it throws Stack Overflow exception while initializing the class that holds array with JSON elements.
Any help in this regard is highly appreciated.

Versions I used: MapForce 2021r2

Thanks in advance

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.