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.

Stackoverflow error from generated C# code - JSON schema Options · View
geetha.c
Posted: Tuesday, May 25, 2021 1:09:25 PM
Rank: Newbie

Joined: 5/25/2021
Posts: 2
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
geetha.c
Posted: Wednesday, June 9, 2021 9:25:34 AM
Rank: Newbie

Joined: 5/25/2021
Posts: 2

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
ksunilmishra
Posted: Friday, September 17, 2021 8:47:52 PM
Rank: Newbie

Joined: 9/17/2021
Posts: 2
Location: US
is there a similar solution for JAVA maven application ?
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

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