web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

CIL compile error AX 2012 R3 Source array was not long enough error!

(0) ShareShare
ReportReport
Posted on by 650

Running AX 2012 R3 kernal 6.3.164.0  on Win 2012 R2 datacenter on a azure virtual machine 

CIL generation: Line Number 28 - Line Number 30 - Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

CIL generation: Line Number 52 - Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

CIL generation: Line Number 33 - Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

Does anyone experienced this before? 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

    This is quite popular issue with CIL :( Usually "Compile application" (X++) solves the problem. And better run it from AX client (axbuild.exe is not very helpful in such cases) 

  • Verified answer
    ninzer Profile Picture
    650 on at

    I had to drop the VM altogether where I had originally installed R2 (rapidstart and excel were working beautifully) just because of num sequence issue, I had to drop and went to R3 - encountered issues. Then decided to kill the VM and spin off another one. it took  me literally two days to compile and do with everything.

  • Verified answer
    Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    Hi Ninzer,

    I agree with Oleg,

    dsin.wordpress.com/.../dynamics-ax-cil-generation-source-array-was-not-long-enough-check-srcindex-and-length-and-the-arrays-lower-bounds

    Compile will solve the issue.

  • Community Member Profile Picture
    on at

    I am experiencing the same problem

    "Source array was not long enough. Check srcIndex and length, and the array's lower bounds."

    full compile isnt solving this issue

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans