Preliminary information: We developed a reactive application but are currently copying components of that application to a mobile application so that it can be optimized with local storage instead of server storage. We inherit where we can, but we have recently run into an issue with structures.
When inheriting structures from the other application, an error appears on load of the application that states "NutritionCoachingModel is not defined" where NutritionCoaching is the parent module. Here is the stack: ReferenceError: NutritionCoachingModel is not defined at https://www.ahs-dev.com/Nutrition/scripts/Nutrition.MainFlow.AddMealOrFood.mvc.js?9GMYe7Kjc9YsNT9t7Ih4xA:1432:206
Refreshing dependencies does not show any changes, and attempting to un-inherit (to later re-inherit) causes the application to crash with multiple errors given, including this one:
[1] The state information is invalid for this page and might be corrupted. at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.HiddenFieldPageStatePersister.Load() at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)[2] Invalid viewstate.Client IP: 10.13.77.75Port: 49280Referer: https://test.com/Path: /ServiceCenter/Service_Center_Main.aspxUser-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36ViewState: SSTIEd.d.__VIEWSTATE[3] The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength) at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) at System.Convert.FromBase64String(String s) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString, Purpose purpose) at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter2 formatter, String serializedState, Purpose purpose) at System.Web.UI.HiddenFieldPageStatePersister.Load()
Instead of inheriting, I thought it would be a good idea to delete the structures and copy them in instead, but doing that and attempting to publish results in a compilation error shown below:
Internal Error
Compilation Error.
referencesProxy\eSpace_NutritionCoaching_proxy.cs(36,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
ssNutritionCoaching.RLBeneficial_Reactive_AmountsList _proxyinParamFullListReactiveFoods = new ssNutritionCoaching.RLBeneficial_Reactive_AmountsList();
referencesProxy\eSpace_NutritionCoaching_proxy.cs(36,116): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(38,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
ssNutritionCoaching.RLBeneficial_Reactive_AmountsList _proxyoutParamDiseaseSpecificReactiveFoods = new ssNutritionCoaching.RLBeneficial_Reactive_AmountsList();
referencesProxy\eSpace_NutritionCoaching_proxy.cs(38,124): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(55,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
ssNutritionCoaching.RLBeneficial_Reactive_AmountsList _proxyoutParamBeneficialReactiveFoods = new ssNutritionCoaching.RLBeneficial_Reactive_AmountsList();
referencesProxy\eSpace_NutritionCoaching_proxy.cs(55,119): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(65,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
ssNutritionCoaching.RLBeneficial_Reactive_AmountsList _proxyoutParamBeneficialFoods = new ssNutritionCoaching.RLBeneficial_Reactive_AmountsList();
referencesProxy\eSpace_NutritionCoaching_proxy.cs(65,111): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(67,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
ssNutritionCoaching.RLBeneficial_Reactive_AmountsList _proxyoutParamReactiveFoods = new ssNutritionCoaching.RLBeneficial_Reactive_AmountsList();
referencesProxy\eSpace_NutritionCoaching_proxy.cs(67,109): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(69,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
ssNutritionCoaching.RLBeneficial_Reactive_AmountsList _proxyoutParamTempFemaleBeneficialFoods = new ssNutritionCoaching.RLBeneficial_Reactive_AmountsList();
referencesProxy\eSpace_NutritionCoaching_proxy.cs(69,121): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(75,1): error CS1502: The best overloaded method match for 'ssNutritionCoaching.Actions.ActionGetBeneficialReactiveFoods(OutSystems.HubEdition.RuntimePlatform.HeContext, ssNutritionCoaching.ENUserEntityRecord, System.DateTime, System.DateTime, bool, out ssNutritionCoaching.RLBeneficial_Reactive_Amount2List, out int, out ssNutritionCoaching.RLMasterFoodItemDetailList, out ssNutritionCoaching.RLMasterFoodItemDetailList, out ssNutritionCoaching.STMasterFoodItemDetailStructure, out ssNutritionCoaching.STMasterFoodItemDetailStructure, out ssNutritionCoaching.RLBeneficial_Reactive_Amount2List, out ssNutritionCoaching.RLBeneficial_Reactive_Amount2List, out ssNutritionCoaching.RLBeneficial_Reactive_Amount2List)' has some invalid arguments
ssNutritionCoaching.Actions.ActionGetBeneficialReactiveFoods ( heContext,_proxyinParamUserID, inParamStartDate, inParamEndDate, inParamisPlan, out _proxyoutParamBeneficialReactiveFoods, out outParamNumberofDaysTracking, out _proxyoutParamMasterFoodMealItemsDetail, out _proxyoutParamMasterFoodMealItemsSummary, out _proxyoutParamTempMasterFoodMealItemsSummaryRecord, out _proxyoutParamEmptyMasterFoodMealItemsSummaryRecord, out _proxyoutParamBeneficialFoods, out _proxyoutParamReactiveFoods, out _proxyoutParamTempFemaleBeneficialFoods);
referencesProxy\eSpace_NutritionCoaching_proxy.cs(75,149): error CS1503: Argument 6: cannot convert from 'out RLBeneficial_Reactive_AmountsList' to 'out ssNutritionCoaching.RLBeneficial_Reactive_Amount2List'
referencesProxy\eSpace_NutritionCoaching_proxy.cs(75,436): error CS1503: Argument 12: cannot convert from 'out RLBeneficial_Reactive_AmountsList' to 'out ssNutritionCoaching.RLBeneficial_Reactive_Amount2List'
referencesProxy\eSpace_NutritionCoaching_proxy.cs(75,472): error CS1503: Argument 13: cannot convert from 'out RLBeneficial_Reactive_AmountsList' to 'out ssNutritionCoaching.RLBeneficial_Reactive_Amount2List'
referencesProxy\eSpace_NutritionCoaching_proxy.cs(75,506): error CS1503: Argument 14: cannot convert from 'out RLBeneficial_Reactive_AmountsList' to 'out ssNutritionCoaching.RLBeneficial_Reactive_Amount2List'
referencesProxy\eSpace_NutritionCoaching_proxy.cs(92,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
ssNutritionCoaching.RLBeneficial_Reactive_AmountsList _proxyinParamInputReactiveFoods = new ssNutritionCoaching.RLBeneficial_Reactive_AmountsList();
referencesProxy\eSpace_NutritionCoaching_proxy.cs(92,113): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(98,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(98,109): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(135,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
ssNutritionCoaching.RLBeneficial_Reactive_AmountsList _proxyinParamFullListBeneficialFoods = new ssNutritionCoaching.RLBeneficial_Reactive_AmountsList();
referencesProxy\eSpace_NutritionCoaching_proxy.cs(135,118): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(136,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(136,116): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(138,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
ssNutritionCoaching.RLBeneficial_Reactive_AmountsList _proxyoutParamDiseaseSpecificBeneficialFoods = new ssNutritionCoaching.RLBeneficial_Reactive_AmountsList();
referencesProxy\eSpace_NutritionCoaching_proxy.cs(138,126): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(140,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(140,124): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(157,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(157,118): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(159,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(159,126): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(174,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(174,118): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(176,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(176,126): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(278,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(278,116): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(279,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
ssNutritionCoaching.RLBeneficial_Reactive_AmountsList _proxyinParamEatingBehaviorsReactiveFoods = new ssNutritionCoaching.RLBeneficial_Reactive_AmountsList();
referencesProxy\eSpace_NutritionCoaching_proxy.cs(279,123): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(281,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(281,124): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(297,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(297,118): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(299,21): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
referencesProxy\eSpace_NutritionCoaching_proxy.cs(299,126): error CS0234: The type or namespace name 'RLBeneficial_Reactive_AmountsList' does not exist in the namespace 'ssNutritionCoaching' (are you missing an assembly reference?)
State: Build References Proxy
When I refresh dependencies, I get errors where you must cut the element causing the error and paste it back in for God knows what reason, but when I attempt to cut and paste, it crashes similar to second error I mentioned above. Again, this is all happening because I want to use some structures from another reactive module in the new mobile module, and Outsystems support has been less than helpful (go figure). Has anyone had an issue like this before, and how did you solve it?
Edit: On a side note, I was just told there are 3 available engineers in the US, and after some research, a similar low code platform called Appian has over 20. That might be the best solution in this case.
Hi Matthew,
We on the Forums, got a massive Outsystems community š¤ to help out with awesome quality results on different segments of your app development. Don't you bother comparing with Appian ;)
Coming to your issue in concern, the cut and past sometimes ends up in crash if you are pasting some elements that have dependencies which are not available in destination module. I've seen most of the times it gives out TrueChange error message without a crash.
Regarding the error messages you see, a planned and structural approach to refactor your job one-by-one can avoid such issues. I'll look into more details into errors later today and suggest a workaround. If possible, kindly share your OML file if you're okay with that, on forums or on personal chat.
Quality results are great and all unless it takes multiple days to get them. Faster support via more engineers prevents down time for developers, and down time is money lost.
On your solution, that seems to be the correct approach, so thank you.