Skip to Content
author's profile photo Former Member
Former Member

System.Exception: Failed to create form. Please check the form attributes.

When having my addon installed in an SAP Client, all systems work, except for this one form i'm trying to load. whenever try to, the complete addon crashes. I am working on an addon for SAP Business One 9.0 for Hana on pl 4

I'm working on a 32bit SAP and all debug, release and build options are set to x86

I've tried a lot, been trying to fix this one all day (been on this error for 6hrs straight) but can't find a way to fix it

BUT HERE'S THE KICKER!

It all works in DEBUG AND RELEASE mode, but not when I install the addon...

I'm using VS2010 and have B1DE installed

Form Class (selection of, i'm sparing you guy's the details of the file.)

[FormAttribute("LocBE.CrystalPrepForm", "CrystalPrepForm.b1f")]
class CrystalPrepForm : UserFormBase
{
     public CrystalPrepForm(): base()
     {
          logger.Trace("in Constructor");
     }
}

Calling the Form Class

 oForm = null;
logger.Trace("build CrystalPrepForm");
try
 {
     oForm = new CrystalPrepForm();
     logger.Trace("CrystalPrepForm Built!");
}
catch (Exception e)
{
     logger.Fatal(e);
}

Logger Output

2013-12-30 16:17:41.5697 | TRACE | 2492.6 | Program | build CrystalPrepForm

2013-12-30 16:17:41.5697 | FATAL | 2492.6 | Program | System.Exception: Failed to create form. Please check the form attributes.

at SAPbouiCOM.Framework.UserFormBase..ctor()

I've also tried including a file named "Project.b1s" into the install

I've also tried renaming that file to "CrystalPrepForm.b1s and including that in the install

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2014 at 10:03 AM

    I managed to solve the problem of not loading the form by adding the file Project.b1s to the addon folder After renaming CrystalPrepForm to CrPrpForm. appearantly the name also has the 10 characters limit on it.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.