Violates the constraints of type parameter  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Violates the constraints of type parameter

Postby Riyaz » Mon Dec 23, 2019 4:58 pm

Hi There

Pls guide me with error, am trying to read a bookin and then activate it, but I get this error

Method JiwaFinancials.Jiwa.JiwaApplication.BusinessLogicFactory.CreateBusinessLogic: type argument 'JiwaFinancials.Jiwa.JiwaForwardCover.ForwardCover' violates the constraint of type parameter 'BusinessLogicType'.

Using the code below

Dim manager As New JiwaFinancials.Jiwa.JiwaApplication.Manager()
manager.Logon(JiwaCon.DataSource, JiwaCon.Database, JiwaFinancials.Jiwa.JiwaODBC.database.AuthenticationModes.JiwaAuthentication, _Login.UserName, _Login.Password)
Dim JiwaBookIn As New BookIn
bookinjiwa = manager.BusinessLogicFactory.CreateBusinessLogic(Of JiwaLandedCost.BookIn.BookIn)(Nothing)
bookinjiwa.Read(Trim(BookInID))
With bookinjiwa
.ActivateRecord()
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Violates the constraints of type parameter

Postby SBarnes » Mon Dec 23, 2019 6:25 pm

The error is coming from Jiwa when the business logic factory when it tries to create a forward cover object, it may be a permissions issue try running your code as Admin and see if you get the same error as I am guessing that the user you are using may not have permissions to the forward cover object.

If it still does it as admin try it without involving forward cover.

I am basing what I am suggesting totally on the error you have given without looking at any code.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1617
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Violates the constraints of type parameter  Topic is solved

Postby Mike.Sheen » Sun Jan 12, 2020 7:23 pm

Hi Riyaz,

See my post here. I think you may have some incompatible assemblies being referenced.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2440
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 755


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 3 guests

cron