External Database compilation error CS0234 & CS0246

External Database compilation error CS0234 & CS0246

  

Hi there,

I wondered if someone could help me please?

I've running on a free license with IDE version 10.0.303.0. I've managed to create an extension linking to an MS SQL database hosted on Amazon AWS and can 'see' it as an entity in within the Service Studio.

I've dragged a table onto a screen in the user interface which has auto created some pagination controls and a counter as well as the table itself.

When I attempt to publish, I get two errors (See below and the screenshot). This is a fresh web app and there are no other pages / extensions / dependencies / code added. This is literally the first thing I've tried as I'm trying to evaluate OutSystems for a project. 

Please help. What is causing these errors? (I'll add the second error as I don't seem to be able to paste it in. Character limit perhaps).

Internal Error 1: Internal Error
Compilation Error.
referencesProxy\Extension_DB_proxy.cs(27,29): error CS0234: The type or namespace name 'NssDB' does not exist in the namespace 'OutSystems' (are you missing an assembly reference?)
protected static OutSystems.NssDB.IssDB issDB =(OutSystems.NssDB.IssDB)new OutSystems.NssDB.CssDB();

State: Build References Proxy

Error 2: Internal Error
Compilation Error.
TypeFactory.ENIconNameEntityRecordTypeFactoryImpl.cs(6,55): error CS0246: The type or namespace name 'RsseSpaceRichWidgets' could not be found (are you missing a using directive or an assembly reference?)
public class ENIconNameEntityRecordTypeFactoryImpl : RsseSpaceRichWidgets.IENIconNameEntityRecordTypeFactory {
TypeFactory.ENIconSizeEntityRecordTypeFactoryImpl.cs(6,55): error CS0246: The type or namespace name 'RsseSpaceRichWidgets' could not be found (are you missing a using directive or an assembly reference?)
public class ENIconSizeEntityRecordTypeFactoryImpl : RsseSpaceRichWidgets.IENIconSizeEntityRecordTypeFactory {
TypeFactory.ENLegendPositionEntityRecordTypeFactoryImpl.cs(6,61): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class ENLegendPositionEntityRecordTypeFactoryImpl : RsseSpaceCharts.IENLegendPositionEntityRecordTypeFactory {
TypeFactory.ENMessageTypeEntityRecordTypeFactoryImpl.cs(6,58): error CS0246: The type or namespace name 'RsseSpaceRichWidgets' could not be found (are you missing a using directive or an assembly reference?)
public class ENMessageTypeEntityRecordTypeFactoryImpl : RsseSpaceRichWidgets.IENMessageTypeEntityRecordTypeFactory {
TypeFactory.ENStackingTypeEntityRecordTypeFactoryImpl.cs(6,59): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class ENStackingTypeEntityRecordTypeFactoryImpl : RsseSpaceCharts.IENStackingTypeEntityRecordTypeFactory {
TypeFactory.ENXAxisValuesTypeEntityRecordTypeFactoryImpl.cs(6,62): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class ENXAxisValuesTypeEntityRecordTypeFactoryImpl : RsseSpaceCharts.IENXAxisValuesTypeEntityRecordTypeFactory {
TypeFactory.RCAdvancedDataPointFormatRecord.cs(6,64): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class RCAdvancedDataPointFormatRecordTypeFactoryImpl : RsseSpaceCharts.IRCAdvancedDataPointFormatRecordTypeFactory {
TypeFactory.RCAdvancedDataSeriesFormatRecord.cs(6,65): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class RCAdvancedDataSeriesFormatRecordTypeFactoryImpl : RsseSpaceCharts.IRCAdvancedDataSeriesFormatRecordTypeFactory {
TypeFactory.RCAdvancedFormatRecord.cs(6,55): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class RCAdvancedFormatRecordTypeFactoryImpl : RsseSpaceCharts.IRCAdvancedFormatRecordTypeFactory {
TypeFactory.RCChartFormatRecord.cs(6,52): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class RCChartFormatRecordTypeFactoryImpl : RsseSpaceCharts.IRCChartFormatRecordTypeFactory {
TypeFactory.RCDataPointRecord.cs(6,50): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class RCDataPointRecordTypeFactoryImpl : RsseSpaceCharts.IRCDataPointRecordTypeFactory {
TypeFactory.RCInput_AutoComplete_ListEntryRecord.cs(6,69): error CS0246: The type or namespace name 'RsseSpaceRichWidgets' could not be found (are you missing a using directive or an assembly reference?)
public class RCInput_AutoComplete_ListEntryRecordTypeFactoryImpl : RsseSpaceRichWidgets.IRCInput_AutoComplete_ListEntryRecordTypeFactory {
TypeFactory.RCUploadedFileRecord.cs(6,53): error CS0246: The type or namespace name 'RsseSpaceRichWidgets' could not be found (are you missing a using directive or an assembly reference?)
public class RCUploadedFileRecordTypeFactoryImpl : RsseSpaceRichWidgets.IRCUploadedFileRecordTypeFactory {
TypeFactory.RCXAxisFormatRecord.cs(6,52): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class RCXAxisFormatRecordTypeFactoryImpl : RsseSpaceCharts.IRCXAxisFormatRecordTypeFactory {
TypeFactory.RCYAxisFormatRecord.cs(6,52): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class RCYAxisFormatRecordTypeFactoryImpl : RsseSpaceCharts.IRCYAxisFormatRecordTypeFactory {
TypeFactory.RLAdvancedDataPointFormatRecordList.cs(6,68): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class RLAdvancedDataPointFormatRecordListTypeFactoryImpl : RsseSpaceCharts.IRLAdvancedDataPointFormatRecordListTypeFactory {
TypeFactory.RLAdvancedDataSeriesFormatRecordList.cs(6,69): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class RLAdvancedDataSeriesFormatRecordListTypeFactoryImpl : RsseSpaceCharts.IRLAdvancedDataSeriesFormatRecordListTypeFactory {
TypeFactory.RLDataPointRecordList.cs(6,54): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class RLDataPointRecordListTypeFactoryImpl : RsseSpaceCharts.IRLDataPointRecordListTypeFactory {
TypeFactory.RLInput_AutoComplete_ListEntryRecordList.cs(6,73): error CS0246: The type or namespace name 'RsseSpaceRichWidgets' could not be found (are you missing a using directive or an assembly reference?)
public class RLInput_AutoComplete_ListEntryRecordListTypeFactoryImpl : RsseSpaceRichWidgets.IRLInput_AutoComplete_ListEntryRecordListTypeFactory {
TypeFactory.STAdvancedDataPointFormatStructure.cs(6,67): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class STAdvancedDataPointFormatStructureTypeFactoryImpl : RsseSpaceCharts.ISTAdvancedDataPointFormatStructureTypeFactory {
TypeFactory.STAdvancedDataSeriesFormatStructure.cs(6,68): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class STAdvancedDataSeriesFormatStructureTypeFactoryImpl : RsseSpaceCharts.ISTAdvancedDataSeriesFormatStructureTypeFactory {
TypeFactory.STAdvancedFormatStructure.cs(6,58): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class STAdvancedFormatStructureTypeFactoryImpl : RsseSpaceCharts.ISTAdvancedFormatStructureTypeFactory {
TypeFactory.STChartFormatStructure.cs(6,55): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class STChartFormatStructureTypeFactoryImpl : RsseSpaceCharts.ISTChartFormatStructureTypeFactory {
TypeFactory.STDataPointStructure.cs(6,53): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class STDataPointStructureTypeFactoryImpl : RsseSpaceCharts.ISTDataPointStructureTypeFactory {
TypeFactory.STInput_AutoComplete_ListEntryStructure.cs(6,72): error CS0246: The type or namespace name 'RsseSpaceRichWidgets' could not be found (are you missing a using directive or an assembly reference?)
public class STInput_AutoComplete_ListEntryStructureTypeFactoryImpl : RsseSpaceRichWidgets.ISTInput_AutoComplete_ListEntryStructureTypeFactory {
TypeFactory.STUploadedFileStructure.cs(6,56): error CS0246: The type or namespace name 'RsseSpaceRichWidgets' could not be found (are you missing a using directive or an assembly reference?)
public class STUploadedFileStructureTypeFactoryImpl : RsseSpaceRichWidgets.ISTUploadedFileStructureTypeFactory {
TypeFactory.STXAxisFormatStructure.cs(6,55): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class STXAxisFormatStructureTypeFactoryImpl : RsseSpaceCharts.ISTXAxisFormatStructureTypeFactory {
TypeFactory.STYAxisFormatStructure.cs(6,55): error CS0246: The type or namespace name 'RsseSpaceCharts' could not be found (are you missing a using directive or an assembly reference?)
public class STYAxisFormatStructureTypeFactoryImpl : RsseSpaceCharts.ISTYAxisFormatStructureTypeFactory {
Entities.ENIconNameEntityRecord.cs(25,29): error CS0103: The name 'RsseSpaceRichWidgets' does not exist in the current context
public const int eSpaceId = RsseSpaceRichWidgets.ENIconNameEntity.eSpaceId;
Entities.ENIconSizeEntityRecord.cs(25,29): error CS0103: The name 'RsseSpaceRichWidgets' does not exist in the current context
public const int eSpaceId = RsseSpaceRichWidgets.ENIconSizeEntity.eSpaceId;
Entities.ENLegendPositionEntityRecord.cs(25,29): error CS0103: The name 'RsseSpaceCharts' does not exist in the current context
public const int eSpaceId = RsseSpaceCharts.ENLegendPositionEntity.eSpaceId;
Entities.ENMessageTypeEntityRecord.cs(25,29): error CS0103: The name 'RsseSpaceRichWidgets' does not exist in the current context
public const int eSpaceId = RsseSpaceRichWidgets.ENMessageTypeEntity.eSpaceId;
Entities.ENStackingTypeEntityRecord.cs(25,29): error CS0103: The name 'RsseSpaceCharts' does not exist in the current context
public const int eSpaceId = RsseSpaceCharts.ENStackingTypeEntity.eSpaceId;
Entities.ENXAxisValuesTypeEntityRecord.cs(25,29): error CS0103: The name 'RsseSpaceCharts' does not exist in the current context
public const int eSpaceId = RsseSpaceCharts.ENXAxisValuesTypeEntity.eSpaceId;


State: Second stage compilation

Have done the exact same thing now with a fresh module by dragging in one of the sample excel files used for the 5 minute demo's to create a table (with pagination, etc) and this works without error. So the issue is to do with the extension I've created for the connection to the external MS SQL DB but I still don't know why.

Hi Chris

Do you think it's possible to share the extension/eSpace where the problem is occuring?

Hey João,

I've managed to resolve this myself, this afternoon by re-verifying and saving the extension. I have no idea if what I did was the real solution but it's working now. Thank you.



Solution

Hello there!


Just leaving my experience with the same error.

Had extension to connect to MySQL DB and when publishing the app (simple with show/edit records) I had the same errors.


What I did - in Integration Studio - was to Update Source Code (button next to the 1-Click Publish) and then verify, save and publish.the extension.

Then in Service Studio refresh dependecies and then I published the app with no errors.


Carlos


Solution

Hi everyone

This bug was identified and will be fixed in the next OutSystems 10 patch. 

In the meanwhile, for those who run into the problem, the workaround is (as already identified) opening the extension in Integration Studio, run Update Source Code and re-publish the extension.

João

João Amorim wrote:

Hi everyone

This bug was identified and will be fixed in the next OutSystems 10 patch. 

In the meanwhile, for those who run into the problem, the workaround is (as already identified) opening the extension in Integration Studio, run Update Source Code and re-publish the extension.

João

Hi João,


Did this fix got shipped already? I didn't see it in the latest patch notes (running 10.0.405.0).


Thanks,

Carlos


Hi Carlos

The most common cause of the bug was fixed in 10.0.405.0. On the next patch Integration Studio will automatically "fix" extensions with this problem. It will still be necessary to open the affected extensions with IS and republish them.