Synergex / HarmonyCore

Harmony Core is a framework that consists of libraries, CodeGen templates, and conventions that enable you to expose Synergy logic and data as a RESTful web service using OData and ASP.NET Core
BSD 2-Clause "Simplified" License
23 stars 14 forks source link

"Failed to match structure * with a structure from rps" when using an alias reference. #358

Open tscaff opened 10 months ago

tscaff commented 10 months ago

When attempting to use an assigned alias name in the Synergy/DE Repository, I noticed that the following errors started occurring in my Harmony Core Regen attempt.

harmonycore regen SolutionDir '' is not set. Using the current working directory. Scanning '..\WebApi' for HarmonyCore project files Using MSBuild from path: C:\Program Files\dotnet\sdk\6.0.418

Failed to match structure ACCOUNTSTATEMENTS with a structure from rps Files that look like they need to be deleted/removed from projects

Here is the repository schema entry

Structure CIFPROFILESTATEMENTS ASCII Modified 20240118152751 Description "GridProfileStatements response" ... ... ... Alias ACCOUNTSTATEMENTS Structure CIFPROFILESTATEMENTS

This is a portion of our ~library.dbl entry that we are building the SMC from

{xfMethod(intWeblib, elbmacro, name="subroutineMethod")} ;;;

;;;Return account listing matching filter data ;;; .subroutine subroutineMethodHome

{xfParameter(name="response", typeCol, structure="AccountStatements", dataTable=false)} out required a_returnData ,@ArrayList

.proc

Are repository aliases not supported?

hippiehunter commented 10 months ago

I checked with Steve and it doesnt seem like we have any support for using a structure alias in xfParameter like that. Is this a significant issue for you?

tscaff commented 10 months ago

Hi Jeff, it's not a super significant issue at the moment

We were just excited about using it...so it was just unexpected when it didn't generate the aliased structure.

We have a workaround for now.

Thanks.