You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Forms-Data Source Creation LFF2400 Error

posted on October 9, 2020

Hello,

Customer is trying to create a Forms Data Source pointing to a U2 32 Bit ODBC connection and getting the following Error:

An error occurred while testing the data source connection. See the Windows Event Log for details. [LFF2400-DataSourceConnectionError]

Root Error Message: The source contains no DataRows.

We have confirmed that their are Data Rows in the Source Table.

Has anyone setup a U2 ODBC Connection before and have any pointers?

They are on Forms 10.4.4.444.

Appreciate the feedback,

Jeff Curtis

0 0
replied on October 14, 2020

Hello Ziyan,

Forms is 64bit install (C:\Program Files\Laserfiche\Laserfiche Forms). 

We tried both 32 and 64 bit ODBC profiles and same error.

Below is the full stack error from the Forms Application Log

An error occurred while testing the data source connection. See the Windows Event Log for details. [LFF2400-DataSourceConnectionError]

Details:
URL: /Forms/api/datasource/datasource
Error: DataSourceConnectionError
Date: 10/9/2020 10:17:23 AM (Pacific Standard Time)
HTTP Status Code: 400
Business Process ID: 0
User: forms
IP: 192.168.10.7
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
Business Process Name: 

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An error occurred while testing the data source connection. See the Windows Event Log for details. [LFF2400-DataSourceConnectionError]
   at E_Forms.Controllers.AuthorizationController.DataSourceSaveDatasource(Int32 dbType, String displayName, String server, String db, String user, String pw, Boolean edit, Int32 dbId)
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c.<BeginInvokeSynchronousActionMethod>b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_0.<InvokeActionMethodFilterAsynchronouslyRecursive>b__0()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_6.<BeginInvokeAction>b__4()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult)

Inner exception: System.InvalidOperationException
Message: The source contains no DataRows.
   at System.Data.DataTableExtensions.LoadTableFromEnumerable[T](IEnumerable`1 source, DataTable table, Nullable`1 options, FillErrorEventHandler errorHandler)
   at System.Data.DataTableExtensions.CopyToDataTable[T](IEnumerable`1 source)
   at Laserfiche.Forms.EntityModels.Data.ODBCDBConnector.GetTableNames(String dbName)
   at E_Forms.Models.ViewModels.DataSource.RegisterDataSource(Int32 dbType, String sourceDisplayName, String server, String db, String user, String pw, Boolean edit, Int32 dbId, TimeZoneInfo tz, List`1 BPsAffected)
   at E_Forms.Controllers.AuthorizationController.DataSourceSaveDatasource(Int32 dbType, String displayName, String server, String db, String user, String pw, Boolean edit, Int32 dbId)

Appreciate the feedback,

Jeff Curtis

 

0 0
replied on October 15, 2020 Show version history

Hi Jeff, 

From error stack trace, looks like Forms fails to get any table through odbc driver. Could you confirm is there any table existing?

If no, please try create a table then add data source again.

0 0
replied on October 15, 2020 Show version history
0 0
replied on October 16, 2020

Hello Ziyan,

Yes there are existing tables.

Also for Escape Sequence, the ODBC Driver the customer is using (U2) is not listed in the Options.

Is the issue, that LF does not support the U2 ODBC Driver.

U2 Driver is for UniData or UniVerse DB

http://www.u2-world.com/article.php?group_id=319&id=20

Appreciate the feedback,

Jeff Curtis

0 0
replied on October 19, 2020

The option is not listed since Forms has not been tested with U2 ODBC driver. I can have team test it when time permits and get back to you later.

To confirm, what is the OS of UniData/UniVerse DB? 

0 0
replied on October 20, 2020

Hello Ziyan,

Should I open a Support Case for this?

Appreciate your feedback,

Jeff Curtis

0 0
replied on October 21, 2020 Show version history

Yes, please open a support case with more information for the issue. Thanks!

0 0
replied on October 21, 2020

Thanks Ziyan

Will open a case shortly

0 0
replied on November 26, 2020

@████████

We setup an test environment internally as following:

App Version:

  • Forms: 10.4.4.444
  • Rocket Unidata: 8.2.1.9124(64bit)
  • Rocket U2Client: 5.2.0 (64bit)

Actions:

 

We can create a data source using the U2 ODBC with the 'demo' database successfully.  Please check what are the differences between your setup and ours and update the support case if you want further investigation. 

0 0
replied on March 15, 2021

Hello- If this environment is still setup, would it be possible to get a video from you all of the steps you took to get this to work.  Customer is requesting this.

Appreciate your time,

Jeff Curtis

0 0
replied on March 16, 2021

We no longer have the environment setup, I uploaded some screenshots we took when tested the driver.

U2ODBCConfig.PNG
TestConnectionSuccessfully.PNG
UCIConfig.PNG
U2ODBCConfig.PNG (38.52 KB)
UCIConfig.PNG (48.24 KB)
0 0
replied on March 16, 2021

Thanks Xiuhong

I have passed this along to the customer.

Jeff Curtis

0 0
replied on March 24, 2021

Hello Xiuhong,

Customer is requesting a WebEx to walk through the steps you provided.

Please let me know if this is a possibility or not.

Appreciate your time,

Jeff Curtis

0 0
replied on March 25, 2021

Hi Jeff,

Is there any difference between customer's configuration and our test environment? Is it possible for customer to provide related configuration (like above attached SS) for review first?

0 0
replied on March 25, 2021

Hello Ziyan,

I am checking with the customer to see if they can provide the necessary screenshots.

Thanks,

Jeff Curtis

0 0
replied on March 30, 2021

Hello Ziyan,

Attached is a PDF with the Steps/Error user gets after successfully setting up the Data Connection.

Thanks,

Jeff Curtis

 

0 0
replied on April 2, 2021 Show version history

Hi Jeff,

I've reviewed the provided setup and looks like configurations are expected. The difference I noticed is u2 server version, and database being used.

Have you got demo database (used in our test) installed when installing u2 server? If yes, could you try to connect to demo database to see whether still got same error? 

 

If you can do C# testing, you can try 

var tables = _Connection.GetSchema("Tables");

with odbc connection. Here is example test code https://stackoverflow.com/questions/16695817/how-can-i-get-schema-information-about-a-unidata-universe-database

Forms is looking for data rows with TABLE_SCHEM column is null, or value except INFORMATION_SCHEMA and SYS. I am not sure whether it is applicable to customer's database as I am not familiar with u2.

Regards,

Ziyan

0 0
replied on April 2, 2021

Hello Ziyan,

Did you provide your demo DB, as I don't recall getting via this post or the LF Support case.

Thanks,

Jeff Curtis

0 0
replied on April 6, 2021
0 0
replied on April 6, 2021

Thanks Ziyan

I have passed your information along to the customer.

Jeff Curtis

0 0
replied on October 11, 2020

Hi Jeff,

Is installed Forms also 32-bit?  According to https://www.laserfiche.com/support/webhelp/Laserfiche/10/en-us/administration/Default.htm#../Subsystems/Forms/Content/Settings/ODBC-Data-Sources.htm and https://answers.laserfiche.com/questions/118342/Forms-102-32-bit-ODBC-connection, 32-bit ODBC needs 32-bit Forms to access.

You may try with 64-bit ODBC if 64-bit Forms is installed.

 

If problem consist, could you provide full error message of the error log? The trace stack can help to locate the root cause.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.