User bio
404 bio not found
Member since Nov 10, 2015
Posts:
Replies:
It seems the "UserErrors" domain name is the default name of user-defined errors, although it isn't written in the document.
I tested below:
<?xml version="1.0" encoding="UTF-8" ?>
<MsgFile Language="en">
<MsgDomain Domain="UserErrorsABCDEFG">
<Message Id="-911" Name="MyError">Test!!An error has occured</Message>
<Message Id="-922" Name="MyError2">Test!!An error has occured 2</Message>
</MsgDomain>
</MsgFile>
set x=##class(%MessageDictionary).Import("/src/test.xml")
set error=$system.Status.Error("<UserErrorsABCDEFG>-911")
set error=$system.Status.Error("<UserErrorsABCDEFG>-911")
write $system.Status.GetErrorText(error)
//ERROR <UserErrorsABCDEFG>-911: Test!!An error has occured
If you don't add default domain name, you can get the correct user message by specifying the domain name with the error id to create the error messsage.
I guess you had set [Interoperability] - [Service Config Name] in your FHIR repogitory like this:
When I start below production on same namespace with FHIR repository, I can get same error in your question. (I didn't set "HS.FHIRServer.Interop.Service" in Service.)
I can make REST requests if I change my production in this way.
Certifications & Credly badges:
![Learning Path: Building Custom Integrations](https://images.credly.com/images/b12df94a-89c9-428b-92fb-1654c910fc62/image.png)
![Learning Path: Developing on an InterSystems Server Using VS Code](https://images.credly.com/images/02f0c320-0852-427b-bdae-7c8d9efdc55f/image.png)
Global Masters badges:
![DC Author](https://community.intersystems.com/sites/default/files/badges/dc_author_0.png)
![DC Commenter](https://community.intersystems.com/sites/default/files/badges/dc_commenter_1.png)
![DC Problem Solver](https://community.intersystems.com/sites/default/files/badges/dc_problem_solver_1.png)
![InterSystems Researcher](https://community.intersystems.com/sites/default/files/badges/researcher.png)
![DC Translator](https://community.intersystems.com/sites/default/files/badges/dc_translator_0_0.png)
![Silver Best-Selling Author 2021](https://community.intersystems.com/sites/default/files/badges/best-selling_author_2021_-_s.png)
![DC Opinion Leader 2021](https://community.intersystems.com/sites/default/files/badges/opinion_leader_2021_-_dc.png)
Followers:
Following:
Mihoko has not followed anybody yet.
Hi @Phil Burkhalter
Does the "class namespace" mean package? (Sorry if I'm wrong.)
If it's correct, you can get class name (=package.class) using WHERE clause to INFORMATION_SCHEMA.TABLES.
Query example: I can filter "Test" package.
SELECT CLASSNAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='Test'