Unexpected results form GetPossibleConversions function in .NET

I’m getting unexpected results from GetPossibleConversions function for “.sql” and “.log” extension.

var possibleLoadOptions = Converter.GetPossibleConversions(".log");
var loadOpts = possibleLoadOptions.LoadOptions;

For the extension “.log” it creates WordProcessingLoadOptions, where I expected it to be TxtLoadOptions.
With TxtLoadOptions you could for example set an encoding, but I don’t know how WordProcessingLoadOptions should apply here.

For the extension “.sql” which is also just text basically, I get null as a result.
Here I would have expected TxtLoadOptions as well.

I’m using GroupDocs.Conversion 20.12.

1 Like

@Clemens_Pestuka

We’re investigating this scenario. Your investigation ticket ID is CONVERSIONNET-4426. You’ll be notified in case of any update.

1 Like

@Atir_Tahir

Thanks for checking the issue.
I also found another problem with this function, it seem to be doing a case-sensitive string comparison.
So for “.docx” it will return WordProcessingLoadOptions, but for “.DOCX” it will return null.

1 Like

@Clemens_Pestuka

We’ll investigate it as well.

1 Like