MySQL Integration Service issue - Please call login in in Identity Service before invoking this service

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hi,

I'm trying to use already configured MySQL integration service.

  1. I am logging in with Microsoft AD LDAP identity service
  2. I successfully use other integration services like (SalesForce)
  3. I configured the database connection in Fabric Integration services

When I use kony.sdk.getCurrentInstance().getIntegrationService(serviceName) on the returned object I get - "Invalid service name" - I'm sure it's valid (this kony.sdk.getCurrentInstance I use for my SalesForce service)

When I use KNYMobileFabric.getIntegrationService(serviceName) I got exception with message -> "Please call login in in Identity Service before invoking this service" => I am logged in and I can use SalesForce integration service.

I'm referring that question that I posted a few minutes ago "Difference between KNYMobileFabric and kony.sdk.getCurrentInstance()"-> https://basecamp.kony.com/s/question/0D56A00000Ozta0SAB/difference-between-knymobilefabric-and-konysdkgetcurrentinstance

Thanks in advance!

@[Aleksis Sideris]​ Both KNYMobileFabric and kony.sdk.getCurrentInstance() would return you a same response if you are using AutoInit(linking the MF app to Visualizer project as mentioned here http://docs.kony.com/konylibrary/konyfabric/kony_fabric_user_guide/Default.htm#KonyStudio/Installing_KonyJS_SDK.htm#InitialiJS%3FTocPath%3DSDKs%7CKony%2520Visualizer%7C_____5 refer Kony Fabric Client SDK)

If you additionally call SDK init from the application and assign this to any object then that object will hold the current instance instead of the object KNYMobileFabric.

Check if SDK init has been called in the application.

This is different question. Please do not copy your answer from my other post.

https://basecamp.kony.com/s/question/0D56A00000Ozta0SAB/difference-between-knymobilefabric-and-konysdkgetcurrentinstance

Here I am asking : When I use KNYMobileFabric.getIntegrationService(serviceName) I got exception with message -> "Please call login in in Identity Service before invoking this service" => I am logged in and I can use SalesForce integration service.

Given the fact I am logged in and I can see on the boolean variable in kony sdk that i am authenticated indeed.

@Anisv Zimmewmvn​

Is the Integration service has a Identity provider protected. I can think of 1 scenario, lets say you have selected a different identity provider at the service level(for ex : Custom Identity Provider) and login is made from the different identity provider(SalesForce) you should get this issue.

Can you check that

Indeed it has it's own identity provider. I have only one configured and it wasn't automatically selected, just the Radio button which doesn't have other option and I'm not sure why is there at all.

This doesn't solved my issue. And the strange thing is the different response from as you said the same object (KNYMobileFabric) and (kony.sdk.getIntegrationService)

var fabric = kony.sdk.getCurrentInstance(); var serviceName = "MySqlIConnection";

var service = fabric.getIntegrationService(serviceName);

Is producing error message: “Invalid service name”

var serviceName = “MySqlIConnection”;

var service = KNYMobileFabric.getIntegrationService(serviceName);

Is producing error message: “Please call login in Identity Service before invoking this service”

How come I don’t have issues with other integration services and do you know what is going on ?

Here is a picture of my data service configuration

Image removed for security reasons

I am able to fetch data through Kony fabric test client with the same config and user but in the code I’m getting those responses described above.

Image removed for security reasons

I still cannot make it run : (