Business Process - Export Code with different versions
Our TEST environment and PROD environment are on two different versions of HealthShare Health Connect.
| TEST | IRIS for UNIX (Red Hat Enterprise Linux 8 for x86-64) 2024.1 (Build 267_2U) Tue Apr 30 2024 16:06:39 EDT [HealthConnect:7.2.0-1.r1] |
| PROD | IRIS for UNIX (Red Hat Enterprise Linux 8 for x86-64) 2022.1.4 (Build 812_0_22913U) Thu Dec 7 2023 17:06:30 EST [HealthConnect:3.5.0-1.m1] [HealthConnect:3.5.0-1.m1] |
Someone within the group wants to migrate a BP from TEST to PROD, however they are running into an error "attribute 'languageOverride' is not declared for element 'assign'"
I know when we were moving from 2018 to 2022.1.4 there was a command we had to call to format the exports correctly because of the different versions of HealthShare Health Connect.
- Is this the same case here?
- Can someone remind me what that command is?
- Or how do we get around this error when moving code from a newer version to an older version?
Comments
@Scott Roth - best practice in cases like this is to set the /exportversion qualifier in the DEV environment (or whatever is exporting the source) until all of your pipeline is on the newer version.
E.g.
w $system.OBJ.SetQualifiers("/exportversion=iris2022.1")This should prevent any newer attributes from being included in the exported XML which would prevent import on an earlier version.
ref: https://docs.intersystems.com/iris20242/csp/docbook/Doc.View.cls?KEY=RCOS_vsystem_flags_qualifiers
setting the export version to iris2022.1 resulted in the same errors.

@Scott Roth - are you sure that you re-exported the source after /exportversion was set in the system exporting the code that would be imported into 2022.1? If you are certain of this, then please reach out to Support because I am not sure why that would not work
I tried exporting a copy of the BPL class myself from the Classes explorer, in the XML document that was saved I still seeing 'languageOverride', and when I tried to import it through the Classes explorer on my PROD instance which is 2022.1.4..
ERROR <Ens>ErrInvalidBPL: Invalid BPL
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
> ERROR #5030: An error occurred while compiling class 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
> ERROR #5490: Error running generator for method 'OnCompile:osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR: Ens.BusinessProcessBPL.cls(OnCompile) of generated code compiling subclass 'osuwmc.ImagetrendAmbulancePDFResultBPLser'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
ERROR #5001: attribute 'languageOverride' is not declared for element 'assign'
Compiling table osuwmc.ImagetrendAmbulancePDFResultBPLser_MasterPendingResponses
Compiling table osuwmc.ImagetrendAmbulancePDFResultBPLser__SynchronizedResponses
Compiling table osuwmc.ImagetrendAmbulancePDFResultBPLser_MessagesReceived
Compiling table osuwmc.ImagetrendAmbulancePDFResultBPLser_MessagesSent
Compiling table osuwmc.ImagetrendAmbulancePDFResultBPLser
Compiling routine osuwmc.ImagetrendAmbulancePDFResultBPLserMasterPendingResponses.1
Compiling routine osuwmc.ImagetrendAmbulancePDFResultBPLserMessagesReceived.1
Compiling routine osuwmc.ImagetrendAmbulancePDFResultBPLserMessagesSent.1
Compiling routine osuwmc.ImagetrendAmbulancePDFResultBPLserSynchronizedResponses.1
Compiling routine osuwmc.ImagetrendAmbulancePDFResultBPLser.1
Detected 31 errors during load.
So, I am going to follow up with WRC tomorrow... Thanks for the assist.