I have a Business Service that monitors a directory for a specific file (using EnsLib.RecordMap.Service.FileService). When this file is found in the directory, a Business Process (using class EnsLib.MsgRouter.RoutingEngine) performs a data transformation on this file, resulting in an xml file. I am attempting to save this xml file in the Business Operation (using class EnsLib.File.PassThroughOperation), however I receive an error message.
The error is "ERROR <Ens>ErrException: <PROPERTY DOES NOT EXIST>zOnMessage+1^EnsLib.File.PassthroughOperation.1 *Stream,RxHist.Patient -- logged as '18 Apr 2012' number 120 @' Set tFilename=..Adapter.CreateTimestamp(##class(%Library.File).GetFilename(pRequest.Stream.Attributes("Filename")),..Filename)'"
I have investigated this, and think the error may be due to the data not coming across as a StreamContainer, but this is speculation.
Things I have unsuccessfully tried:
1. Create a new Business Operation. In this, I attempted to load test data directly into the pRequest StreamContainer and then call the PutStream function (from adapter EnsLib.File.OutboundAdapter). I was unsuccessful, however this may be due to the fact that I don't totally understand how to load the object with data.
2. Create a new Business Process. Again, I attempted to load test data directly into the pRequest object (the xml was "<Record><MemberNumber>.....</Record>"), however I received an error such as "ERROR <Ens>ErrException: <PROPERTY DOES NOT EXIST>zTransform+5^ProductionInterfaces.RXhistoryDTL.1 *MemberNumber,%Library.GlobalCharacterStream -- logged as '24 Apr 2012' number 1341 @' Set zVALz=source.MemberNumber, zVALz=$S($IsObject(zVALz):zVALz.%ConstructClone(), 1:zVALz)'"
The code I used to load data into the StreamContainer is "Set newrequest = ##class(Ens.StreamContainer).%New(##class(%GlobalCharacterStream).%New("<Record><MemberNumber>...</Record>"))
I am brand new to working with Ensemble and am quite eager to learn and would appreciate any help that can be thrown my way!
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en