Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
rohitk1609
Master
Master

MongoDB error - The GuidRepresentation for the reader is CSharpLegacy,**UuidLegacy, not UuidStandard

Hi team,

We are using Qlik Web Connector Connector Version: 1.0.8.29766. It is licensed for MongoDB. We know this license is deprecated from market but due to its presence on large level at our Qlik site we are continuing with it.

We have recently upgrade MongoDB from 3.2 to 4.2.x version and testing our Qlik Web MongoDB connector and getting this error 

MongoDB Connector Error.PNG

 

to fix this I found one Qlik article https://support.qlik.com/articles/000050290

This says append uuidRepresentation=Standard as postifx or after server/connection string. When I tried it it returns new error

uuidRepresentationError.png

The way I am appending the suggested string as

MongoDBHostName1.com,MongoDBHostName2.com,MongoDBHostName3.com?uuidRepresentation=Standard

Can you please help me to understand why this error is coming with 4.2.x version, is there is anything I am missing while using suggested Qlik solution or I can suggest to my DB team what you set to avoid this error?

 

Thanks,

Rohit

 

 

 

 

Labels (1)
10 Replies
chrisbrain
Partner - Specialist II
Partner - Specialist II

Hi - The part of your screen shot I can see looks a little odd to me - I can see:

uuidRepresentation=Standard:27017

Any additional options look like they should be & separated (see https://docs.mongodb.com/manual/reference/connection-string/) but this looks like it might be a port number appended to the Standard setting.

beeido.com - BI | Software | Qlik Integration Services
GitFirst - A CI/CD solution for Qlik Sense
rohitk1609
Master
Master
Author

This is the error:

There was an error running the table (Invalid connection string 'mongodb://qlik:***Password***@MongoDBHostName1.com,MongoDBHostName2.com,pMongoDBHostName3.com?uuidRepresentation=Standard:27017/qlik_database'.)

 

Can you please help me to implement Qlik article ?

Am I missing anything. I have just added "?uuidRepresentation=Standard" after server or connection string in box

chrisbrain
Partner - Specialist II
Partner - Specialist II

This ':27017/qlik_database' looks like it's in the wrong place to me if you look at the examples on:

https://docs.mongodb.com/manual/reference/connection-string/

The options (e.g. your '?uuidRepresentation=Standard') should be at the very end.

beeido.com - BI | Software | Qlik Integration Services
GitFirst - A CI/CD solution for Qlik Sense
rohitk1609
Master
Master
Author

I am appending the suggested sting at last. Check the image below:

This Is how I am Appending.png

 

I am not sure how it would come at last in result string ?

chrisbrain
Partner - Specialist II
Partner - Specialist II

Ah I see - and you have 'mongodb://' at the start where you enter the connection string?

In that case I am not sure.

beeido.com - BI | Software | Qlik Integration Services
GitFirst - A CI/CD solution for Qlik Sense
rohitk1609
Master
Master
Author

I didn't add 'mongodb://' at start. this comes when it return error and says this is the generated string with error.

chrisbrain
Partner - Specialist II
Partner - Specialist II

Can you try creating a full mongodb connection string using the docs I linked to and starting with mongodb:// and entering that into the parameter box?

beeido.com - BI | Software | Qlik Integration Services
GitFirst - A CI/CD solution for Qlik Sense
rohitk1609
Master
Master
Author

if I pass this to server/connection string, it works fine and list all the collections

mongodb://UserName:password@MongoHostName1.com, MongoHostName2.com, MongoHostName3.com:27017/qlik_database?uuidRepresentation=Standard

 

My question here is if I append ?uuidRepresentation=Standard as post fix with "MongoHostName1.com, MongoHostName2.com, MongoHostName3.com", then why ?uuidRepresentation=Standard is coming in between?

 

Thanks,

Rohit

chrisbrain
Partner - Specialist II
Partner - Specialist II

I am not sure - but it sounds like you have a workaround now?

beeido.com - BI | Software | Qlik Integration Services
GitFirst - A CI/CD solution for Qlik Sense