Skip to main content
How can I solve the compile error:

Compile Error: Acknowledge Complete(Event) Line 21: Compiler limit exceeded: Line cannot exceed 2046 characters
Do you get this error in K2.net Service Manager?
If so, the code in the database got corrupted in some way - maybe by copying and pasting code from an external app into the 'Repair Error' text box.
Please log a support call - you will need to backup and send your databases to the K2.net support consultants.

Regards,
Ockert
I have see this before.

It is a limit in the C# compiler (I don't think it is a problem in VB). You should try splitting the code over multiple lines.

We are having the same problem ourside.


We checked our code. The largest portion would be a string for an SQL Query. It is not particularly large (+-180 Characters excluding white space). Confused and the code block that is in is +-600 Characters in total.


 Any suggestions as to where to begin looking would be apprecited.


Best recommendation I could make would be to re-export your solution from K2.net 2003 Studio.  This will force new process instances to be started on the new version of the definition - without the error.  Then, open a support ticket and attach your databases for further troubleshooting.


Regards,


Ockert


Reply